create-component
Skill1 starsChanged 4 months agoMITView on GitHub
Scaffold a brand-new component for the user's React + TypeScript component library in the library's own house style, add its section to DESIGN-SYSTEM.md, and open a PR into the configured base branch. Use whenever the user wants a component that does NOT yet exist — "create a Toast component", "add a Stepper to the library", "we need a Tabs". If the component already exists, use `edit-component` instead.
- Reads credentials
12 other projects use a version of this.
Adopted by
Most recently taken up by
- agentconfig/agentconfig.orgtheir own version, first seen Nov 8, 2026
- buildpad-ai/skillstheir own version, first seen Oct 16, 2026
- monegit/agent-skillstheir own version, first seen Oct 13, 2026
- Simone-Tarantino/godot-superpowerstheir own version, first seen Oct 11, 2026
- Endava/BEEQtheir own version, first seen Oct 8, 2026
- thoughtfulllc/gridlandtheir own version, first seen Oct 8, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- gluestack/gluestack-ui★ 5.3ksame name
- DataDog/datadog-agent★ 3.8ksame name
- compose-miuix-ui/miuix★ 1.6ksame name
- thoughtfulllc/gridland★ 363same name
- Endava/BEEQ★ 162same name
- incluud/astro-agent-skills★ 10same name
- agentconfig/agentconfig.org★ 7same name
- viknesh20-20/claude-code-tool-kit★ 7same name
- Simone-Tarantino/godot-superpowers★ 2same name
- buildpad-ai/skills★ 1same name
2 more not listed
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 repository4 other files it gives its agents.
- audit-librarySkill
- delete-componentSkill
- edit-componentSkill
- use-componentSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Repo location: if not already known.
- Very specific: line 45
Read the rules in forge.config.json and
- Very specific: line 50
Read the brain's Foundations + Conventions: ${CLAUDE_PLUGIN_ROOT}/skills/_shared/DESIGN-SYSTEM.md.
- Distinctive: line 60
Compose existing primitives — never re-implement them: If the component needs a button, import the library's Button/IconButton.
- Distinctive: line 103
If the user corrects a house pattern while reviewing, record it durably:
- Very specific: line 128
After the PR opens, offer to run design:accessibility-review, design:design-critique, and design:design-handoff against the new component.
- Very specific: line 147
Never create a component that already exists — use edit-component.
- Distinctive: line 153
Never hardcode colors/spacing when a token exists.
“Common” is measured: kept by at least 6 in 10 of the 11 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
Forge — Create Component
Prerequisite: forge.config.json exists at the repo root (run forge init once).
Scaffold a new component so it is indistinguishable from a hand-written
senior-engineer component in this library's style, document it in the brain, and
ship it as a PR into the base branch from forge.config.json git.prBase
(defaults to main).
When this triggers
The user wants a component that isn't in the library yet. First confirm it's
genuinely absent: check the brain's Component index and grep the repo for the
export. If it already exists, stop — use edit-component.
Inputs to confirm (ask only what's genuinely ambiguous)
- Name (and exported symbol — follow whatever naming convention the rules
in
forge.config.json+ the standard at${CLAUDE_PLUGIN_ROOT}/skills/_shared/references/component-standard.mdprescribe, and match how siblings in the brain are named). Confirm the symbol if unclear. - What it does and its prop surface — variants, sizes, states, events.
- Repo location if not already known.
- Group —
coreorfoundational(where it belongs in the brain index).
Workflow
1. Load the house style
- Read the rules in
forge.config.jsonand${CLAUDE_PLUGIN_ROOT}/skills/_shared/references/component-standard.mdfirst — the enforceable spec the new component must satisfy from line one (naming convention,<Name>Props, variant/color axes, size scale,classNamelast, ARIA + keyboard, files, barrel export). - Read the brain's Foundations + Conventions:
${CLAUDE_PLUGIN_ROOT}/skills/_shared/DESIGN-SYSTEM.md. - Read
${CLAUDE_PLUGIN_ROOT}/skills/_shared/references/conventions.mdand.../standing-guidance.md(corrections override defaults). - MANDATORY — read 2–3 sibling components closest in shape (Toast→Alert/Notification;
Modal→Dialog; Stepper→Tabs/Progress) and state in your output which
sibling(s) you mirrored. Copy their exact tokens (the same
--text-*,--surface-*,--radius-*,--space-*they use), their class-naming, their structure. Do not anchor to generic foundation tokens when a sibling shows the house choice — that's what causes visual clashes. - Compose existing primitives — never re-implement them. If the component needs a
button, import the library's Button/IconButton; an input, its InputField; a
checkbox, its Checkbox. Hand-rolling a button/input inside a new component is a
defect. Run
use-componentmentally: what does the library already give you?
2. Scaffold the component
Create, under src/components/<Name>/:
<Name>.tsx— function component,forwardRefwhen it renders a focusable DOM element. Naming per the rules inforge.config.json+ the standard at${CLAUDE_PLUGIN_ROOT}/skills/_shared/references/component-standard.md. Namedinterface <Name>Props(required first, optional next, handlers last). Variants as string-literal unions, with the visual-style and semantic-color axes / size scale defined by the standard.classNameoverride hook appended last. ARIA + keyboard support. Maximally prop-driven, zero-config where possible.<Name>.css— co-located. Reference token CSS variables only; never hardcode hex/px when a token exists. Theming works automatically viadata-theme— don't special-case themes.<Name>.stories.tsx— stories covering each variant/size/state.<Name>.test.tsx— render + key behavior + a11y smoke test.- Export the symbol from the package root barrel (match how siblings are exported).
3. Add the section to the brain (self-documentation)
Generate the new ## <Name> section from the scaffolded source:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/_shared/scripts/sync_design_system.py" \
--repo <repo-path> --component <Name> \
--brain "<repo-path>/DESIGN-SYSTEM.md" \
--create --group <core|foundational>--create appends the section under the chosen group when it doesn't exist yet.
Props come straight from the source you just wrote, so the section is verified.
Then add the component's row to the Component index table near the top of the
brain (name, category, import symbol, "table"). Read the script output to confirm.
Write the canonical brain at
<repo-path>/DESIGN-SYSTEM.md(committed in this PR). The plugin's${CLAUDE_PLUGIN_ROOT}/skills/_shared/DESIGN-SYSTEM.mdstays in sync via the consuming workflow — never target it on writes. Tokens for any follow-onrebuild_brain.py --brain "<repo-path>/DESIGN-SYSTEM.md"come from<repo-path>/forge.config.jsonrepo.tokensCss(passed as--tokens-css).
4. Capture corrections
If the user corrects a house pattern while reviewing, record it durably:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/_shared/scripts/record_guidance.py" \
--rule "<generalized rule>" --scope components \
--store "${CLAUDE_PLUGIN_ROOT}/skills/_shared/references/standing-guidance.md"5. Open the PR (into the configured base branch)
bash "${CLAUDE_PLUGIN_ROOT}/skills/_shared/scripts/open_pr.sh" \
--repo <repo-path> --component <Name> --action create \
--summary "Add <Name> component" \
--paths "src/components/<Name>/ src/index.ts DESIGN-SYSTEM.md"Always pass --paths with exactly the files you created (the component dir,
the barrel, the brain) — open_pr.sh stages only those, never git add -A, so no
stray working-tree file (a local .env, secrets, WIP) is swept into the PR. Use
--no-push to commit without pushing.
Branch forge/create/<name>-<slug>, single commit (component + stories + test +
brain section), PR into the base branch from forge.config.json git.prBase
(defaults to main). If gh is absent it prints the exact commands.
After the PR opens, offer to run design:accessibility-review,
design:design-critique, and design:design-handoff against the new component.
Output to the user
Report: the new component's API (prop signature), the files created, that the brain section + index row were added (verified), and the PR link (or branch + command). Don't paste the whole component — link the PR.
Prop completeness & a11y (before the PR)
- Cover the baseline props (§2.1) and the type-specific prop set (§2.2) of the
standard — a new Button without
loading/disabled/size, or a Select withoutvalue/onChange/multiple, is not ready. - Event handlers pass the native event (
(e) => void), never bare values. - Implement the required ARIA for the type (§4.1): overlays get a real focus trap +
restore (not a comment claiming it), alerts get
aria-live, menus/tabs/sliders get roles + keyboard nav, icon-only buttons getaria-label. - Text → canonical
--text-*; sizes/spacing/radius → tokens. No raw hex/px.
Guardrails
- Never create a component that already exists — use
edit-component. - Reuse library primitives (Button/Input/etc.); never hand-roll them inside a new component.
- Match the sibling's exact tokens; never introduce a new color/type vocabulary.
- Output must match house style: prop-driven, token-referencing, typed unions,
classNameoverride, ARIA + keyboard. A reviewer shouldn't be able to tell it was generated. - Never hardcode colors/spacing when a token exists.
- Brain section + index row ship in the same commit as the code.
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.

