
21st-ai
Generate and iterate on UI with 21st AI from the terminal via the `21st` CLI
by 21st-devFree
Description
21st-ai is an agent skill that shows a coding agent how to draft and refine user interfaces with 21st AI from the terminal, using the 21st CLI (@21st-dev/cli). The intended loop is to sketch a few UI variants from a prompt, preview them in the browser, refine the one you like with plain-English edits, and then bring its code into the project, all without leaving the editor. Sketch mode outputs self-contained HTML and Tailwind drafts with no build step. The suggested handoff is a copy-prompt: a spec that tells the agent to rebuild the design in the project's real stack rather than pasting raw HTML. The same steps are available as MCP tools. Authentication uses a saved 21st login or a 21st_sk_ API key, and a usage command reports the account tier and remaining free daily code-retrieval quota.…
Highlights
- Sketch several UI variants from one prompt
- Preview drafts in the browser and refine them in plain English
- HTML + Tailwind drafts with no build step
- Copy-prompt handoff to rebuild the design in your real stack
- Works through the 21st CLI or matching MCP tools
Ratings & Reviews
No ratings yet
Be the first to rate 21st-ai.
People also visit

design-first-ui-prompting
Design-first, spec-driven, skimmable prompts for UI generation

design-and-refine
Generate UI variations, collect feedback, synthesize the best elements

frontend-design
Create distinctive, production-grade interfaces avoiding generic AI aesthetics
21st-ai FAQ
What does the 21st-ai skill do?
It guides an agent through 21st AI's drafting loop from the terminal: sketch UI variants from a prompt, preview them, refine the chosen one with plain-English edits, and pull the result into the repository.
How do I install it?
Run: npx skills add https://github.com/21st-dev/skill --skill 21st-ai
How does authentication work?
It uses the same credential as the rest of the 21st CLI: either 21st login, which saves a token, or a 21st_sk_ key passed with --api-key or the TWENTYFIRST_TOKEN variable. The 21st usage command shows your tier and remaining free daily retrieval quota, but not your AI credit balance.
Does it paste raw HTML into my project?
Not by default. Drafts are self-contained HTML and Tailwind, and the recommended handoff is a copy-prompt that asks the agent to rebuild the design in the project's own stack.
What security audit results are shown?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best 21st-ai alternatives?
Popular alternatives to 21st-ai include design-first-ui-prompting, ui-design and enhance-prompt. See all 21st-ai alternatives















