Agent skill UI design
21st Cli Use
Shape a web interface around a coherent visual direction.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add 21st-dev/skill --skill 21st-cli-use --agent claude-code --yesCheck this file in your project.claude/skills/21st-cli-use/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add 21st-dev/skill --skill 21st-cli-useSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A project with components.json, one target screen, the behavior and states you need, and a 21st sign-in or API key for authenticated commands.
View operation manualWhat this skill helps with
- Shape a web interface around a coherent visual direction.
Good for
- Visual direction
- Task
- Find, evaluate, and install one component into a shadcn project
- Inputs
- A project with components.json, one target screen, the behavior and states you need, and a 21st sign-in or API key for authenticated commands.
- Core commands
- search / get / add --print
- Skill name
21st-cli-use- Repository
21st-dev/skill
Start from the actual project
A broad request
Find the best pricing component and install it.
Search results can vary by framework, dependency, and required behavior. Inspect code and the exact install before changing a project.
A workflow you can verify
- Get a shortlist with a preview URL, item ID and author/slug for each viable choice.
- Know which files, dependencies and naming collisions the addition can introduce.
- Verify the local import, keyboard interaction and theme adaptation.
21st CLI Use operation manual
Find, evaluate, and install one component into a shadcn project
A project with components.json, one target screen, the behavior and states you need, and a 21st sign-in or API key for authenticated commands.
Search for the required interaction
Get a shortlist with a preview URL, item ID and author/slug for each viable choice.
Prompt · Step 1Use 21st-cli-use from 21st-dev/skill. Read the installed SKILL.md first. Keep login tokens and API keys out of command records, docs, and code. Read [target screen, behavior and current components.json]. Use the installed Skill to determine the CLI in this project, using npx @21st-dev/cli if needed. Check the current authenticated account with whoami. Search for [specific component behavior] with --type c and --limit 5. Check the result against the actual required states, stack and usage rights. Return links, IDs and author/slug, and rank the choices by concrete fit.Review the selected source and installation
Know which files, dependencies and naming collisions the addition can introduce.
Prompt · Step 2Use 21st-cli-use from 21st-dev/skill. Read the installed SKILL.md first. Keep login tokens and API keys out of command records, docs, and code. For [selected item ID and author/slug], use get with the actual ID where the account has retrieval quota, then run add with the actual author/slug and --print. Report the component API, semantic styling tokens, packages, the shadcn command, and any project file conflict. Stop before running the command if an existing file would be replaced.Install in the project and exercise the behavior
Verify the local import, keyboard interaction and theme adaptation.
Prompt · Step 3Use 21st-cli-use from 21st-dev/skill. Read the installed SKILL.md first. Keep login tokens and API keys out of command records, docs, and code. Install [approved author/slug] using the Skill’s add workflow in the target project. Review the resulting diff for unexpected dependencies or overwrites. Import it in [local preview route] and try the originally requested behavior with keyboard, light and dark themes, and relevant narrow widths. Run the repository’s applicable checks and show the changed paths.
Look up a CLI operation
Read the installed Skill when applying these commands.
Do I need 21st AI access to search or install a component?21st CLI
- Command or reference
search / get / add --print- Examples
- Hosted generation has separate access and consumption. Metadata search and component-code retrieval have their own access rules, and code retrieval can have a quota. Check whoami and usage before choosing a path. A denied generation does not prevent you from adapting retrieved code locally when retrieval is available.
Troubleshooting and FAQ
Do I need 21st AI access to search or install a component?
Hosted generation has separate access and consumption. Metadata search and component-code retrieval have their own access rules, and code retrieval can have a quota. Check whoami and usage before choosing a path. A denied generation does not prevent you from adapting retrieved code locally when retrieval is available.