# vtex-io-render-runtime-and-blocks

Teaches the agent to expose React components as Store Framework blocks in VTEX IO: store/interfaces.json entries, composition and theme wiring.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1100 installs · ★ 46
- Author: vtex
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/vtex/skills/tree/HEAD/skills/vtex-io-render-runtime-and-blocks/SKILL.md
- Updated: 2026-10-14
- HTML: https://affpapa.org/en/nevibecode/skills/vtex-io-render-runtime-and-blocks

## What it does

This skill covers how a React component under `react/` turns into a block that a Store Framework theme can use. Each block gets an entry in `store/interfaces.json`. The key is the block ID that themes list in `store/*.json`, and `component` names the React entry, such as `ProductReviews` or a nested `product/ProductReviews`.

For nesting, `composition` picks the model. With `children`, the component renders nested blocks itself through `props.children`. With `blocks`, it exposes named slots that Store Framework controls. `allowed` limits what can go inside. A simple block can skip `composition` entirely.

Versions are the trap. A block ID belongs to the major version of the app that declares it, so a theme pinned to `acme.product-widgets` at `0.x` will not find a block added in `5.x`. The page then fails with `Missing block acme.product-widgets@0.x:acme-related-products`. Component internals, admin screens and backend routes are out of scope.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill vtex-io-render-runtime-and-blocks -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/vtex-io-render-runtime-and-blocks/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/vtex-io-render-runtime-and-blocks/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill vtex-io-render-runtime-and-blocks -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/vtex-io-render-runtime-and-blocks/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill vtex-io-render-runtime-and-blocks -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/vtex-io-render-runtime-and-blocks/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install vtex/skills vtex-io-render-runtime-and-blocks
```

2. **Manually: put the files in place**
- File: `.github/skills/vtex-io-render-runtime-and-blocks/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill vtex-io-render-runtime-and-blocks -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/vtex/skills --path skills/vtex-io-render-runtime-and-blocks
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/vtex-io-render-runtime-and-blocks/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add vtex/skills --skill vtex-io-render-runtime-and-blocks -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/vtex/skills/tree/HEAD/skills/vtex-io-render-runtime-and-blocks/SKILL.md

## When to use it
- register a `ProductReviews` component as a block in `store/interfaces.json`
- check that `component` points to a real file under `react/`
- set up nested blocks with `composition` and `allowed`
- trace a `Missing block` error after a theme dependency change
- wire an existing block into a page through `blocks` in `store/home.json`

## Example prompts
- Register `ProductReviews` as a Store Framework block in `store/interfaces.json`
- Check that every block in `store/interfaces.json` maps to a real file in `react/`
- The page throws `Missing block acme.product-widgets@0.x:acme-related-products`, sort out the block version

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

From the same set: [vtex/skills](https://affpapa.org/en/nevibecode/by/vtex/skills.md) — 38 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
