Best use case
component-inventory is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Audit and inventory existing UI components in a codebase
Teams using component-inventory should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/component-inventory/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How component-inventory Compares
| Feature / Agent | component-inventory | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Audit and inventory existing UI components in a codebase
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Component Inventory Skill
## Purpose
Scan codebases to audit and inventory existing UI components, identifying variations, usage patterns, and opportunities for consolidation.
## Capabilities
- Scan codebase for React/Vue/Angular components
- Identify component variations and duplicates
- Map component usage across the application
- Generate comprehensive inventory reports
- Detect inconsistencies in component implementations
- Track component dependencies
## Target Processes
- component-library.js
- design-system.js
## Integration Points
- React component analysis via AST parsing
- Vue SFC analysis
- TypeScript/JavaScript AST parsing
- CSS-in-JS detection
## Input Schema
```json
{
"type": "object",
"properties": {
"scanPath": {
"type": "string",
"description": "Root path to scan for components"
},
"framework": {
"type": "string",
"enum": ["react", "vue", "angular", "svelte", "auto"],
"default": "auto"
},
"patterns": {
"type": "array",
"items": { "type": "string" },
"default": ["**/*.tsx", "**/*.jsx", "**/*.vue"]
},
"excludePaths": {
"type": "array",
"items": { "type": "string" },
"default": ["node_modules", "dist", "build"]
},
"analyzeProps": {
"type": "boolean",
"default": true
},
"detectDuplicates": {
"type": "boolean",
"default": true
}
},
"required": ["scanPath"]
}
```
## Output Schema
```json
{
"type": "object",
"properties": {
"components": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"path": { "type": "string" },
"props": { "type": "array" },
"usageCount": { "type": "number" }
}
}
},
"duplicates": {
"type": "array",
"description": "Similar or duplicate components"
},
"variations": {
"type": "object",
"description": "Component variations grouped by type"
},
"usageMap": {
"type": "object",
"description": "Component usage locations"
},
"statistics": {
"type": "object",
"properties": {
"totalComponents": { "type": "number" },
"uniqueComponents": { "type": "number" },
"averagePropsCount": { "type": "number" }
}
},
"recommendations": {
"type": "array",
"description": "Consolidation recommendations"
}
}
}
```
## Usage Example
```javascript
const result = await skill.execute({
scanPath: './src',
framework: 'react',
patterns: ['**/*.tsx', '**/*.jsx'],
detectDuplicates: true
});
```Related Skills
styled-components
Styled Components theming, variants, SSR support, and patterns.
react-server-components
React Server Components patterns including streaming, data fetching, client/server component composition, and performance optimization.
inventory-optimizer
Inventory management optimization skill with safety stock calculation, reorder point determination, and ABC analysis
qt-qml-component-generator
Generate QML components with proper property bindings, signal/slot connections, and Qt Quick Controls integration
ui-component-migrator
Migrate UI components between frameworks with structure, state, and style transformation
api-inventory-scanner
Discover and document existing API endpoints from code, logs, and traffic analysis
ink-component-generator
Generate Ink (React for CLI) components for terminal UIs with hooks, state management, and layout components.
process-builder
Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.
babysitter
Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)
yolo
Run Babysitter autonomously with minimal manual interruption.
user-install
Install the user-level Babysitter Codex setup.
team-install
Install the team-pinned Babysitter Codex workspace setup.