/vtex-ai-skills:vtex-io-render-runtime-and-blocksfrom vtex-ai-skills
Guides connecting React components to VTEX IO Store Framework blocks via interfaces.json, block registration, composition, and theme integration.
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 a VTEX IO storefront component needs to be exposed to Store Framework as a block.
store/interfaces.jsonDo not use this skill for:
store/interfaces.json.store/interfaces.json, for example product-reviews, is the same ID that storefront themes reference under blocks in store/*.json.component field should map to the React entry name under react/, such as ProductReviews, or a nested path such as product/ProductReviews when the app structure is hierarchical.composition intentionally when the block needs an explicit child model. children means the component renders nested blocks through props.children, while blocks means the block exposes named block slots controlled by Store Framework.composition is optional. For many simple blocks, declaring component and, when needed, allowed is enough.vtex.pages-graphql resolves a block reference such as acme-related-products against [email protected]:acme-related-products for the major actually installed in the workspace. A block declared in 0.x is not the same block as one declared in 5.x, even if the ID is identical.store/blocks.json only sees the block if the declaring app is installed at a major matching the dependency range. Mismatches surface as Missing block [email protected]:block-id errors at the resolver and break the page.Every React component intended for Store Framework use MUST have a corresponding interfaces.json entry.
Why this matters
Without the interface declaration, the component cannot be referenced from theme JSON.
Detection
If a storefront React component is intended to be used as a block but has no matching interface entry, STOP and add it first.
Correct
{
"product-reviews": {
"component": "ProductReviews"
}
}
Wrong
// react/ProductReviews.tsx exists with no interfaces.json mapping
The component field in interfaces.json MUST map to a real exported React entry file.
Why this matters
Broken mapping silently disconnects block contracts from implementation.
Detection
If an interface points to a component name with no corresponding React entry file, STOP and fix the mapping.
Correct
{
"product-reviews": {
"component": "ProductReviews"
}
}
Wrong
{
"product-reviews": {
"component": "MissingComponent"
}
}
Block IDs referenced from a theme app's store/blocks.json MUST resolve to an interfaces.json entry in an installed app whose MAJOR version matches the consumer's dependency range. The render-time resolver is keyed by [email protected]:block-id, not by the bare block ID.
Why this matters
vtex.pages-graphql uses the declaring app's major version as part of the block lookup. A block that exists in [email protected] is not visible to a consumer that resolves [email protected], even if the block ID is identical. Mismatches return Missing block errors at the GraphQL layer and the page falls back to default content or fails outright.
Detection
If a consumer theme references a block ID and the declaring app's installed major does not match the consumer's dependency range, STOP and align the dependency range or move the block declaration to the correct major.
Correct
// consumer theme manifest.json
{ "dependencies": { "acme.product-widgets": "0.x" } }
// [email protected] ships store/interfaces.json with:
{ "acme-related-products": { "component": "RelatedProducts" } }
// consumer theme store/blocks.json
{ "store.product": { "children": ["acme-related-products"] } }
Wrong
// consumer theme depends on [email protected]
// but the block "acme-related-products" was added in @5.x and never backported
{ "store.product": { "children": ["acme-related-products"] } }
The resolver returns Missing block [email protected]:acme-related-products.
Composition and allowed child blocks MUST match the component's actual layout and runtime expectations.
Why this matters
Incorrect composition contracts make theme usage brittle and confusing.
Detection
If allowed or composition do not reflect how the component is supposed to receive children, STOP and correct the block contract.
Correct
{
"product-reviews": {
"component": "ProductReviews",
"composition": "children",
"allowed": ["product-review-item"]
}
}
Wrong
{
"product-reviews": {
"component": "ProductReviews",
"composition": "blocks",
"allowed": []
}
}
Keep block contracts explicit in interfaces.json and keep block implementation concerns separate from render-runtime registration.
Minimal block lifecycle:
// store/interfaces.json
{
"product-reviews": {
"component": "ProductReviews",
"composition": "children",
"allowed": ["product-review-item"]
},
"product-review-item": {
"component": "ProductReviewItem"
}
}
// store/home.json
{
"store.home": {
"blocks": ["product-reviews"]
}
}
// react/ProductReviews.tsx
export default function ProductReviews() {
return <div>...</div>
}
This wiring makes the block name visible in the theme, maps it to a real React entry, and keeps composition rules explicit at the render-runtime boundary.
5.x line and assuming consumers depending on 0.x will see it. Block visibility is scoped by the declaring app's installed major.interfaces.json?vtex-io-storefront-theme-app — Use when the question is how a consumer theme composes these blocks into pages and routes.vtex-io-storefront-theme-versioning — Use when the question is how a major version change in a block-declaring app affects merchants who already reference those blocks in stored content.interfaces.json maps block IDs to React components and how block IDs are namespaced by app major.What 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./headless-caching-strategyApply when implementing caching logic, CDN configuration, or performance optimization for a headless VTEX storefront. Covers which VTEX APIs can be cached (Intelligent Search, Catalog) versus which must never be cached (Checkout, Profile, OMS), stale-while-revalidate patterns, cache invalidation, and BFF-level caching. Use for any headless project that needs TTL rules and caching strategy guidance./headless-checkout-proxyApply when implementing cart, checkout, or order placement logic proxied through a BFF for headless VTEX storefronts. Covers OrderForm lifecycle, cart creation, item management, profile/shipping/payment attachments, orderFormId management, and secure checkout flows. Use for any headless frontend that needs to proxy VTEX Checkout API calls through a server-side layer with proper session cookie handling./headless-intelligent-searchApply when implementing search functionality, faceted navigation, or autocomplete in a headless VTEX storefront. Covers product_search, autocomplete_suggestions, facets, banners, correction_search, and top_searches endpoints, plus analytics event collection. Use for any custom frontend that integrates VTEX Intelligent Search API for product discovery and search result rendering.Other plugins' skills for the same job