bitovi/ai-enablement-prompts/component-reuse
Claude Code and agent skill by bitovi/ai-enablement-prompts
- community
Checking that the SKILL.md file is still in the repository.
Ensure existing UI components are reused before creating new ones. Must run BEFORE any UI implementation. Audits the codebase for matching components and reports whether to REUSE, WRAP, or CREATE.
Install
npx vskill@latest install bitovi/ai-enablement-prompts/component-reuseSKILL.md
Skill: Component Reuse Audit
A gate skill that enforces checking for existing components before creating new ones.
When to Use
BEFORE any UI implementation task. This skill must run before:
- Creating a new component
- Building a new page or feature
- Implementing a Figma design
Purpose
Prevent duplicate components by auditing what already exists.
Workflow
Step 1: Extract Component Names
From the design or requirements, list every UI element needed:
- Buttons, inputs, selects, checkboxes
- Cards, tables, lists, badges
- Dialogs, modals, popovers
- Layout containers, navigation elements
Step 2: Search for Exact Names
Step 3: Search for Variations
Look for alternate names and similar components:
Step 4: Output Audit Table
Create a decision table:
| Needed Component | Found Match | Location | Decision | |
|---|---|---|---|---|
| Button | ✅ Button | src/components/ui/Button | REUSE | |
| StatusBadge | ⚠️ Badge (partial) | src/components/ui/Badge | WRAP — extend with status colors | |
| Timeline | ❌ None | — | CREATE |
Step 5: Take Action
For each decision:
- REUSE: Import and use the existing component directly
- WRAP: Create a thin wrapper around an existing component that adds the missing functionality
- CREATE: Only create a new component if nothing similar exists
Common Mistakes
- ❌ Creating a new
StatusBadgewhenBadgeexists and can accept avariantprop - ❌ Building a custom dialog when the UI library provides one
- ❌ Copying a component instead of importing it
- ❌ Skipping this audit because "it's faster to just build it"
Quality Checklist
- [ ] Every UI element in the design has been audited
- [ ] All existing components in src/components/ have been checked
- [ ] UI library components (shadcn, MUI, etc.) have been checked
- [ ] Decision table is complete with REUSE/WRAP/CREATE for each element
- [ ] No REUSE or WRAP was incorrectly marked as CREATE
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/react/skills/component-reuse/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bitovi/ai-enablement-prompts/component-reuse)