vtex-io-render-runtime-and-blocks
БесплатноБез исполняемых скриптовНе проверенApply when connecting React components to Store Framework blocks and render-runtime behavior in VTEX IO. Covers interfaces.json, block registration, block…
от vtex★ 47 звёзд на GitHubОб этом скилле
Render Runtime & Block Registration
When this skill applies
Use this skill when a VTEX IO storefront component needs to be exposed to Store Framework as a block.
- Registering components in
store/interfaces.json - Mapping block names to React components
- Defining block composition and allowed children
- Reviewing whether a component is correctly wired into theme JSON
Do not use this skill for:
- shopper-facing component internals
- admin interfaces
- backend service or route design
- policy modeling
Decision rules
- Every block visible to Store Framework must be registered in
store/interfaces.json. - Keep block names, component mapping, and composition explicit.
- The block ID used as the key in
store/interfaces.json, for exampleproduct-reviews, is the same ID that storefront themes reference underblocksinstore/*.json. - The
componentfield should map to the React entry name underreact/, such asProductReviews, or a nested path such asproduct/ProductReviewswhen the app structure is hierarchical. - Use
compositionintentionally when the block needs an explicit child model.childrenmeans the component renders nested blocks throughprops.children, whileblocksmeans the block exposes named block slots controlled by Store Framework. compositionis optional. For many simple blocks, declaringcomponentand, when needed,allowedis enough.- Block IDs are scoped by the declaring app's MAJOR version.
vtex.pages-graphqlresolves a block reference such asacme-related-productsagainst[email protected]:acme-related-productsfor the major actually installed in the workspace. A block declared in0.xis not the same block as one declared in5.x, even if the ID is identical. - A consumer theme that references a block ID through
store/blocks.jsononly sees the block if the declaring app is installed at a major matching the dependency range. Mismatches surface asMissing block [email protected]:block-iderrors at the resolver and break the page. - Use this skill for the render/runtime contract, and use storefront/admin skills for the component implementation itself.
Hard constraints
Constraint: Storefront blocks must be declared in interfaces.json
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
Constraint: Component mapping must resolve to real React entry files
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"
}
}
Constraint: Block IDs must resolve under the installed major of the declaring app
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 acme.product
Установить vtex-io-render-runtime-and-blocks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл vtex-io-render-runtime-and-blocks?
Apply when connecting React components to Store Framework blocks and render-runtime behavior in VTEX IO. Covers interfaces.json, block registration, block composition, and how storefront components become configurable theme blocks. Use for block mapping, theme integration, or reviewing whether a React component is correctly exposed to Store Framework.
Как установить скилл vtex-io-render-runtime-and-blocks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vtex-io-render-runtime-and-blocks запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic