| name | analyze |
| description | Run coupling analysis and interpret results. Use when analyzing Rust project coupling patterns and generating improvement proposals. |
Analyze - Coupling Analysis
Execution Steps
- Run
cargo run -- coupling $ARGUMENTS (default: ./src)
- Interpret results as Balance Advisor
- Present concrete improvement proposals
Commands
cargo run -- coupling ./src
cargo run -- coupling --summary ./src
cargo run -- coupling --summary --japanese ./src
cargo run -- coupling --ai ./src
cargo run -- coupling --all ./src
cargo run -- coupling --blind-spots ./src
cargo run -- coupling --json ./src
cargo run -- coupling --history ./src
cargo run -- coupling --history=8 --git-months=12 --json ./src
cargo run -- coupling --baseline main ./src
cargo run -- coupling --hotspots ./src
cargo run -- coupling --impact <module> ./src
cargo run -- coupling --check --min-grade=B ./src
cargo run -- coupling --check --baseline main --fail-on=high ./src
Options
| Option | Description |
|---|
--summary, -s | Summary only |
--ai | AI-friendly output |
--json | JSON format |
--all | Show all issues including Low |
--blind-spots | Show full structural blind-spot manifest in text output |
--history[=N] | Analyze coupling health over git history |
--baseline REF | Compare current issues with a baseline git ref |
--fail-on SEVERITY | Severity threshold for --check and baseline ratchet |
--no-git | Skip Git history analysis |
--max-deps N | Dependency count threshold |
--max-dependents N | Dependent count threshold |
--verbose | Detailed output |
Interpretation
See .claude/docs/khononov-framework.md for grade meanings.
See .claude/docs/issue-types.md for issue severity.
Output template: output-template.md