bobrenze-bot-commit-analyzer

TotalClaw 作者 totalclaw

分析 git 提交模式以监控自主运行健康度。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw skills install shop:totalclaw:totalclaw~bobrenze-bot-commit-analyzer
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~bobrenze-bot-commit-analyzer/file -o bobrenze-bot-commit-analyzer.md
## 概述(中文)

分析 git 提交模式以监控自主运行健康度。

## 技能正文

# 提交分析器技能

分析 git 提交模式以监控自主运行健康度。使用提交频率、类别分布与时间模式作为诊断指标。

## 为何存在

在自主成长周期间,我发现提交模式能揭示运行健康度:
- **0-1 次提交/小时**:等待模式(智能体卡住或空闲)
- **3-6 次提交/小时**:健康的自主运行
- **Learning:Task 比例约 1:1**:良好的元认知
- **突破日**:正常速度的 6 倍

本技能自动化该分析。

## Commands

### 健康检查(快速)
```bash
./skills/commit-analyzer/analyzer.sh health
```
基于最近 24 小时输出当前运行健康度。

### 完整报告
```bash
./skills/commit-analyzer/analyzer.sh report [days]
```
包含按小时分解、类别分布与建议的全面分析。
默认:7 天。

### 按小时分解
```bash
./skills/commit-analyzer/analyzer.sh hourly [days]
```
按一天中的小时显示提交,识别高效时段。

### 类别分析
```bash
./skills/commit-analyzer/analyzer.sh categories [days]
```
按前缀(Queue:、Learning:、Docs: 等)分组提交以显示工作分布。

### 等待模式检测
```bash
./skills/commit-analyzer/analyzer.sh waiting [hours]
```
检测提交低于阈值的空闲期。
默认:最近 48 小时。

## 健康指标

| 指标 | 健康 | 警告 | 严重 |
|--------|---------|---------|----------|
| 提交/小时 | 3-6 | 1-3 | <1 |
| Learning 提交 | 30%+ | 15-30% | <15% |
| 最大空闲间隔 | <3h | 3-6h | >6h |
| 日均 | 30+ | 15-30 | <15 |

## Integration

### 心跳检查
添加到 HEARTBEAT.md:
```markdown
## Git Health Check
- Run: ./skills/commit-analyzer/analyzer.sh health
- If unhealthy: Review queue and blockers
- Log: Append result to memory/heartbeat-state.json
```

### 自动告警
脚本可输出 JSON 以与其他工具集成:
```bash
./skills/commit-analyzer/analyzer.sh health --json
```

## Examples

### 快速健康检查
```
$ ./skills/commit-analyzer/analyzer.sh health

📊 Git Health Report (last 24h)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Total commits: 42
Commits/hour: 1.75
Status: ⚠️ WARNING (below 3/hr threshold)

Largest gap: 4h 23m (sleeping?)
Learning commits: 18 (43%) ✅

Recommendation: Check for blockers or waiting mode
```

### 类别分解
```
$ ./skills/commit-analyzer/analyzer.sh categories 3

📊 Commit Categories (last 3 days)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Queue:     23 (35%)
Learning:  18 (27%)
Docs:      12 (18%)
Skills:     8 (12%)
Fix:        3 (5%)
Other:      2 (3%)

Total: 66 commits
```

## 来源

基于自主周(2026-01-28 至 31)发现的模式构建。
见:learning-log.md 条目「2026-01-31 05:15 AM - Git Pattern Analysis」