Loading...
Loading...
Compare original and translation side by side
/errors # Batch analysis of historical error patterns
/debug # CC 2.1.30 real-time debug for current session/errors # 批量分析历史错误模式
/debug # 当前会话的CC 2.1.30实时调试| Command | Purpose | Scope |
|---|---|---|
| Batch analysis of error patterns (last 24h/7d) | Historical patterns |
| Real-time debug of current session state | Current session |
| Full RCA workflow for specific bug | Single issue |
| 命令 | 用途 | 范围 |
|---|---|---|
| 批量分析错误模式(最近24小时/7天) | 历史模式 |
| 当前会话状态的实时调试 | 当前会话 |
| 特定bug的完整RCA(根本原因分析)流程 | 单个问题 |
undefinedundefinedundefinedundefined.claude/logs/errors.jsonl.claude/logs/errors.jsonlcat .claude/rules/error_rules.json | jq '.rules[] | {id, signature, count: .occurrence_count}'cat .claude/rules/error_rules.json | jq '.rules[] | {id, signature, count: .occurrence_count}'| File | Purpose |
|---|---|
| Captures errors to JSONL |
| Warns before risky commands |
| Batch pattern analysis |
| Learned error patterns |
| Raw error log |
| 文件 | 用途 |
|---|---|
| 将错误捕获至JSONL文件 |
| 在执行高风险命令前发出警告 |
| 批量模式分析 |
| 已学习的错误模式 |
| 原始错误日志 |
pattern: role "X" does not exist
fix: Use Docker connection: docker exec -it orchestkit-postgres-dev psql -U orchestkit_user -d orchestkit_dev
pattern: relation "X" does not exist
fix: Check MCP postgres server connection string - may be connected to wrong database模式:role "X" does not exist
修复方案:使用Docker连接:docker exec -it orchestkit-postgres-dev psql -U orchestkit_user -d orchestkit_dev
模式:relation "X" does not exist
修复方案:检查MCP PostgreSQL服务器连接字符串 - 可能连接到了错误的数据库analyze_errors.py.claude/rules/error_rules.json{
"id": "custom-001",
"pattern": "your regex pattern",
"signature": "human readable signature",
"tool": "Bash",
"occurrence_count": 1,
"fix_suggestion": "How to fix this"
}analyze_errors.py.claude/rules/error_rules.json{
"id": "custom-001",
"pattern": "your regex pattern",
"signature": "human readable signature",
"tool": "Bash",
"occurrence_count": 1,
"fix_suggestion": "How to fix this"
}