nWave/skills/nw-hotspot/SKILL.md
Git change frequency hotspot analysis — find the most-changed files in your codebase
npx skillsauth add nwave-ai/nwave nw-hotspotInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Wave: CROSS_WAVE Execution: Inline (no agent — Claude executes git commands directly) Inspiration: Adam Tornhill's "Your Code as a Crime Scene"
Analyze git change frequency to identify the most-changed files in a codebase. Pure git churn — no complexity metrics. Use as a pre-filter to scope analysis or a post-filter to prioritize existing findings.
Run git log --name-only over the configured time period, count commits per file, rank by frequency.
Show the most-changed files in the repo. Output is inline only — no files persisted.
/nw-hotspot
/nw-hotspot --top=20
/nw-hotspot --since=12m
Steps:
git log --since={since} --format=format: --name-only | sort | uniq -c | sort -rntest -f)git log -1 --format="%ar" -- {file} Rank │ Commits │ Last Changed │ File
──────┼─────────┼──────────────┼─────────────────────────
1 │ 87 │ 2 days ago │ src/services/payment.ts
2 │ 64 │ 1 week ago │ src/api/controllers/user.ts
3 │ 51 │ 3 days ago │ src/models/order.ts
Defaults: --top: 15, --since: 6 months
Overlay churn data on an existing analysis report to prioritize findings.
/nw-hotspot --rank code-smell-detector-report.md
Steps:
Deep-dive into a single file's change history.
/nw-hotspot --detail src/services/payment.ts
Steps:
/nw-hotspot --top=10 --json
Output: [{"path": "src/services/payment.ts", "commits": 87, "last_changed": "2 days ago"}, ...]
| Flag | Default | Description |
|------|---------|-------------|
| --top | 15 | Number of files to show |
| --since | 6m | Time period (e.g., 3m, 12m, 2024-01-01) |
| --json | false | Output as JSON array |
| --rank | - | Path to existing report to re-rank by churn |
| --detail | - | Path to single file for deep-dive |
--follow; keeps it simple and fast)Run /nw-hotspot --top=10 --json first, then pass the file list to:
Run /nw-hotspot --rank {report.md} after any analysis to prioritize by churn.
/nw-refactor — identify which files to refactor first/nw-review — focus review effort on high-churn areas/nw-root-why — check if the problematic area is a known hotspotUsage Context: Inline utility, composable with any analysis skill Handoff To: Invoking context (no sequential handoff)
/nw-hotspot
/nw-hotspot --top=10 --json
/nw-hotspot --rank code-refactoring-report.md
/nw-hotspot --detail src/services/payment.ts
No persistent files. Output is displayed inline. JSON mode outputs a JSON array for composition with other tools.
testing
Acceptance test creation methodology for the DISTILL wave. Domain knowledge for the acceptance designer agent: port-to-port principle, prior wave reading, wave-decision reconciliation, graceful degradation, and document back-propagation.
development
Cross-agent collaboration protocols, workflow handoff patterns, and commit message formats for TDD/Mikado/refactoring workflows
development
Creates a phased roadmap.json for a feature goal with acceptance criteria and TDD steps. Use when planning implementation steps before execution.
testing
Acceptance test creation methodology for the DISTILL wave. Domain knowledge for the acceptance designer agent: port-to-port principle, prior wave reading, wave-decision reconciliation, graceful degradation, and document back-propagation.