Skip to content
Back to skills

Component Gen

ASecurity

Generates a React/Vue/Svelte component with props, types, tests, and stories

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 1, 2026
developmenttypescriptbashreactvue

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill component-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Component Gen?

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

Security grade badge for Component Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-component-gen/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-component-gen)

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: component-gen
description: Generates a React/Vue/Svelte component with props, types, tests, and stories
argument-hint: <ComponentName> [description]
user-invocable: true
allowed-tools: Read Glob Edit
effort: medium
---

## Generate Component

Component name: **$1**
Description: **$2**

1. Detect stack:
```bash
cat package.json | grep -E '"react"|"vue"|"svelte"|"next"|"nuxt"'
ls src/components/ 2>/dev/null | head -5
```

2. Read 2 existing components to match:
   - File structure and naming
   - Import style
   - CSS approach (Tailwind, CSS modules, styled-components)
   - Export style (default vs named)

3. Generate the component:
   - TypeScript props interface
   - Component with proper typing
   - Default prop values where sensible
   - Accessibility attributes (aria-*, role, etc.)

4. Generate test file matching project test style.

5. If Storybook is present (`ls .storybook/`), generate a story too.

6. Place files in the correct directory following project conventions.

Summary: list all created files.

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.

Comments

Loading comments…