lunar
Skill by lunarphp · updated · ★ 3.8k
Lunar is a skill that helps AI assistants build e-commerce features with Lunar, a headless e-commerce package for Laravel. It is aimed at developers working on products, carts, checkout, orders, pricing and payments. lunar is published by lunarphp on GitHub.
Install lunar
Built from the published package, never by AIgit clone --depth 1 https://github.com/lunarphp/lunar /tmp/lunar && mkdir -p ~/.claude/skills && cp -r /tmp/lunar/packages/core/resources/boost/skills/lunar ~/.claude/skills/lunarRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/lunarphp/lunar /tmp/lunar && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/lunar/packages/core/resources/boost/skills/lunar ~/.gemini/antigravity-cli/skills/lunarAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
Last commit 2 days ago
MIT: permissive, fine for commercial use
Clear description, installs from GitHub, 3,763 stars, original repository
No risky patterns in the files we checked
About lunar
This skill gives an AI assistant guidance for building e-commerce features with Lunar, a headless e-commerce engine for Laravel. It covers the lunarphp/core package and the lunarphp/lunar Filament admin panel. It activates for tasks involving products, variants, carts, checkout, orders, discounts, payments, pricing, collections, attributes, tax and Lunar models, facades or config.
The skill tells the assistant to fetch current Lunar documentation before answering, because the API changes between minor versions. It points to a docs MCP server and a llms.txt index. It also lists common mistakes, such as storing prices as integers, type hinting contracts instead of concrete models, and checking cart fingerprints before payment. It is intended for developers building Laravel stores with Lunar.
Written from the project's SKILL.md and checked against it.
What lunar can do
- Documentation lookupDirects the assistant to fetch current Lunar docs through an MCP server or the llms.txt index.
- Orientation to Lunar layoutExplains where models, facades and core and panel config files live, and the table prefix.
- Pricing and cart guidanceCovers integer prices, Price objects and calculating cart totals before reading them.
- Model and contract typingAdvises type hinting Lunar contracts so applications can replace core models safely.
- Checkout safety checksDescribes fingerprint checks before payment capture and handling of CartException.
- Order and discount handlingExplains single order per cart, split shipment orders and resetting cached discounts.
- Collections and attributesCovers nested set collections, required collection groups and attribute_data field types.
What you need
- A Laravel project
- Lunar packages lunarphp/core and lunarphp/lunar
- Access to docs.lunarphp.com
Weekly newsletter
Like lunar? Get the best new skills every week
The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.
Try asking
- Add a discount code to the cart in my Lunar checkout flow
- Create a Lunar product with variants and prices in several currencies
- Set up collection nesting in Lunar using appendNode and makeRoot
Good to know
- Lunar questions should not be answered from memory because the API changes between minor versions.
- Boost's search-docs tool does not cover Lunar.
- Scout needs soft_delete set to true in config/scout.php to hide soft-deleted records.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/core/resources/boost/skills/lunar/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to lunar
All alternatives →Fetches travel coupons from a third-party feed, including Didi ride-hailing bundles and hotel deals from Meituan, Tongcheng and Fliggy. It is for users who want claim links or QR codes they can redeem in WeChat or the official apps.
Connect Odoo with Shopify: sync products, inventory, orders, and customers using the Shopify API and Odoo's external API or connector modules.
When the user wants to track App Store chart rank changes, find top gainers and losers, detect breakout apps entering the top 100, or identify apps dropping out of charts. Also use when the user mentions "chart movers", "rank changes", "who's rising", "who's falling", "new chart entries", "top gainers", or "market shifts". For broader market overview, see market-pulse. For competitive keyword analysis, see competitor-analysis.
Etsy Search Listings fetches current Etsy search result rows for a keyword, market phrase, or category. It is for agents that need to see rank, price, badges, and shop ownership on page one.
为 Fantastic-admin 框架生成 Pinia Store 模块。当用户提到以下任何需求时必须使用此技能:多个页面需要共享数据、全局状态管理、数据需要持久化(刷新后还在)、登录状态/用户信息需要缓存、购物车/通知/权限等全局数据、需要在组件外访问状态。即使用户只是说"这个数据要全局共享"或"刷新后数据不能丢",也应触发此技能。触发关键词:创建 store、全局状态、状态管理、pinia、持久化、共享数据。
Searches for domain names, checks availability, compares registrar prices and looks for promo codes. It helps users pick and buy a domain at the best price.
lunar: common questions
Does the Lunar skill answer questions from memory?
No. The skill tells the assistant to fetch current docs from the Lunar MCP server or the llms.txt index first, because the API moves between minor versions.
Which Lunar packages does this skill cover?
It covers lunarphp/core, the e-commerce engine, and lunarphp/lunar, the Filament admin panel.
Why should prices be stored as integers?
Lunar stores prices as integers in the smallest currency unit, so $19.99 is 1999. Values come back as Lunar\DataTypes\Price objects.
How do I install lunar?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is lunar free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is lunar safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to lunar?
Similar skills: trip-coupon, odoo-shopify-integration, market-movers, etsy-search-listings.
