OpenParable
Skip to content
← Back to skills

Shadcn Add

Development
shadcn-add

Shadcn 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`).

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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 exactOptionalPropertyTypes enabled. This might require removing props from destructurings.
  • Tailwind v4 modernization concerns (squashing data-['xxx'] attributes to data-xxx, converting arbitrary sizes to concrete values, e.g. size-[3rem] to size-12).

Organize:

  • Sort imports via the vscode "Organize Imports" source action.