Agent skill

generate-component

Generate React component with TypeScript, tests, and styles

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/generate-component-erp-core-dev-eagles-claude-config

SKILL.md

Generate React Component

Generate a typed React component with Ant Design, Redux integration, and tests.

What To Do

  1. Generate component file with proper TypeScript types
  2. Generate test file using React Testing Library
  3. Add Redux slice if stateful component
  4. Register route if page component

Component Types

  • page: Full page with layout, breadcrumb, data fetching
  • form: Ant Design Form with validation, submit handler
  • list: Table with pagination, search, filters
  • detail: Detail view with tabs and action buttons

Arguments

  • <component-name>: Component name in PascalCase
  • --type=<page|form|list|detail>: Component template

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results