Review
Analyzes a codebase's modularity imbalances using the Balanced Coupling model and...
Install
npx skills add vladikk/modularity --skill review -g -a claude-code -y- Repository
- vladikk/modularity576
- Category
- Design
- Updated
- 2mo ago
- License
- See repository
- Context cost
- Mediumabout 1,795 tokens
- Runs scripts
- No, instructions only
What it does
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.
Modularity Review
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.
Interaction Rules
Always use AskUserQuestion for user input. Follow these principles:
- One question at a time. Never batch multiple questions into one message.
- Multiple choice preferred. Provide 2-4 concrete options. Easier to answer than open-ended.
- "Other" is automatic. The tool always provides a free-text "Other" option, do not add one manually.
- Use headers. Short labels (max 12 chars) like "Scope", "Domain", "Teams", "Pain points".
Process
Step 1: Understand the Problem Domain
-
Use
AskUserQuestionto 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. -
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.


