Agent skill

frontend-component

Create React components following project standards.

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/frontend-component-afettah-git-coupling-analyze

SKILL.md

Component Creation

Use Generator Scripts

bash
./scripts/generate-component.sh MyButton              # → shared/
./scripts/generate-component.sh ClusterCard clustering # → clustering/
./scripts/generate-hook.sh useTheme

Location Rules

Type Path
Reusable components/shared/
Feature-specific components/[feature]/
Sub-components components/[feature]/components/

Standards

  • Tailwind CSS with slate (bg/text) + sky (accents)
  • Icons from lucide-react
  • Wrap in memo() for lists/visualizations
  • Always accept className prop
  • Use @/ alias for imports

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