create-fix-pr
Installation
SKILL.md
Create a fix PR
Overview
You are investigating a problem and filing a pull request that resolves it. This builds on the investigate skill — do the investigation properly first, don't jump to a fix without evidence.
Use the gh CLI for all GitHub operations (auth comes from your gh login) and standard Bash / Edit / Read / Grep for everything else.
Workflow
- Investigate. Use the
investigateskill to find the root cause. Cite the exact trace ID, log line, error group, and code location that pins the problem. - Confirm there isn't already a PR open. Before filing anything, search GitHub for an existing open PR addressing the same issue —
gh pr list --search "<keywords>" --state open. If one exists, direct the user to it — do not create a duplicate. - Judge whether a PR is the right tool. If the fix requires a config change, a flag flip, or a change outside the code you can access, describe the solution instead of filing a PR.
- Get the repo. Clone it if you don't already have it locally —
gh repo clone <owner>/<repo>. - Check for repo conventions. Read
agents.mdorCLAUDE.mdat the repo root — these describe repo-specific rules your fix needs to respect. - Make the change. Minimal diff. Don't refactor surrounding code, don't add features, don't fix unrelated bugs you happen to notice. One PR, one fix.
- Set git identity before committing — see
pr-conventions.md. - Commit, push, and file the PR. See
pr-conventions.mdfor branch naming and PR body rules.