Skip to content
Back to skills

Scaffold Component

ASecurity

Creates a new UI component with props, styles, a test and a story, copying the folder layout your project already uses.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsvue

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill scaffold-component --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scaffold Component?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scaffold Component
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-scaffold-component-ai-agent-templates/badge)](https://www.skillsdirectory.com/skills/workspace-templates-scaffold-component-ai-agent-templates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scaffold-component
description: Creates a new UI component with props, styles, a test and a story, copying the folder layout your project already uses.
disable-model-invocation: true
---

Scaffold a component named and described by: $ARGUMENTS

1. Find two or three existing components of similar size (`Glob` for `*.tsx`, `*.vue`, `*.svelte`). Note the folder layout, naming case, styling approach (CSS modules, Tailwind, styled), prop typing, and how tests and stories are named.
2. If the name collides with an existing component, stop and ask.
3. Create the folder and files exactly as the neighbors do: component, styles, test, story, and an index export if siblings have one.
4. Type the props with sensible defaults, forward `className` and refs when siblings do, and use semantic elements with labels for anything interactive.
5. The test renders the component, checks one default case and one prop variation. The story shows each variant.
6. Run the project's lint, type check and the new test only.

List the files created and the commands that passed. Do not modify existing components; if a shared file needs a change, show the diff and ask first.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.