fix-pr
Skill34 starsChanged 7 months agoMITView on GitHub
Use when a PR has review comments to address, CI failures to fix, or codecov coverage gaps to resolve
6 other projects use a version of this.
Adopted by
Most recently taken up by
- lohi-ai/babysittheir own version, first seen Oct 5, 2026
- grove/promise-to-prooftheir own version, first seen Oct 4, 2026
- excatt/superclaude-plusplustheir own version, first seen Sep 7, 2026
- tbhb/vale-ai-tellstheir own version, first seen Aug 18, 2026
- Codagent-AI/agent-skillstheir own version, first seen Apr 25, 2026
- dekoza/oh-my-sloptheir own version, first seen Mar 19, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- tbhb/vale-ai-tells★ 115same name
- Codagent-AI/agent-skills★ 30same name
- excatt/superclaude-plusplus★ 14same name
- dekoza/oh-my-slop★ 4same name
- grove/promise-to-proof★ 4same name
- lohi-ai/babysit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- chat-bridgeSkill
- daemon-state-diagramSkill
- make-planSkill
- releaseSkill
- review-implementationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 9 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 71
Clippy: Run make clippy locally, fix warnings
- Very specific: line 72
Test: Run make test locally, fix failures
- Very specific: line 73
Build: Run make build locally, fix errors
- Distinctive: line 80
Read the comment and the code it references
- Distinctive: line 82
If valid: make the fix, commit
- Distinctive: line 83
If debatable: fix it anyway unless technically wrong
- Distinctive: line 84
If wrong: prepare a response explaining why
- Very specific: line 97
IMPORTANT: Do NOT run
cargo-llvm-covlocally: Use the gh api to read the codecov report instead. - Distinctive: line 119
Read the uncovered file and identify the untested code paths
- Distinctive: line 120
Write tests targeting those specific paths (error branches, edge cases, etc.)
- Very specific: line 121
Run make test to verify tests pass
- Distinctive: line 122
Commit the new tests
- Distinctive: line 126
After pushing, CI will re-run coverage.
- Distinctive: line 137
Commit with a descriptive message referencing the PR:
- Very specific: line 156
Run /review-implementation first to catch issues before push.
- Very specific: line 160
After creating a PR and running make copilot-review, use /fix-pr to address the resulting feedback.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fix PR
Resolve PR review comments, fix CI failures, and address codecov coverage gaps for the current branch's PR.
Step 1: Gather PR State
IMPORTANT: Never use gh api --jq. It double-escapes through the shell and breaks in zsh (backslashes in \(...) and != get mangled). Always pipe to jq instead.
# Get PR number
PR=$(gh pr view --json number --jq .number)
# Get PR head SHA (on remote)
HEAD_SHA=$(gh api repos/{owner}/{repo}/pulls/$PR | jq -r '.head.sha')1a. Fetch Review Comments
Three sources of feedback to check:
# Copilot and user inline review comments (on code lines)
gh api repos/{owner}/{repo}/pulls/$PR/comments \
| jq -r '.[] | "[\(.user.login)] \(.path):\(.line // .original_line) — \(.body)"'
# Review-level comments (top-level review body)
gh api repos/{owner}/{repo}/pulls/$PR/reviews \
| jq -r 'map(select(.body | length > 0)) | .[] | "[\(.user.login)] \(.state): \(.body)"'
# Issue-level comments (general discussion, exclude bots)
gh api repos/{owner}/{repo}/issues/$PR/comments \
| jq -r 'map(select(.user.login | test("codecov|copilot") | not)) | .[] | "[\(.user.login)] \(.body)"'1b. Check CI Status
# All check runs on the PR head
gh api repos/{owner}/{repo}/commits/$HEAD_SHA/check-runs \
| jq -r '.check_runs[] | "\(.name): \(.conclusion // .status)"'1c. Check Codecov Report
# Codecov bot comment with coverage diff
gh api repos/{owner}/{repo}/issues/$PR/comments \
| jq -r '.[] | select(.user.login == "codecov[bot]") | .body'Step 2: Triage and Prioritize
Categorize all findings:
| Priority | Type | Action |
| 1 | CI failures (test/clippy/build) | Fix immediately -- blocks merge |
| 2 | User review comments | Address each one -- respond on PR |
| 3 | Copilot review comments | Evaluate validity, fix if correct |
| 4 | Codecov coverage gaps | Add tests for uncovered lines |
Step 3: Fix CI Failures
For each failing check:
- Clippy: Run
make clippylocally, fix warnings - Test: Run
make testlocally, fix failures - Build: Run
make buildlocally, fix errors - Coverage: See Step 5 (codecov-specific flow)
Step 4: Address Review Comments
For each review comment:
- Read the comment and the code it references
- Evaluate if the suggestion is correct
- If valid: make the fix, commit
- If debatable: fix it anyway unless technically wrong
- If wrong: prepare a response explaining why
Do NOT respond on the PR -- just fix and commit. The user will push and respond.
Handling Copilot Suggestions
Copilot suggestions with suggestion blocks contain exact code. Evaluate each:
- Correct: Apply the suggestion
- Partially correct: Apply the spirit, adjust details
- Wrong: Skip, note why in commit message
Step 5: Fix Codecov Coverage Gaps
IMPORTANT: Do NOT run cargo-llvm-cov locally. Use the gh api to read the codecov report instead.
5a. Identify Uncovered Lines
From the codecov bot comment (fetched in Step 1c), extract:
- Files with missing coverage
- Patch coverage percentage
- Specific uncovered lines (linked in the report)
For detailed line-by-line coverage, use the Codecov API:
# Get file-level coverage for the PR
gh api repos/{owner}/{repo}/issues/$PR/comments \
| jq -r '.[] | select(.user.login == "codecov[bot]") | .body' \
| grep -oP 'filepath=\K[^&]+'Then read the source files and identify which new/changed lines lack test coverage.
5b. Add Tests for Uncovered Lines
- Read the uncovered file and identify the untested code paths
- Write tests targeting those specific paths (error branches, edge cases, etc.)
- Run
make testto verify tests pass - Commit the new tests
5c. Verify Coverage Improvement
After pushing, CI will re-run coverage. Check the updated codecov comment on the PR.
Step 6: Commit and Report
After all fixes:
# Verify everything passes locally
make check # fmt + clippy + testCommit with a descriptive message referencing the PR:
git commit -m "fix: address PR #$PR review comments
- [summary of fixes applied]
"Report to user:
- List of review comments addressed (with what was done)
- CI fixes applied
- Coverage gaps filled
- Any comments left unresolved (with reasoning)
Integration
With review-implementation
Run /review-implementation first to catch issues before push. Then /fix-pr after push to address CI and reviewer feedback.
With executing-plans / finishing-a-development-branch
After creating a PR and running make copilot-review, use /fix-pr to address the resulting feedback.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

