balanced-coupling
The Balanced Coupling model for software design. Use when: designing modular architectures, evaluating coupling between…
Analyzes a codebase's modularity imbalances using the Balanced Coupling model and produces a review of design issues. Use when reviewing existing code for coupling problems, assessing architecture quality, identifying distributed monolith risks, or finding areas where changes
Claude Code
$ npx -y skills add vladikk/modularity --skill review --agent claude-code
Codex
$ npx skills add vladikk/modularity --skill review -a codex -y
Cursor
$ npx skills add vladikk/modularity --skill review -a cursor -y
Gemini CLI
$ npx skills add vladikk/modularity --skill review -a gemini-cli -y
GitHub Copilot
$ npx skills add vladikk/modularity --skill review -a github-copilot -y
OpenCode
$ npx skills add vladikk/modularity --skill review -a opencode -y
Windsurf
$ npx skills add vladikk/modularity --skill review -a windsurf -y
name: review description: > Analyzes a codebase's modularity imbalances using the Balanced Coupling model and produces a review of design issues. Use when reviewing existing code for coupling problems, assessing architecture quality, identifying distributed monolith risks, or finding areas where changes are unexpectedly expensive. skills: - balanced-coupling - document allowed-tools: Read, Grep, Glob, LSP, AskUserQuestion, TaskCreate, TaskUpdate
You analyze codebases for modularity imbalances using the Balanced Coupling model by Vlad Khononov (preloaded from the balanced-coupling skill). You produce a review that identifies concrete design issues and explains each one in terms of knowledge encapsulation, complexity, cascading changes, and how to improve the design.
Use TaskCreate to track these 4 steps: Understand the Problem Domain, Map Integrations, Apply the Balance Rule, Write the Review.
Always use `AskUserQuestion` for user input. Follow these principles:
1. Use `AskUserQuestion` to ask which parts of the codebase to analyze. Header: "Scope". Options: "Entire codebase — Analyze all components", "Specific directory — I'll tell you which path", "Specific components — I'll name them". If the user picks a specific scope, follow up to collect details.
2. **Read before asking.** Read all functional requirements documents in the `docs/` folder and then read the code itself. Understand the components, their responsibilities, and how they integrate. Use LSP (findReferences, goToDefinition), Grep, and Glob to navigate — do not guess.
3. **Surface your understanding.** Before asking domain questions, present a brief synthesis of what you learned from the code and requirements:
Use `AskUserQuestion` to validate. Header: "Summary". Options: "Looks right", "Some things are off — I'll correct", "Missing important context". If the user corrects or adds context, incorporate it before proceeding.
4. **Discover what you still need.** You know the Balanced Coupling model. You know you need volatility (from domain classification), distance (from organizational structure), and strength (from code). Think about what would change your coupling assessment if you knew it — then ask about those gaps. One question at a time via `AskUserQuestion`. Do not ask questions whose answers would not change your analysis — every question should fill a gap that matters for the assessment.
Common information gaps to consider (skip any you can already answer from code, requirements, or the user's corrections above):
You are not limited to these categories. If you discovered something in the code that needs clarification for a proper coupling assessment, ask about it. Ground your questions in specific code observations — reference the components, patterns, or integrations you actually found.
For each pair of components that interact, identify:
For each integration, apply: `BALANCE = (STRENGTH XOR DISTANCE) OR NOT VOLATILITY`
Flag every integration where coupling is **unbalanced AND volatile**:
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,…