File contents Component Auditor
When to activate
User runs /audit-component or requests a comprehensive review of a React/Vue/Angular component for reusability, testability, accessibility, performance, and design system compliance.
When NOT to use
Simple style-only reviews (use /profile-performance instead)
Accessibility-only audits (use /review-a11y instead)
Design token checking alone (use /check-design-system instead)
Instructions
Examine component structure
Single responsibility (one job per component)
Prop interface (clear, documented, not prop drilling)
Internal vs. composed state
Custom hooks extraction opportunity
Test coverage analysis
Identify untested code paths
Suggest test cases for edge cases
Check for mocking patterns
Accessibility review
Semantic HTML usage
ARIA labels and roles
Keyboard navigation
Focus management
Performance analysis
Render optimization (memoization, useMemo, useCallback)
Re-render frequency analysis
Bundle size impact
Design system alignment
Token usage (colors, spacing, typography)
Component name adherence
Storybook export completeness
Produce actionable feedback
3–5 highest-impact refactors
Code examples for each suggestion
Estimated effort (small/medium/large)
Example
User: "Audit this Button component for reuse across the design system."
Response:
Identifies prop drilling opportunity (size, variant, disabled should extract to context)
Suggests 80% test coverage on click handlers and state
Flags missing aria-label for icon-only variants
Recommends memoization if button appears in lists
Confirms color tokens used, suggests adding to Storybook
1 --- 2 name: component-auditor 3 description: Component Auditor 4 --- 5 # Component Auditor 6 7 ## When to activate 8 9 User runs `/audit-component` or requests a comprehensive review of a React/Vue/Angular component for reusability, testability, accessibility, performance, and design system compliance. 10 11 ## When NOT to use 12 13 - Simple style-only reviews (use `/profile-performance` instead) 14 - Accessibility-only audits (use `/review-a11y` instead) 15 - Design token checking alone (use `/check-design-system` instead) 16 17 ## Instructions 18 19 1. **Examine component structure** 20 - Single responsibility (one job per component) 21 - Prop interface (clear, documented, not prop drilling) 22 - Internal vs. composed state 23 - Custom hooks extraction opportunity 24 25 2. **Test coverage analysis** 26 - Identify untested code paths 27 - Suggest test cases for edge cases 28 - Check for mocking patterns 29 30 3. **Accessibility review** 31 - Semantic HTML usage 32 - ARIA labels and roles 33 - Keyboard navigation 34 - Focus management 35 36 4. **Performance analysis** 37 - Render optimization (memoization, useMemo, useCallback) 38 - Re-render frequency analysis 39 - Bundle size impact 40 41 5. **Design system alignment** 42 - Token usage (colors, spacing, typography) 43 - Component name adherence 44 - Storybook export completeness 45 46 6. **Produce actionable feedback** 47 - 3–5 highest-impact refactors 48 - Code examples for each suggestion 49 - Estimated effort (small/medium/large) 50 51 ## Example 52 53 User: "Audit this Button component for reuse across the design system." 54 55 Response: 56 - Identifies prop drilling opportunity (size, variant, disabled should extract to context) 57 - Suggests 80% test coverage on click handlers and state 58 - Flags missing `aria-label` for icon-only variants 59 - Recommends memoization if button appears in lists 60 - Confirms color tokens used, suggests adding to Storybook
UitbreidenOS/UitKit/tree/main/professional-stacks/frontend_engineer_stack/skills/component-auditor commit 6c29c96c97
Frequently asked questions How do I install the Component Auditor skill? Run npx skillmds@latest add uitbreidenos/component-auditor in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Component Auditor skill do? Component Auditor It is listed under Web & Frontend on SkillMD.
Is Component Auditor safe to use? This skill has not completed SkillMD's automated safety review yet. Capability flags: reads secrets. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Component Auditor? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Component Auditor free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Component Auditor? UitbreidenOS (@uitbreidenos) published this skill. Their other Agent Skills are listed on their SkillMD profile.