Shadcn Add
Developmentshadcn-addShadcn Add is an Agent Skill for development published in the remeda/remeda repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Follow up cleanup and refactors that **must** be done whenever a new shadcn component is added via the add cli command. This skill should be checked whenever a new file is added to the shadcn ui component directory (`src/components/ui`).
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/remeda/remeda/blob/HEAD/.agents/skills/shadcn-add/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/shadcn-add, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Remove:
- The global React namespace import (
import * as React from "react"); only import the concrete types and utilities needed. - Any
React.prefixes, both in types and in runtime code. - The global
export { }block; add the export keyword to each declaration instead. "use client"directives.- Blank lines within the import statements.
Fix:
- Issues caused by having
exactOptionalPropertyTypesenabled. This might require removing props from destructurings. - Tailwind v4 modernization concerns (squashing
data-['xxx']attributes todata-xxx, converting arbitrary sizes to concrete values, e.g.size-[3rem]tosize-12).
Organize:
- Sort imports via the vscode "Organize Imports" source action.