history-analyzer
分析Git历史以识别热点、耦合和知识分布。当用户询问“谁了解这段代码”、“哪些文件变化最多”、“热点”、“bus factor”、“知识孤岛”或需要理解代码演变时使用。
📖 中文导读:分析Git历史以识别热点、耦合和知识分布。当用户询问“谁了解这段代码”、“哪些文件变化最多”、“热点”、“bus factor”、“知识孤岛”或需要理解代码演变时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: history-analyzer description: Analyze git history for hotspots, coupling, and knowledge distribution. Use when user asks "who knows this code", "what files change most", "hotspots", "bus factor", "knowledge silos", or needs to understand code evolution.
History Analyzer
When to Use
Trigger this skill when the user:
- Wants to find code hotspots (frequently changed files)
- Needs to identify who knows specific code areas
- Asks about bus factor or knowledge distribution
- Wants to find hidden coupling between files
- Asks "who should I ask about X"
Instructions
- Run
/sourceatlas:historyfor the entire repo, or/sourceatlas:history <path>for specific directory - Optionally specify time range:
/sourceatlas:history . 6for last 6 months - Returns hotspots, coupling analysis, and contributor distribution
Command Formats
- Full repo:
/sourceatlas:history - Specific directory:
/sourceatlas:history src/ - With time range:
/sourceatlas:history . 6(last 6 months)
What User Gets
- Hotspots: Files with most changes (complexity indicators)
- Temporal Coupling: Files that always change together (hidden dependencies)
- Recent Contributors: Who knows what areas
- Bus Factor Risk: Single-contributor files
- Priority actions for refactoring
Example Triggers
- "What are the hotspots in this codebase?"
- "Who knows the payment module best?"
- "What files always change together?"
- "Is there any bus factor risk?"
- "Show me knowledge distribution"