add-component
Skill3 starsChanged 2 days agoMITView on GitHub
Installer un composant shadcn/ui (bouton, select, tabs, toast, tableau…) ou créer un composant réutilisable. À utiliser dès qu'il faut un élément d'interface qui n'existe pas encore dans src/components.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- IntelliHelper/agent-skillstheir own version, first seen Oct 20, 2026
- jpicklyk/task-orchestratortheir own version, first seen Oct 17, 2026
- DailybotHQ/deepworkplan-websitetheir own version, first seen Oct 9, 2026
- Azure-Samples/art-voice-agent-acceleratortheir own version, first seen Oct 8, 2026
- lbedner/aegis-stacktheir own version, first seen Oct 8, 2026
- signerlabs/ShipSwifttheir own version, first seen Oct 8, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- signerlabs/ShipSwift★ 3.3ksame name
- jpicklyk/task-orchestrator★ 214same name
- lbedner/aegis-stack★ 146same name
- ahpxex/open-dashboard★ 136same name
- Azure-Samples/art-voice-agent-accelerator★ 74same name
- DailybotHQ/deepworkplan-website★ 15same name
- dperezcabrera/pico-skills★ 4same name
- IntelliHelper/agent-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-formSkill
- add-motionSkill
- add-pageSkill
- add-testSkill
- deploySkill
- design-systemSkill
- fetch-dataSkill
- from-figmaSkill
- polish-uiSkill
- rebrandSkill
The file
Files
Ajouter un composant
Composant shadcn/ui
- Vérifier s'il existe déjà dans
src/components/ui/. L'installer :
npx shadcn@latest add selectLe style du projet est
base-luma(basé sur Base UI, pas Radix) : la CLI installe la bonne variante grâce àcomponents.json. Le serveur MCP shadcn (.mcp.json) permet aussi de chercher les composants disponibles.- L'exposer sur la page
/ui(src/routes/ui.tsx) dans un nouveau bloc<Showcase title="Select">, pour le voir en clair et en sombre. - Vérifier :
npm run lint && npm run build.
Les fichiers de src/components/ui/ appartiennent au projet : on peut les modifier, mais garder leur API (props, variantes) cohérente avec shadcn.
Composant maison
- Le placer dans
src/components/(pas dansui/, réservé à shadcn), un fichier par composant, nom en kebab-case :pricing-card.tsx. - Exporter une fonction nommée (
export function PricingCard), accepterclassNameet le fusionner aveccn()de@/lib/utils. - Construire à partir des composants
ui/existants plutôt que repartir de zéro. - Si le composant a de la logique (état, calcul), ajouter un test
*.test.tsxà côté.
Composition Base UI
Pour qu'un composant en rende un autre, Base UI utilise la prop render (et non asChild) :
<DialogTrigger render={<Button variant="outline" />}>Ouvrir</DialogTrigger>Pour un lien stylé comme un bouton : className={buttonVariants({ variant: 'outline' })}.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

