component-identification-sizing

Identify leaf-node components and compute size metrics for decomposition planning.

59|14|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/guilhermemarketing/esc-skills --skill component-identification-sizing-guilhermemarketing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-identification-sizing
Source: https://github.com/guilhermemarketing/esc-skills/tree/main/skills/component-identification-sizing
Command: npx skills add https://github.com/guilhermemarketing/esc-skills --skill component-identification-sizing-guilhermemarketing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies architectural components in a codebase and provides sizing metrics to support decomposition planning, enabling safer refactoring and clearer domain boundaries.

Core Features & Use Cases

  • Leaf-node component identification: detects components as leaf nodes in directory/namespace structures to avoid conflating subdomains with components.
  • Size metrics calculation: counts executable statements and files, computes each component's percentage of the codebase, and derives statistics like mean and standard deviation.
  • Oversized/undersized detection and recommendations: flags components for splitting or consolidation to improve maintainability and modularity.
  • Output artifacts: generates a component inventory and size distribution summaries to guide refactoring decisions.

Quick Start

Identify all components and calculate their sizes in your codebase to begin planning a decomposition.

Frequently Asked Questions about component-identification-sizing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is component sizing in software architecture?

Codebase decomposition identifies architectural components as leaf nodes within directory structures to avoid conflating subdomains. It then calculates executable statements and files to establish clear domain boundaries and support safer refactoring.

How do I identify oversized components in my codebase?

Identify oversized components by calculating executable statements and deriving standard deviation statistics across the inventory. Standard deviation analysis flags components that exceed the mean, generating recommendations for splitting oversized or consolidating undersized modules.

How do I measure codebase decomposition for refactoring?

Measure codebase decomposition by detecting leaf-node components and computing their percentage of the overall codebase. This generates a component inventory and size distribution summaries that provide quantitative metrics to guide refactoring decisions.

Does component sizing work with diverse programming languages?

Component sizing applies to diverse codebases and languages by analyzing directory and namespace structures. It identifies leaf-node components and calculates executable statements regardless of the underlying programming language used in the codebase.

Why detect leaf nodes when sizing architectural components?

Detecting components as leaf nodes in directory or namespace structures prevents conflating subdomains with actual components. This approach ensures accurate size metrics calculation by isolating individual executable statement counts for targeted decomposition planning.

What metrics are needed for an architectural component inventory?

An architectural component inventory requires executable statement counts, file counts, and codebase percentages for each leaf-node component. Mean and standard deviation statistics are also computed to flag oversized or undersized components for refactoring recommendations.