一键导入
review
Modularity review using Balanced Coupling model. Combines automated analysis with semantic code review to find implicit coupling and design issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Modularity review using Balanced Coupling model. Combines automated analysis with semantic code review to find implicit coupling and design issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Khononov's Balanced Coupling model reference. Auto-loaded when analyzing coupling patterns, reviewing architecture, or interpreting analysis results.
Run coupling analysis and interpret results. Use when analyzing Rust project coupling patterns and generating improvement proposals.
Quick health check for coupling balance score. Use for daily score verification and CI quality gates.
Start interactive web UI for coupling analysis visualization. Graph exploration with filters, hotspots, and export.
Run mutation testing with cargo-mutants to evaluate test quality. Identifies untested code paths.
Explain coupling issue types in detail with detection conditions, code examples, and solution approaches.
| name | review |
| description | Modularity review using Balanced Coupling model. Combines automated analysis with semantic code review to find implicit coupling and design issues. |
| argument-hint | ["path"] |
| allowed-tools | Read, Grep, Glob, Bash |
Structured review workflow inspired by Khononov's modularity analysis. Combines cargo-coupling's automated metrics with semantic code understanding.
cargo run -- coupling --ai $ARGUMENTS
Parse the output to understand current coupling state. AI output includes the full blind-spot manifest; treat "no issues" as "no observed issues", not as proof that no coupling risk exists.
Optional release/PR context:
# Time-series trend across git revisions
cargo run -- coupling --history $ARGUMENTS
# Diff current issues against the target branch
cargo run -- coupling --baseline main $ARGUMENTS
Read .coupling.toml for existing subdomain config.
If absent, examine the codebase and suggest classification:
The [subdomains] section informs essential-vs-accidental volatility. Core modules are expected to change; supporting/generic modules with high churn can indicate Accidental Volatility.
For each detected coupling, evaluate across 3 dimensions:
Look beyond explicit code dependencies for implicit coupling:
Automated issue signals to preserve in the review:
For each integration:
BALANCE = (STRENGTH XOR DISTANCE) OR NOT VOLATILITY
Flag issues by severity:
For each flagged issue, document:
# Modularity Review
**Date**: YYYY-MM-DD
**Scope**: [path]
**Health Grade**: [A-F]
## Subdomain Classification
| Module | Subdomain | Rationale |
|--------|-----------|-----------|
## Issues Found
### [Critical/Significant/Minor]: [Title]
**Modules**: source → target
**Strength**: [level] | **Distance**: [level] | **Volatility**: [level]
**Knowledge Leakage**: What internal knowledge is exposed
**Cascading Changes**: What breaks when this changes
**Recommendation**: Concrete fix with code example
## Good Design Decisions
[Patterns worth maintaining]
## Summary
[Key takeaways and prioritized action items]