cmd-fix-pr-chechers
Installation
SKILL.md
Determine the current PR number and failing action name. Create a git worktree at .trees/pr-<number>-<action> for the PR branch (e.g. .trees/pr-42-build).
Inspect failing GitHub Actions logs using gh run list and gh run view --log-failed.
For each failure:
- Analyze error context and stack traces
- Fix the underlying issue in the worktree
- Commit with message referencing the failure
- Push to remote branch
- Poll status with
gh run watch(timeout 5 minutes)
If actions still fail, retrieve new logs and repeat (max 5 iterations total).
After 5 failed attempts, summarize remaining issues and exit.
Clean up the worktree on exit.
Run autonomously without approval checkpoints.