MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
Design & Media
🖼️

Storefront Best Practices

ALWAYS use this skill when working on ecommerce storefronts, online stores, shopping sites. Use for ANY storefront component including checkout pages, cart, …

by medusajsv1.0.0
Connecting to VM...
Connecting to VM...
npx clawhub@latest install storefront-best-practices
2.2kStars
4.0kDownloads
9Current Installs
6.6kAll-time Installs
📦
v1.0.0Version
📅
Feb 2, 2026Updated
View Source(ClawHub)

Storefront Best Practices Skill Overview

Storefront 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.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install storefront-best-practices
or

Click the Install button at the top of this page for one-click setup

When to Use Storefront Best Practices

Best Fit

  • Building or extending an ecommerce storefront — any framework (Next.js, SvelteKit, TanStack Start, React, Vue): product pages, product listings, cart, checkout, navigation, homepage, search, account pages, or order confirmation.
  • Integrating a backend (including Medusa) — SDK setup, fetching products/categories/regions, pricing display, payment method selection, and cart management.
  • Optimizing an existing store — improving conversion rates, fixing mobile experience issues, adding SEO structured data, or improving accessibility in the shopping flow.
  • Planning a storefront implementation — generating a step-by-step build plan that references the correct reference files and avoids known pitfalls before writing any code.

When Not to Use

  • Non-ecommerce projects — admin dashboards, SaaS apps, blogs, or any site without a shopping/purchasing flow have no use for this skill's patterns.
  • Pure backend or API work — if you are only working on the server-side commerce logic with no frontend storefront component involved, this skill adds little value.

Key Features

Mandatory Backend SDK Verification Workflow

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.

Comprehensive Reference File System

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.

Critical Ecommerce-Specific Pattern Rules

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.

Framework-Agnostic Dynamic Routing Guidance

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.

Medusa-Specific Integration Patterns

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.

Top Ecommerce Mistakes Checklist

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.

Use Cases

Building a New Storefront from Scratch

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.

Implementing Checkout and Payment Flow

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.

Integrating a Medusa Backend

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.

Optimizing an Existing Store for Mobile and SEO

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.

Requirements

No external API keys or paid services are required by the skill itself.

  • Medusa backend (optional): If integrating with Medusa, a running Medusa server and a publishable API key are required. Medusa storefront must run on port 8000 by default to avoid CORS errors.
  • Medusa MCP server (optional but recommended): https://docs.medusajs.com/mcp — used for real-time SDK method verification.
  • Reference files: The skill depends on a set of 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.
  • Framework: Any modern frontend framework is supported (Next.js, SvelteKit, TanStack Start, React, Vue, Remix).
Connecting to VM...
npx clawhub@latest install storefront-best-practices
2.2kStars
4.0kDownloads
9Current Installs
6.6kAll-time Installs
📦
v1.0.0Version
📅
Feb 2, 2026Updated
View Source(ClawHub)

FAQ

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!