
Building Storefronts
medusajs/medusa-agent-skillsOfficial
Guide for building Medusa storefronts that covers SDK usage, React Query patterns, and custom API route calls.
- CCM score
- 68 of 100
- skills.sh installs
- 4.6K
- GitHub stars
- 238
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers SDK usage, React Query data fetching and mutations, price display, and error handling for Medusa frontends
- Includes
sdk.client.fetch()rules for custom routes, plus a reference file with correct and incorrect code examples - Enforces passing plain objects to the SDK body, never
JSON.stringify(), and always using the SDK instead of rawfetch() - Designed for storefront developers integrating with backend API routes built using the building-with-medusa skill
Install
$ npx -y skills add medusajs/medusa-agent-skills --skill building-storefronts -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/medusajs/medusa-agent-skills
- Categories
- Frontend & UI Code, Backend & APIs
More from medusajs/medusa-agent-skills
All 15Similar to Building Storefronts
More Frontend & UI Code
storefront-best-practicesSkillmedusajs/medusa-agent-skills5.2K installsAgent-friendly storefront guidance with Medusa integration, layout patterns, and SEO rules for ecommerce builds.
building-with-medusaSkillmedusajs/medusa-agent-skills5K installsStructured guide for Medusa backend work that loads patterns for modules, workflows, API routes, and module links.
Spree Commerce developer docs for AI agentsMCP serverspree15.8K starsHeadless commerce APIs, storefront, and admin docs for building B2B and marketplace stores.
apollo-clientSkillapollographql/skills5.9K installsGuide for building React apps with Apollo Client 4.x covering queries, mutations, caching, and local state.
react-router-framework-modeSkillremix-run/agent-skills3.8K installsSkill guide for React Router framework mode covering file-based routing, data loading, mutations, and rendering strategies.