/vtex-ai-skills:vtex-io-storefront-reactfrom vtex-ai-skills
Guides building VTEX IO storefront React components for Store Framework, covering css-handles, context hooks, browser-safe data fetching, and theme block behavior.
Ships in vtex-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when building shopper-facing React components under the react builder for storefront experiences.
Do not use this skill for:
vtex.css-handles instead of hardcoded global class names.useProduct, useRuntime, or useOrderForm instead of calling VTEX APIs directly from the browser or using app keys in storefront code.vtex-io-messages-and-i18n, instead of string literals.button or a instead of clickable divs, and ensure important content has appropriate labels or alternative text.window or document, guard against server-side execution, for example by using useEffect or checking typeof window !== 'undefined'.Storefront components MUST expose styling through css-handles, not arbitrary hardcoded class names.
Why this matters
css-handles are the customization contract for storefront components. Hardcoded or hidden class names make themes harder to extend safely.
Detection
If a storefront component uses arbitrary global class names without css-handles, STOP and expose styling through handles first.
Correct
const CSS_HANDLES = ['container', 'title'] as const
Wrong
return <div className="my-random-block-root">...</div>
Storefront React code MUST not depend on Node-only APIs or server-only assumptions.
Why this matters
These components run in the shopper-facing frontend. Server-only dependencies break rendering and create runtime failures in the browser.
Detection
If a component uses Node-only modules, filesystem access, or server runtime assumptions, STOP and redesign it for the browser.
Correct
return <span>{label}</span>
Wrong
import fs from 'fs'
Visible storefront strings MUST use the app i18n pattern instead of hardcoded text.
Why this matters
Storefront UIs run across locales and stores. Hardcoded strings make the component less reusable and less consistent with VTEX IO localization.
Detection
If shopper-visible copy is hardcoded in JSX, STOP and move it to the i18n mechanism.
Correct
<FormattedMessage id="storefront.cta" />
Wrong
<span>Buy now</span>
Keep storefront components small, props-driven, css-handle-based, and safe for shopper contexts.
Minimal css-handles pattern:
import { useCssHandles } from 'vtex.css-handles'
const CSS_HANDLES = ['container', 'title'] as const
export function MyComponent() {
const { handles } = useCssHandles(CSS_HANDLES)
return (
<div className={handles.container}>
<h2 className={handles.title}>...</h2>
</div>
)
}
div or span with onClick where a button or a element should be used.vtex-io-render-runtime-and-blocks - Use when the main question is block registration and Store Framework wiringvtex-io-messages-and-i18n - Use when the main question is how shopper-facing strings should be translated and organizedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vtex/skills --plugin vtex-ai-skills46 skills in this plugin
/architecture-well-architected-commerceApply when scoping, reviewing, or documenting cross-cutting VTEX commerce architecture across storefront, IO, headless, marketplace, payments, or any other VTEX module. Grounds work in the Well-Architected Commerce framework—Technical Foundation (reliability, trust, integrity; security, infrastructure, compliance), Future-proof (innovation, simplicity, efficiency; scalable and adaptable solutions), and Operational Excellence (accuracy, accountability, data-driven improvement; process and customer experience). Routes implementation detail to product tracks (IO caching and paths, Master Data strategy, marketplace integrations). Use for solution design, architecture reviews, and RFP-level technical structure./faststore-storefrontCore coding rules and workflow for developing VTEX FastStore storefronts. Use when starting any FastStore development task, writing TypeScript/React components, creating section overrides, extending the BFF, or styling. Covers all primary conventions, safety rules, and the development workflow used across every FastStore project./headless-bff-architectureApply when designing or modifying a BFF (Backend-for-Frontend) layer, middleware, or API proxy for a headless VTEX storefront. Covers BFF middleware architecture, public vs private API classification, VtexIdclientAutCookie management, API key protection, and secure request proxying. Use for any headless commerce project that must never expose VTEX_APP_KEY or call private VTEX APIs from the browser.Other plugins' skills for the same job