
21st-cli-use
Search, install and pull code from the 21st.dev catalog with the `21st` CLI
by 21st-devFree
Description
21st-cli-use is an agent skill that teaches a coding agent to work with the 21st.dev component catalog through the 21st command-line tool (npx @21st-dev/cli). With it, the agent searches the catalog for React and shadcn components, themes and templates, installs what fits into the project and pulls the code, writing UI by hand only when nothing suitable exists. The skill explains the one-time authentication step: either a browser login that saves a token to ~/.config/21st/auth.json, which suits development machines, or an API key passed with --api-key or an environment variable, which suits CI. Publishing your own components or syncing a design as a theme are handled by separate skills (21st-registry and 21st-design-sync). Install it with npx skills add https://github.com/21st-dev/skill --skill 21st-cli-use.…
Highlights
- Searches the 21st.dev catalog for components, themes and templates
- Installs and pulls component code into the project
- Covers browser login and API key authentication
- Prefers existing catalog components over hand-written UI
Ratings & Reviews
No ratings yet
Be the first to rate 21st-cli-use.
People also visit
21st-cli-use FAQ
What does this skill make the agent do?
It has the agent use the 21st CLI to search the 21st.dev catalog, install matching React or shadcn components, themes and templates, and only hand-write UI when nothing fits.
How do I install it?
Run npx skills add https://github.com/21st-dev/skill --skill 21st-cli-use.
What credentials does it need?
Either a login session from npx @21st-dev/cli login, which saves a token in ~/.config/21st/auth.json, or a 21st API key passed via --api-key or the TWENTYFIRST_TOKEN or API_KEY_21ST environment variable.
Can it publish my own components?
Not this skill. Publishing components, themes or templates is covered by the separate 21st-registry skill, and publishing a project's design as a theme by 21st-design-sync.
What did the security audits find?
The skills.sh page lists: Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Warn.
What are the best 21st-cli-use alternatives?
Popular alternatives to 21st-cli-use include artifacts-builder, aicanvas-me/aicanvas and 21st-registry. See all 21st-cli-use alternatives
















