Component scaffold
Scaffolds a new React/TypeScript UI component (component + test + index) from a consistent template. Use when creating a new frontend component and you want the standard file layout without hand-copying boilerplate.From its SKILL.md
npx -y skills add K95M65/AI_ONBOARD --skill component-scaffoldAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 234 tokens by cl100k_base, as published. Nobody here has run it
Component scaffold
When to use
Creating a new UI component. Skip it for one-off inline elements — this is for components that get their own folder, test, and export.
Steps
- Run the scaffold script:
bash scripts/scaffold.sh <ComponentName> [target-dir]<ComponentName>must be PascalCase (e.g.UserCard).target-dirdefaults tocomponents.
- It creates
<target-dir>/<ComponentName>/with<ComponentName>.tsx,<ComponentName>.test.tsx, andindex.ts. - Fill in the props interface and the render body. Use the project's design tokens — no hard-coded hex, spacing, or font sizes.
- Run the frontend tests to confirm it compiles and the placeholder test passes.
Notes
- Refuses to overwrite an existing component directory.
- Templates live in
templates/. Adapt them to your stack once (styling approach, test library) and every future scaffold follows suit.
What ships with it: 4 files
1.8 KB alongside SKILL.md, 1 of them executable
scripts/
- scaffold.shruns1.2 KB
templates/
- Component.test.tsx.tmpl307 B
- Component.tsx.tmpl213 B
- index.ts.tmpl88 B