component-common-domai…
Finds duplicate business logic spread across multiple components and suggests consolidation. Use when asking "where is this logic…
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
Claude Code
$ npx -y skills add tech-leads-club/agent-skills --skill component-identification-sizing --agent claude-code
Codex
$ npx skills add tech-leads-club/agent-skills --skill component-identification-sizing -a codex -y
Cursor
$ npx skills add tech-leads-club/agent-skills --skill component-identification-sizing -a cursor -y
Gemini CLI
$ npx skills add tech-leads-club/agent-skills --skill component-identification-sizing -a gemini-cli -y
GitHub Copilot
$ npx skills add tech-leads-club/agent-skills --skill component-identification-sizing -a github-copilot -y
OpenCode
$ npx skills add tech-leads-club/agent-skills --skill component-identification-sizing -a opencode -y
Windsurf
$ npx skills add tech-leads-club/agent-skills --skill component-identification-sizing -a windsurf -y
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.
Finds duplicate business logic spread across multiple components and suggests consolidation. Use when asking "where is this logic…
Detects misplaced classes and fixes component hierarchy problems — finds code that should belong inside a component but sits at…
Analyzes coupling between modules using the three-dimensional model (strength, distance, volatility) from "Balancing Coupling in…
Creates step-by-step decomposition plans and migration roadmaps for breaking apart monolithic applications. Use when asking "what…
Maps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the…
Groups existing components into logical business domains to plan service-based architecture. Use when asking "which components…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.