ALWAYS use this skill when working on ecommerce storefronts, online stores, shopping sites. Use for ANY storefront component including checkout pages, cart, …
npx clawhub@latest install storefront-best-practicesStorefront Best Practices is a comprehensive guidance skill for building modern, high-converting ecommerce storefronts. It provides patterns, decision frameworks, and backend integration workflows covering every part of the shopping experience — from homepage and navigation through cart, checkout, and order confirmation. Install it to ensure your storefront follows proven UI/UX patterns, avoids critical implementation mistakes, and stays consistent across all components and pages.
npx clawhub@latest install storefront-best-practicesClick the Install button at the top of this page for one-click setup
Before writing any code that calls a backend API or SDK, the skill enforces a 5-step workflow: pause, query docs or MCP server, verify the method with the user, write code, then check for TypeScript errors. This prevents guessed method names, outdated examples, and silent runtime failures.
The skill maps every storefront task — checkout, product listing, navigation, SEO, mobile, Medusa integration, and more — to a specific reference file (e.g., reference/layouts/checkout.md, reference/medusa.md). It specifies exactly which files to load before implementing each feature, ensuring patterns are applied consistently.
Covers high-impact rules unique to storefronts: aria-live="polite" on cart counts for screen readers, env(safe-area-inset-bottom) for iOS sticky buttons, 44px minimum touch targets, mandatory loading="lazy" on product images below the fold, and prohibition of emojis in storefront UI.
Provides correct dynamic route patterns for Next.js (App and Pages Router), SvelteKit, TanStack Start, and Remix for product and category pages. Explicitly warns against static per-item routes that don't scale.
Covers Medusa SDK initialization (publishable API key required), correct pricing display (do not divide by 100), region_id requirement when fetching products, CORS port conventions (8000), Vite SSR config, using @medusajs/types instead of custom types, and cart state clearing after order placement.
A categorized list of over 30 named anti-patterns across cart/navigation, product browsing, checkout, mobile, SEO, performance, design consistency, and backend integration — each phrased as a concrete ❌ rule to check before and during implementation.
The skill provides a 10-step sequential workflow from discovery (loading design.md) through foundation, core components, shopping flow, and optimization. Each step references the exact file to load before implementing, ensuring nothing is missed and styles stay consistent.
Guides checkout architecture decisions (single-page vs. multi-step), enforces fetching payment methods from the backend rather than hardcoding them, flags the guest checkout requirement, and provides the Medusa-specific payment integration steps via reference/layouts/checkout.md and reference/medusa.md.
Covers SDK setup, region and pricing patterns, product fetching with region_id, country lists scoped to the cart's region, Vite SSR configuration, and use of the Medusa MCP server for method verification — preventing the most common Medusa storefront integration errors.
Directs developers to reference/mobile-responsiveness.md for touch target sizes, safe-area insets, and image optimization, and to reference/seo.md for Product JSON-LD schema, meta tags, Open Graph, and Core Web Vitals measurement via PageSpeed Insights.
No external API keys or paid services are required by the skill itself.
reference/ files (e.g., reference/design.md, reference/medusa.md, reference/layouts/checkout.md) being present in the project. The skill directs the agent to load these files; they must exist in the workspace.npx clawhub@latest install storefront-best-practicesLog in to write a review
No reviews yet. Be the first to share your experience!