agentsclimarketplace

Component scaffold

Skill K95M65/AI_ONBOARD/skills/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

Install
npx -y skills add K95M65/AI_ONBOARD --skill component-scaffold

Assembled 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

  1. Run the scaffold script:
    bash scripts/scaffold.sh <ComponentName> [target-dir]
    
    • <ComponentName> must be PascalCase (e.g. UserCard).
    • target-dir defaults to components.
  2. It creates <target-dir>/<ComponentName>/ with <ComponentName>.tsx, <ComponentName>.test.tsx, and index.ts.
  3. Fill in the props interface and the render body. Use the project's design tokens — no hard-coded hex, spacing, or font sizes.
  4. 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/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.