How to add the Building Medusa Storefronts skill to Claude Code
- Run the selected-skill command and choose Claude Code. If copying manually, copy the complete skill folder so the bundled references stay available.
- Open the storefront repo and ask Claude to review the matching reference before editing Medusa SDK or storefront data access code.
npx skills add https://github.com/medusajs/medusa-agent-skills --skill building-storefrontsUpdate 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.