| name | check-balance |
| description | Quick health check for coupling balance score. Use for daily score verification and CI quality gates. |
| argument-hint | ["path"] |
Check Balance - Quick Health Check
Execution Steps
- Run
cargo run -- coupling --summary $ARGUMENTS (default: ./src)
- Check balance score and health grade
- Provide brief advice if issues detected
Commands
cargo run -- coupling --summary ./src
cargo run -- coupling --summary --japanese ./src
cargo run -- coupling --check --min-grade=C ./src
cargo run -- coupling --check --baseline main --fail-on=high ./src
cargo run -- coupling --history ./src
Health Grades
| Score | Grade | Status | Action |
|---|
| 0.90-1.00 | A | Excellent | Maintain |
| 0.80-0.89 | B | Good | Minor improvements |
| 0.60-0.79 | C | Acceptable | Planned improvement |
| 0.40-0.59 | D | Needs improvement | Act soon |
| 0.00-0.39 | F | Critical | Immediate action |
Issue Severity
| Severity | Action |
|---|
| Critical | Fix immediately |
| High | Fix within 1 week |
| Medium | Plan to fix |
| Low | Monitor |
Ratchet Mode
cargo run -- coupling --check --baseline <ref> ./src compares current issues against the baseline ref and fails only on new issues at --fail-on severity or higher. The default ratchet threshold is High/Critical.
Next Steps
- Low score: Run
/analyze for details
- Critical issues: Run
/full-review for comprehensive analysis