component-common-domai…
Finds duplicate business logic spread across multiple components and suggests consolidation. Use when asking "where is this logic duplicated?", "find common…
Maps architectural components in a codebase and measures their size to identify what should be extracted first. Use when asking "how big is each module?", "what components do I have?", "which service is too large?", "analyze codebase structure", "size my monolith", or planning
$ npx -y skills add tech-leads-club/agent-skills --skill component-identification-sizing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/component-identification-sizingContext preview
The summary Claude sees to decide when to auto-load this skill.
Maps architectural components in a codebase and measures their size to identify what should be extracted first. Use when asking "how big is each module?", "what components do I have?", "which service is too large?", "analyze codebase structure", "size my monolith", or planning
name: component-identification-sizing description: Maps architectural components in a codebase and measures their size to identify what should be extracted first. Use when asking "how big is each module?", "what components do I have?", "which service is too large?", "analyze codebase structure", "size my monolith", or planning where to start decomposing. Do NOT use for runtime performance sizing or infrastructure capacity planning.
This skill identifies architectural components (logical building blocks) in a codebase and calculates size metrics to assess decomposition feasibility and identify oversized components.
Request analysis of your codebase:
**Example 1: Complete Analysis**
User: "Identify and size all components in this codebase" The skill will: 1. Map directory/namespace structures 2. Identify all components (leaf nodes) 3. Calculate size metrics (statements, files, percentages) 4. Generate component inventory table 5. Flag oversized/undersized components 6. Provide recommendations
**Example 2: Find Oversized Components**
User: "Which components are too large?" The skill will: 1. Calculate mean and standard deviation 2. Identify components >2 std dev or >10% threshold 3. Analyze functional areas within large components 4. Suggest specific splits with estimated sizes
**Example 3: Component Size Analysis**
User: "Analyze component sizes and distribution" The skill will: 1. Calculate all size metrics 2. Generate size distribution summary 3. Identify outliers 4. Provide statistics and recommendations
1. **Initial Analysis**: Start with complete component inventory 2. **Identify Issues**: Find components that need attention 3. **Get Recommendations**: Request actionable split/consolidation suggestions 4. **Monitor Progress**: Track component growth over time
Apply this skill when:
A **component** is an architectural building block that:
**Key Rule**: Components are identified by **leaf nodes** in directory/namespace structures. If a namespace is extended (e.g., `services/billing` extended to `services/billing/payment`), the parent becomes a **subdomain**, not a component.
**Statements** (not lines of code):
**Component Size Indicators**:
Scan the codebase directory structure:
1. **Map directory/namespace structure**
2. **Identify leaf nodes**
3. **Create component inventory**
For each component:
1. **Count statements**
2. **Count files**
3. **Calculate percentage**
component_percent = (component_statements / total_statements) * 100
4. **Calculate statistics**
**Oversized Components** (candidates for splitting):
**Undersized Components** (candidates for consolidation):
**Well-Sized Components**:
## Component Inventory | Component Name | Namespace/Path | Statements | Files | Percent | Status | | --------------- | ---------------------------- | ---------- | ----- | ------- | ------------ | | Billing Payment | services/Billin
The secure, validated skill registry for professional AI coding agents. Extend Antigravity, Claude Code, Cursor, Copilot and more with absolute confidence.
Repo: tech-leads-club/agent-skills
Finds duplicate business logic spread across multiple components and suggests consolidation. Use when asking "where is this logic duplicated?", "find common…
Detects misplaced classes and fixes component hierarchy problems — finds code that should belong inside a component but sits at the root level. Use when asking…
Analyzes coupling between modules using the three-dimensional model (strength, distance, volatility) from "Balancing Coupling in Software Design". Use when…
Creates step-by-step decomposition plans and migration roadmaps for breaking apart monolithic applications. Use when asking "what order should I extract…
Maps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the domains in this codebase?",…
Groups existing components into logical business domains to plan service-based architecture. Use when asking "which components belong together?", "group these…