storefront-best-practices — Claude Code skill: install guide
This skill guides storefront work, from product pages and carts to checkout flows. Use it when building or changing an online store interface.
npx skills add medusajs/medusa-agent-skills --skill storefront-best-practices -a claude-codeWhat storefront-best-practices does
The skill guides work on store pages such as product listings, product details, carts, payment flows, navigation, search and account areas. Its references cover interface patterns, accessibility, mobile layouts, SEO and Medusa backend work.
Before any UI component is created, it calls for reading reference/design.md to check existing tokens, fonts, spacing and patterns. Task-specific references cover areas such as checkout in reference/layouts/checkout.md, Medusa setup in reference/medusa.md, and search work in reference/seo.md.
It also points to concrete implementation checks: cart count changes use aria-live="polite", fixed bottom controls account for safe areas, and below-the-fold images get lazy loading. Reading reference/design.md first adds a step before edits, so style changes are less likely to drift from the existing interface.
What it helps with
- build a checkout page
- add a cart with item count updates
- connect a storefront to Medusa
- make product cards accessible
- prepare product pages for SEO
Example prompts for the agent
- Apply storefront-best-practices while adding a cart page.
- Use storefront-best-practices to connect the product catalogue to Medusa.
- Apply storefront-best-practices when building a product page and check server-rendered markup.
How to install storefront-best-practices
1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill storefront-best-practices -a claude-code2Manually: put the files in place
~/.claude/skills/storefront-best-practices/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/storefront-best-practices/
1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill storefront-best-practices -a codex2Manually: put the files in place
.agents/skills/storefront-best-practices/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill storefront-best-practices -a cursor2Manually: put the files in place
.cursor/skills/storefront-best-practices/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install medusajs/medusa-agent-skills storefront-best-practices2Manually: put the files in place
.github/skills/storefront-best-practices/SKILL.md1Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill storefront-best-practices -a gemini-cli2Platform CLI
gemini skills install https://github.com/medusajs/medusa-agent-skills --path plugins/ecommerce-storefront/skills/storefront-best-practicesManually: put the files in place
.devin/skills/storefront-best-practices/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add medusajs/medusa-agent-skills --skill storefront-best-practices -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about storefront-best-practices
How do I install storefront-best-practices in Claude Code?
Run npx skills add medusajs/medusa-agent-skills --skill storefront-best-practices -a claude-code, then run npx skills add medusajs/medusa-agent-skills --skill storefront-best-practices -a claude-code again. The skill file is placed at ~/.claude/skills/storefront-best-practices/SKILL.md.
What does storefront-best-practices do?
It gives an agent guidance for building and changing online store interfaces. The material covers UI components, Medusa work, accessibility, mobile screens and SEO.
Which reference files are needed before building a component?
reference/design.md is required before any UI component. The skill calls for further references by task, including checkout, navigation, Medusa and SEO guides.