shadcn-add
Skill by remeda
Applies follow-up cleanup and refactors to shadcn/ui components after they are added with the shadcn add CLI command. Intended for developers maintaining files in src/components/ui.
Install shadcn-add
Built from the published package, never by AI.
git clone --depth 1 https://github.com/remeda/remeda /tmp/remeda && mkdir -p ~/.claude/skills && cp -r /tmp/remeda/.agents/skills/shadcn-add ~/.claude/skills/shadcn-addRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/remeda/remeda /tmp/remeda && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/remeda/.agents/skills/shadcn-add ~/.gemini/antigravity-cli/skills/shadcn-addAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
shadcn-add is an agent skill that lists cleanup and refactor steps to run whenever a new shadcn component is added with the add CLI command. It should be checked whenever a new file appears in the shadcn UI component directory at src/components/ui. The skill removes the global React namespace import, React prefixes, the global export block, use client directives and blank lines within imports.
It also fixes issues caused by exactOptionalPropertyTypes, which may require removing props from destructurings, and modernizes Tailwind v4 classes such as data-['xxx'] attributes and arbitrary sizes like size-[3rem]. Imports are sorted with the VS Code Organize Imports source action. It is aimed at developers who maintain shadcn/ui components in their project.
Written from the project's SKILL.md and checked against it.
What it can do
- Remove React importsRemoves the global React namespace import and any React. prefixes in types and runtime code.
- Remove directives and blocksRemoves use client directives, the global export block and blank lines within imports.
- Fix optional property issuesResolves issues caused by exactOptionalPropertyTypes being enabled.
- Modernize Tailwind v4 classesConverts data-['xxx'] attributes to data-xxx and arbitrary sizes like size-[3rem] to size-12.
- Sort importsSorts imports using the VS Code Organize Imports source action.
What you need
- A project using shadcn/ui components
- shadcn add CLI command
- VS Code for the Organize Imports action
Try asking
- Clean up the shadcn button component I just added to src/components/ui
- Remove React namespace imports and React. prefixes from my ui components
- Convert data-['xxx'] attributes to data-xxx in src/components/ui
Good to know
- Intended for files added with the shadcn add CLI command
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/shadcn-add/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md1007 B
Alternatives to shadcn-add
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
shadcn-add: common questions
What does the shadcn-add skill clean up?
It removes the global React namespace import, React prefixes, the global export block, use client directives and blank lines within imports. It is meant to be applied after a new shadcn component is added.
When should this skill be checked?
The source says it should be checked whenever a new file is added to the shadcn UI component directory at src/components/ui.
Does it handle Tailwind v4 changes?
Yes. It squashes data-['xxx'] attributes to data-xxx and converts arbitrary sizes such as size-[3rem] to concrete values such as size-12.
How do I install shadcn-add?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is shadcn-add free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is shadcn-add safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to shadcn-add?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
