
Building Storefronts
If you're building a Medusa storefront, this teaches you the SDK-first approach that prevents the most common bugs. It hammers home critical patterns like never using regular fetch (causes missing header errors), never JSON.stringify your request bodies (the SDK handles serialization), and that Medusa prices are stored as-is, not in cents. You get React Query patterns for mutations and cache invalidation, plus a clear hierarchy of when to use built-in SDK methods versus sdk.client.fetch for custom routes. The skill works as a checklist before you write code, then points you to detailed reference files for implementation. Load it alongside building-with-medusa when you're connecting frontend features to backend API routes.
- skills.sh installs
- 4.4K
- GitHub stars
- 236
- last updated
- Aug 21, 2026
Install
$ npx -y skills add medusajs/medusa-agent-skills --skill building-storefronts --agent claude-codeInstalls into .claude/skills of the current project.
Files
Medusa Storefront Development
Frontend integration guide for building storefronts with Medusa. Covers SDK usage, React Query patterns, and calling custom API routes.
When to Apply
Load this skill for ANY storefront development task, including:
- Calling custom Medusa API routes from the storefront
- Integrating Medusa SDK in frontend applications
- Using React Query for data fetching
- Implementing mutations with optimistic updates
- Error handling and cache invalidation
Also load building-with-medusa when: Building the backend API routes that the storefront calls
CRITICAL: Load Reference Files When Needed
The quick reference below is NOT sufficient for implementation. You MUST load the reference file before writing storefront integration code.
Load this reference when implementing storefront features:
- Calling API routes? → MUST load
references/frontend-integration.mdfirst - Using SDK? → MUST load
references/frontend-integration.mdfirst - Implementing React Query? → MUST load
references/frontend-integration.mdfirst
Rule Categories by Priority
Sponsors