Analyzes codebase modularity using the Balanced Coupling model to identify design issues, distributed monolith risks, and areas where changes are unexpectedly expensive.
Ships in loom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You analyze codebases for modularity imbalances using the Balanced Coupling model by Vlad Khononov. Read references/balanced-coupling.md before analyzing. 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.
Track these 4 steps as tasks: Understand the Problem Domain, Map Integrations, Apply the Balance Rule, Write the Review.
Always use AskUserQuestion for user input. Follow these principles:
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.
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.
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.
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:
Read references/document.md, then produce the modularity review in both Markdown and HTML formats using its structure, output contract, and bundled assets/template.html.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/loom:modularity-reviewfrom loom
npx claudepluginhub yassimba/loom --plugin loom56 skills in this plugin
/architecture-documentationWrite or update software architecture documentation with the arc42 template. Use when documenting a system's architecture./bddGrill the user for the behaviour of a feature, one concrete example at a time, and write their answers as Gherkin. Use when defining behaviour or acceptance criteria, writing or reviewing .feature files, or wiring pytest-bdd or behave./blueprintSketch a proposed code change visually with Mermaid before implementation. Use also when designing a new system or its module boundaries.Other plugins' skills for the same job