---
name: crash-fixer-b52e171236c5
description: "Autonomous crash analysis and bug fixing. Monitors crash reports from Cloudflare D1, deduplicates, analyzes with Codex 5.3 High, generates fixes, and creates PRs. Usage: /crash-fixer [--hours 24] [--limit 5] [--dry-run]"
user-invocable: true
metadata:
  { "openclaw": { "requires": { "env": ["GH_TOKEN", "CRASH_REPORTER_API_KEY", "CRASH_REPORTER_URL", "TARGET_REPO"] } } }
---

# crash-fixer

Full autonomous crash-fixing loop. Fetches crashes, deduplicates, analyzes with AI, generates fixes, and creates PRs.

## Trigger

```
/crash-fixer [--hours 24] [--limit 5] [--dry-run]
```

## How It Works

1. **Fetch** - Query crash reporter for new crashes
2. **Deduplicate** - Check fingerprint for identical crashes already fixed
3. **Analyze** - Use Codex 5.3 High (o3-high) to understand crash
4. **Fix** - Generate code fix
5. **PR** - Create branch → commit → PR
6. **Update** - Mark status in crash reporter

## Options

| Flag | Default | Description |
|------|---------|-------------|
| `--hours N` | 24 | Only fetch crashes from last N hours |
| `--limit N` | 3 | Max crashes to process per run |
| `--dry-run` | false | Analyze but don't create PRs |

## Required Environment

| Variable | Description |
|----------|-------------|
| `GH_TOKEN` | GitHub API token |
| `CRASH_REPORTER_API_KEY` | API key for crash reporter worker |
| `CRASH_REPORTER_URL` | URL of crash reporter worker |
| `TARGET_REPO` | GitHub repo to fix (owner/name) |

Note: Uses MiniMax M2.5 (available in OpenClaw) for AI analysis - no extra API key needed.

## Example

```
/crash-fixer --dry-run
```


---
Source attribution: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/crash-fixer/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 skill-library-mcp contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/crash-fixer/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering
Roles: Backend Developer, DevOps / SRE, QA / Test Engineer
Specialties: Backend
Tools: GitHub, Cloudflare D1
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: c7a8b7647802a65287695f02df796b5f35420abf3b54cc6f42b3025c13d941be
