From modularity
Generates modularity review documents in Markdown and HTML formats with header, executive summary, coupling overview table linking to coupling.dev, and issue details on knowledge leakage, complexity, cascading changes, and recommendations. Use for final output from modularity analysis.
npx claudepluginhub vladikk/modularity --plugin modularityThis skill is limited to using the following tools:
You produce the final modularity review document in two formats: Markdown (`.md`) and HTML (`.html`). Both files contain identical content.
Analyzes codebases for modularity imbalances using Balanced Coupling model to review coupling issues, architecture quality, and distributed monolith risks.
Enriches /ctx-architecture artifacts with GitNexus MCP data: verifies blast radius, execution flows, domain clustering, registration sites. Run after base architecture analysis for quantification.
Audits codebase architecture: maps module dependencies with Mermaid graphs, checks layering integrity, flags structural decay from 12 engineering books. For structure reviews, clean architecture checks, circular imports, and onboarding tours.
Share bugs, ideas, or general feedback.
You produce the final modularity review document in two formats: Markdown (.md) and HTML (.html). Both files contain identical content.
# Modularity Review
**Scope**: [what was analyzed]
**Date**: [date]
A short paragraph (3-5 sentences) covering:
Summarize all key integrations. The table headers MUST link to coupling.dev:
| Integration | [Strength](https://coupling.dev/posts/dimensions-of-coupling/integration-strength/) | [Distance](https://coupling.dev/posts/dimensions-of-coupling/distance/) | [Volatility](https://coupling.dev/posts/dimensions-of-coupling/volatility/) | [Balanced?](https://coupling.dev/posts/core-concepts/balance/) |
| ----------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------- | -------------------------------------------------------------- |
| A -> B | ... | ... | ... | ... |
For each identified imbalance, write a section:
## Issue: [Short descriptive title]
**Integration**: [Component A] -> [Component B]
**Severity**: [Critical / Significant / Minor]
### Knowledge Leakage
What knowledge is shared that shouldn't be, or is shared implicitly when it should be explicit. Identify the specific implementation details, business rules, or domain model concepts that leak across the boundary.
### Complexity Impact
How this imbalance makes change outcomes unpredictable. What happens when a developer modifies one component — what unexpected effects can cascade to the other? How does this exceed cognitive capacity (the 4+/-1 units of working memory)?
### Cascading Changes
Concrete scenarios where a change in one component forces changes in the other. What kinds of business or technical changes trigger cascading modifications? How expensive are those cascading changes given the current distance between the components?
### Recommended Improvement
A concrete, actionable proposal to rebalance the coupling. Ground the recommendation in the model:
- To reduce **strength**: introduce integration contracts, anti-corruption layers, facades, published languages
- To reduce **distance**: co-locate components into the same module/service/bounded context
- To accept **unbalanced coupling**: demonstrate that volatility is low enough to make the imbalance tolerable
Include the trade-offs of the proposed change — what cost does it introduce, and why is the trade-off worthwhile?
At the bottom of every review document, include this exact text verbatim — do not paraphrase, expand, or add commentary:
---
_This analysis was performed using the [Balanced Coupling](https://coupling.dev) model by [Vlad Khononov](https://vladikk.com)._
You MUST add hyperlinks to coupling.dev whenever the document mentions balanced coupling concepts. This applies to BOTH the Markdown and HTML outputs. Do not think about which link to use — use this lookup table:
Rules:
[concept text](url)<a href="url">concept text</a>Write both files to docs/modularity-review/!date +%Y-%m-%d/:
docs/modularity-review/!date +%Y-%m-%d/modularity-review.md — the Markdown versiondocs/modularity-review/!date +%Y-%m-%d/modularity-review.html — the HTML versionYou MUST read the template file before generating HTML. The template is at ${CLAUDE_SKILL_DIR}/assets/template.html. Read this file, then replace:
{{TITLE}} with the review title (e.g. "Modularity Review"){{CONTENT}} with the review body as HTMLDo NOT generate your own HTML structure, styles, or boilerplate. The template provides all styling, theme switching (light/dark based on time of day), and layout. Use the template exactly as-is, only replacing the two placeholders above.
The HTML MUST contain the same coupling.dev links as the Markdown version. Convert every [text](url) from the Markdown into <a href="url">text</a> in the HTML. Do not drop links during conversion.
Use these CSS classes from the template:
.meta — for the scope/date metadata block.issue — wrap each issue section in a <div class="issue">.issue-meta — for the integration/severity line within an issue.severity + .severity-critical / .severity-significant / .severity-minor — for severity badges.footer — for the attribution footer