balanced-coupling
The Balanced Coupling model for software design. Use when: designing modular architectures, evaluating coupling between…
Produces modularity review documents in both Markdown and HTML formats. Use when writing the final review output from a modularity analysis.
Claude Code
$ npx -y skills add vladikk/modularity --skill document --agent claude-code
Codex
$ npx skills add vladikk/modularity --skill document -a codex -y
Cursor
$ npx skills add vladikk/modularity --skill document -a cursor -y
Gemini CLI
$ npx skills add vladikk/modularity --skill document -a gemini-cli -y
GitHub Copilot
$ npx skills add vladikk/modularity --skill document -a github-copilot -y
OpenCode
$ npx skills add vladikk/modularity --skill document -a opencode -y
Windsurf
$ npx skills add vladikk/modularity --skill document -a windsurf -y
name: document description: > Produces modularity review documents in both Markdown and HTML formats. Use when writing the final review output from a modularity analysis. user-invocable: false allowed-tools: Read, Write
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:
| Concept mentioned | Link to | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | | Balanced coupling, the balance rule, the balance formula, `STRENGTH XOR DISTANCE`, modularity vs complexity | https://coupling.dev/posts/core-concepts/balance/ | | Integration strength, shared knowledge, levels of coupling strength | https://coupling.dev/posts/dimensions-of-coupling/integration-strength/ | | Intrusive coupling, private interfaces, implementation detail leakage | https://coupling.dev/posts/dimensions-of-coupling/integration-strength/ | | Functional coupling, duplicated business logic, shared functional requirements | https://coupling.dev/posts/dimensions-of-coupling/integration-strength/ | | Model coupling, shared domain model, shared business model | https://coupling.dev/posts/dimensions-of-coupling/integration-strength/ | | Contract coupling, integration contracts, facades, DTOs, published language | https://coupling.dev/posts/dimensions-of-coupling/integration-strength/ | | Distance, cost of change, physical/logical separation
TL;DR: A Claude Code plugin for designing and analyzing modular software systems using the Balanced Coupling model. There's no shortage of AI tools that provide code-level feedback: best practices, edge cases, potential bugs.
The Balanced Coupling model for software design. Use when: designing modular architectures, evaluating coupling between…
Designs modular high-level architectures from functional requirements and produces design documents for each module. Use when…
Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with optional…
Use to design, redesign, critique, audit, polish or animate a frontend: websites, landing pages, dashboards, app UI, components,…
Hyperframes-based video template for retro pixel deck motion design. Use when users want a high-fidelity, multi-scene…
Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline,…