crash-fixer
由 ryce 提供
DevOps & Cloud简介
Autonomous crash analysis and bug fixing.
描述
该技能的功能
Fetches crash reports, deduplicates by fingerprint, analyzes each crash with AI, generates a code fix, and opens a pull request automatically. Supports dry-run mode to preview analysis without creating PRs. Configurable by time window and per-run crash limit.
Closes the full loop from crash detection to merged fix without manual triage, deduplication, or PR creation.
何时使用
- Automatically patching overnight production crashes before the team starts work
- Running dry-run analysis during an incident to understand root causes without committing
- Capping PR noise by processing only the 3 most recent crashes per scheduled run
- Checking the last 2 hours of crashes after a deploy to catch regressions quickly
- Letting a CI job handle crash triage so engineers focus on feature work
示例工作流
User asks: /crash-fixer --hours 12 --limit 3
- 1
Queries crash reporter API for crashes in the last 12 hours
- 2
Deduplicates results by fingerprint, skipping crashes already fixed
- 3
Analyzes each unique crash with AI to identify root cause
- 4
Generates a targeted code fix for each crash
- 5
Creates a branch, commits the fix, and opens a pull request on the target repo
Up to 3 pull requests opened on the target GitHub repo, each containing a fix for a deduplicated crash from the last 12 hours
前置要求
- GH_TOKEN environment variable (GitHub API token)
- CRASH_REPORTER_API_KEY environment variable
- CRASH_REPORTER_URL environment variable
- TARGET_REPO environment variable (GitHub repo in owner/name format)
安装
clawhub install ryce/crash-fixer运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。