Agent skill
scaffold-component
Generate a new React component following project conventions. Use when creating new components or UI features.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/scaffold-component
SKILL.md
Create a new React component named $ARGUMENTS following project conventions:
-
Create the component file at
client/src/components/$ARGUMENTS.tsx -
Follow this structure:
typescriptimport React from 'react'; // Icons (if needed) // Types (if needed) interface Props { // Define props here } export function $ARGUMENTS({ ...props }: Props) { // State hooks // Handler functions return ( <section className="bg-white rounded border border-slate-200 p-4"> <h3 className="font-bold text-brand-navy mb-4">Title</h3> {/* Content */} </section> ); } -
Conventions:
- Use function components (not arrow functions for exports)
- Interface for Props comes first
- Imports order: React, Icons, Types, local imports
- Use Tailwind CSS classes
- Use
brand-navyfor headings
-
After creation:
- Add export to
client/src/components/index.tsif it exists - Run build to verify no type errors
- Add export to
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?