用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nWave-ai/nWave --skill nw-hotspot命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Cross-agent collaboration protocols, workflow handoff patterns, and commit message formats for TDD/Mikado/refactoring workflows
Orchestrates the full DELIVER wave end-to-end (roadmap > execute-all > finalize). Use when all prior waves are complete and the feature is ready for implementation.
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.
基于 SOC 职业分类
正在显示 SKILL.md
| name | nw-hotspot |
| description | Git change frequency hotspot analysis — find the most-changed files in your codebase |
| user-invocable | true |
| argument-hint | [--top=N] [--since=6m] [--json] [--rank report.md] [--detail file] |
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.