21st-dev-builder-v2 — Claude Code skill: build sites from 21st.dev components
A skill that walks the agent through the 21st.dev registry: it finds components, picks the fitting ones and assembles pages and apps in React and Tailwind.
npx skills add trin-zenityx/21st-dev-builder-v2 --skill 21st-dev-builder-v2 -a claude-codeWhat 21st-dev-builder-v2 does
The skill fires when a request names 21st.dev or asks for a component from that registry. The agent then checks whether the project is ready — package.json, tailwind.config.*, components.json — splits the job into sections and hunts for components in the matching categories. A landing page pulls from hero, features, pricing, testimonials, cta, footers, navbars; a dashboard from sidebar, cards, tables, tabs; auth screens from sign-ins, sign-ups, forms.
Discovery runs against live pages. The agent opens a category at https://21st.dev/s/{slug}, digs into a component at https://21st.dev/r/{author}/{component}, and falls back to site:21st.dev searches when browsing is not enough. Components land in the project with npx shadcn@latest add "https://21st.dev/r/{author}/{component}" as full source you own and can edit. When the 21st_magic_component_builder tool is present it becomes the main generation path; otherwise web search plus the npx install covers the same ground.
The stack is fixed: React 18+ or Next.js with the App Router, Tailwind CSS 4+, Radix UI primitives, TypeScript. On Vue, Svelte or React Native the skill has nothing to offer. Candidates are judged on functional fit, the live preview, how well they sit next to already chosen blocks, and dark mode support. For visual consistency the author suggests taking related blocks from a single author.
What it helps with
- assemble a landing page from ready-made sections instead of hand-coding
- find a component for a specific dashboard or form section
- add a 21st.dev component to an existing Next.js project
- keep components from different authors visually consistent
- set up the 21st.dev MCP server for component generation
Example prompts for the agent
- Build a SaaS landing page from 21st.dev components: hero, features, pricing and a footer
- Find a dashboard sidebar component on 21st.dev and install it into my project
- Make a sign-in page from 21st.dev components, dark mode required
How to install 21st-dev-builder-v2
1Skills CLI (Vercel)
npx skills add trin-zenityx/21st-dev-builder-v2 --skill 21st-dev-builder-v2 -a claude-code2Manually: put the files in place
~/.claude/skills/21st-dev-builder-v2/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/21st-dev-builder-v2/
1Skills CLI (Vercel)
npx skills add trin-zenityx/21st-dev-builder-v2 --skill 21st-dev-builder-v2 -a codex2Manually: put the files in place
.agents/skills/21st-dev-builder-v2/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add trin-zenityx/21st-dev-builder-v2 --skill 21st-dev-builder-v2 -a cursor2Manually: put the files in place
.cursor/skills/21st-dev-builder-v2/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install trin-zenityx/21st-dev-builder-v2 21st-dev-builder-v22Manually: put the files in place
.github/skills/21st-dev-builder-v2/SKILL.md1Skills CLI (Vercel)
npx skills add trin-zenityx/21st-dev-builder-v2 --skill 21st-dev-builder-v2 -a gemini-cli2Platform CLI
gemini skills install https://github.com/trin-zenityx/21st-dev-builder-v2Manually: put the files in place
.devin/skills/21st-dev-builder-v2/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add trin-zenityx/21st-dev-builder-v2 --skill 21st-dev-builder-v2 -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about 21st-dev-builder-v2
How do I install 21st-dev-builder-v2 in Claude Code?
Run npx skills add trin-zenityx/21st-dev-builder-v2 --skill 21st-dev-builder-v2 -a claude-code. The skill ends up at ~/.claude/skills/21st-dev-builder-v2/SKILL.md.
What does 21st-dev-builder-v2 do?
It guides the agent through the 21st.dev registry: breaks the task into sections, searches the right categories, evaluates candidates and wires them into the project. It handles whole pages as well as single blocks.
Which stack does the skill target?
React 18+ or Next.js with the App Router, Tailwind CSS 4+, Radix UI and TypeScript. Components are added with npx shadcn@latest add.