Building Medusa Storefronts skill for Claude Code

Build storefront features with Claude Code using Medusa's patterns for SDK calls, custom store routes, data fetching, and cache updates.

How to add the Building Medusa Storefronts skill to Claude Code

  1. Run the selected-skill command and choose Claude Code. If copying manually, copy the complete skill folder so the bundled references stay available.
  2. Open the storefront repo and ask Claude to review the matching reference before editing Medusa SDK or storefront data access code.
Claude Code · Install this skill
npx skills add https://github.com/medusajs/medusa-agent-skills --skill building-storefronts

Update the cart without losing region context

In a Medusa storefront that supports two regions, ask Claude Code to add quantity changes to a cart line using the existing SDK layer. Provide the cart route and query hooks. Request behavior for successful updates and for an item that becomes unavailable while the cart is open.

Change an item in each test region and verify the cart totals after the update. Trigger the unavailable-item response and check that the quantity and total shown come from the server’s confirmed cart state.

Browse Skills