component
Skill4 starsChanged 7 months agoMITView on GitHub
Generate a UI component scaffold in the codebase's actual style. Reads dragoon.json to match framework (react/vue/svelte), styling layer (tailwind/css-modules/plain), language (typescript/javascript), and design tokens (radius, spacing, palette). Defaults to dry-run preview; pass --apply to write files. Use when the user wants to create a new component, scaffold UI primitives, or add a component to their codebase. Run as `node ~/.claude/skills/dragoon/skills/component/scripts/component.js <Name>`.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- darkroomengineering/cc-settingstheir own version, first seen Sep 24, 2026
- Maximepodgorski/agent-skillstheir own version, first seen May 3, 2026
- lightpointventures/claude-code-startertheir own version, first seen Mar 27, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- microsoft/vscode★ 196ksame name
- darkroomengineering/cc-settings★ 47same name
- lightpointventures/claude-code-starter★ 36same name
- Maximepodgorski/agent-skills★ 21same 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 repository37 other files it gives its agents.
- useforgekitSkill
- accessibilitySkill
- autoplanSkill
- benchmarkSkill
- briefSkill
- canarySkill
- carefulSkill
- colorSkill
- critiqueSkill
- diffSkill
- docsSkill
- forgeSkill
- freezeSkill
- handoffSkill
- installSkill
- inventorySkill
- investigateSkill
- landSkill
- mapSkill
- memorySkill
- motionSkill
- perfSkill
- plan-designSkill
- plan-engSkill
- qaSkill
- researchSkill
- retroSkill
- reviewSkill
- scanSkill
- second-opinionSkill
- shipSkill
- slopSkill
- spacingSkill
- storybookSkill
- syncSkill
- tailwindSkill
- typographySkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 52
All writes are atomic (temp file + rename), so a failed write never leaves a half-written file.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/component
Generates a component scaffold that matches the codebase's existing style.
When to use
- The user asks to "create a component", "scaffold a UI primitive", "add a Card / Button / etc."
- The user wants a starting point that fits the existing design system
- Setting up a new feature that needs new UI
How it works
- Reads
dragoon.json(or runs /scan if missing) to detect the stack. - Picks a template based on framework + styling layer:
- react + tailwind → tsx with tailwind utility classes derived from your tokens
- react + css-modules → tsx + .module.css using your spacing grid and radius
- react + plain css → tsx + .css with kebab-case class
- vue → SFC with scoped styles
- svelte → .svelte single file
- Substitutes manifest tokens: spacing grid → padding, palette → bg/fg, radius scale → border-radius.
- Defaults to dry-run preview.
--applyactually writes files.
Run it
dragoon component <Name> [--dir path] [--apply]
# preview
dragoon component Card
# write to default src/components/
dragoon component Card --apply
# custom directory
dragoon component UserMenu --dir src/ui --apply
# overwrite existing
dragoon component Card --apply --overwriteSafety
- Component name must be PascalCase identifier (rejects shell metacharacters, reserved words).
- Output directory is resolved inside the project root (rejects path traversal).
- Refuses to overwrite existing files unless
--overwriteis passed. - All writes are atomic (temp file + rename), so a failed write never leaves a half-written file.
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.

