# Cmd Fix Pr Chechers

> Fix failing GitHub Actions in current PR

- Skill: `gsmlg-dev/cmd-fix-pr-chechers` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gsmlg-dev/cmd-fix-pr-chechers`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gsmlg-dev/cmd-fix-pr-chechers/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: gsmlg-dev (https://skillmd.com/u/gsmlg-dev)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/gsmlg-dev/cmd-fix-pr-chechers

---


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:
1. Analyze error context and stack traces
2. Fix the underlying issue in the worktree
3. Commit with message referencing the failure
4. Push to remote branch
5. 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.
