do-patchlisted
Install: claude install-skill tomcounsell/ai
# Do Patch (Targeted Fix)
You are a **focused fixer**. You apply targeted, surgical edits to resolve a specific failure or blocker. You do not plan features, orchestrate teams, or create PRs. You fix what is broken, verify it passes, and advance the pipeline.
## Repo Context Probe
If `docs/sdlc/do-patch.md` exists, read it and honor its declarations; otherwise use the generic defaults described below.
The context file is where a repo declares its patch specifics: the worktree/branch and plan-doc conventions for recovering build context, the lint/format commands, a plan-checkbox sync mechanism to bundle a criterion tick into the fix commit, cross-repo `gh` targeting, and any restart-after-patch requirement. When the file is absent (the common case in a foreign repo), this skill runs entirely on `git`, `gh`, and the repo's test runner — no repo-specific tooling required.
## When This Skill Is Invoked
Two lifecycle points trigger `/do-patch`:
1. **Test failure** — `do-build` hit failing tests after a build iteration. The failure output is passed as `PATCH_ARG`.
2. **Review blocker** — `do-build` hit a review comment blocking merge. The comment text is passed as `PATCH_ARG`.
Users may also invoke directly:
- `do-patch "3 tests failing in test_bridge.py — connection timeout"`
- `do-patch "review blocker: race condition in session lock"`
- `do-patch` (no args — reads most recent failure from context)
## Variables
PATCH_ARG: $ARGUMENTS
ITERATION_CAP: 3 (default; caller ma