Component gen

From berkcangumusisik/claude-code-practices · View interactive version

Component gen is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Generates a React/Vue/Svelte component with props, types, tests, and stories

How to use this skill

Skill file

Generate Component

Component name: $1

Description: $2

  1. Detect stack:
cat package.json | grep -E '"react"|"vue"|"svelte"|"next"|"nuxt"'
ls src/components/ 2>/dev/null | head -5
  1. Read 2 existing components to match:
  1. Generate the component:
  1. Generate test file matching project test style.
  1. If Storybook is present (ls .storybook/), generate a story too.
  1. Place files in the correct directory following project conventions.

Summary: list all created files.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.