Agent skill

modular-decomposition

Runs a sequenced monolith-to-modular pipeline that sizes and inventories components, finds shared domain duplication, addresses flattening and hierarchy issues, analyzes coupling, then groups components into candidate domain-aligned units, with optional embedded DDD strategic analysis for bounded contexts. Use when asking how to split a monolith, size components before extraction, find duplicated domain logic, clean up module hierarchy, measure coupling between modules, or group components into services. Do NOT use for phased extraction roadmaps or prioritization without the prior analysis ste

tech-leads-clubgithub.com/tech-leads-clubGitHub ↗
claude-codecopilotcursorNOASSERTION
Install
npx skills add tech-leads-club/agent-skills --skill modular-decomposition --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 13
SKILL.md size: 7 KB
Bundled scripts: none
Path: packages/skills-catalog/skills/(architecture)/modular-decomposition/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 4,983
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Modular Decomposition This skill runs the **Patterns 1–5** analysis pipeline before service extraction. Each pattern is plain markdown under `references/`; load the file for that step and execute it against the user’s codebase. ## How to Use ### Quick start (what users can say) - **Full pipeline:** “Run modular decomposition Patterns 1 through 5 on this repo,” “Analyze this monolith for splitting—inventory, coupling, and domain grouping.” - **Single early step:** “Identify and size components here,” “Find duplicated domain logic across modules,” “Analyze coupling between our packages.” - **With DDD lens:** “Group components into domains and check bounded contexts,” “Use DDD strategic design on this codebase before we group services.” If the user only wants **extraction order, phases, or migration roadmap** after analysis exists, use **decomposition-planning-roadmap** instead. If they need a **full legacy migration plan** (strangler fig, research, multi-stack), use **legacy-migration-planner** as well or instead of this skill when that is the primary ask. ### How the agent should run it 1. **Scope:** Confirm the task is structural analysis (inventory → coupling → grouping), not ro

What's inside
Steps it walks through
  1. How to Use
  2. Quick start (what users can say)
  3. How the agent should run it
  4. Usage examples
  5. Prerequisites
  6. Ordered workflow (Patterns 1–5)
  7. Pattern 6 — planning and extraction
  8. Bounded contexts and DDD strategic design
Ships with 12 files
  • references/domain-analysis-examples.md
  • references/domain-analysis-quick-reference.md
  • references/domain-analysis.md
  • references/pattern-01-identify-and-size-quick-reference.md
  • references/pattern-01-identify-and-size.md
  • references/pattern-02-common-domain-quick-reference.md
  • references/pattern-02-common-domain.md
  • references/pattern-03-flattening-quick-reference.md
  • references/pattern-03-flattening.md
  • references/pattern-04-coupling.md
  • references/pattern-05-domain-grouping-quick-reference.md
  • references/pattern-05-domain-grouping.md
More from agent-skills
All skills →
About this skill
What does the modular-decomposition skill do?

Runs a sequenced monolith-to-modular pipeline that sizes and inventories components, finds shared domain duplication, addresses flattening and hierarchy issues, analyzes coupling, then groups components into candidate domain-aligned units, with optional embedded DDD strategic analysis for bounded contexts. Use when asking how to split a monolith, size components before extraction, find duplicated domain logic, clean up module hierarchy, measure coupling between modules, or group components into services. Do NOT use for phased extraction roadmaps or prioritization without the prior analysis ste

How do I install it?

Run `npx skills add tech-leads-club/agent-skills --skill modular-decomposition --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From tech-leads-club/agent-skills, a repository with 4,983 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going