Skill: History
Git 历史管理技能 - 重写、优化和分析历史。
核心功能
- •📊 历史分析 - 提交质量评分和问题检测
- •✏️ 历史重写 - 安全的 interactive rebase
- •🔍 智能搜索 - 多维度提交搜索
- •📸 历史快照 - 创建和恢复历史状态
- •⚠️ 异常检测 - 识别历史问题模式
快速使用
bash
# 分析历史质量 /history analyze --depth 100 # Interactive rebase /history rebase HEAD~10 # 搜索提交 /history search --author "john" # 创建快照 /history snapshot pre-release
配置
json
{
"history": {
"autoAnalysis": true,
"rebaseSafety": true,
"snapshotRetention": 30
}
}