From research-convensions
Systematically fixes PR review comments, failing CI checks, and coverage gaps on the current branch in priority order without unrelated changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/research-convensions:fix-prThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Workflow for cleaning up the current branch's open PR after review or CI feedback. The goal is a focused fix pass — no unrelated cleanups, no silent rewrites, regressions tightened where behavior changes.
Workflow for cleaning up the current branch's open PR after review or CI feedback. The goal is a focused fix pass — no unrelated cleanups, no silent rewrites, regressions tightened where behavior changes.
Confirm an open PR exists for the current branch and collect feedback surfaces:
git branch --show-current
gh pr view --json number,title,url,baseRefName,headRefName,headRefOid
gh pr view --comments
gh pr checks
Pull every inline review comment, PR conversation comment, linked-issue comment referenced by reviewers, CI failure log, and coverage-tool comment (Codecov, Coveralls, etc.). If the user points to another feedback source (Slack, email, design doc), include that too.
If there is no open PR for the current branch, stop and report.
Address feedback in this priority order:
Do not bundle unrelated cleanups into the same pass. If you spot something off-topic, note it for a follow-up PR.
Run the project's canonical local gate first:
# Examples — use whichever the repo provides:
make check # if a Makefile is present
cargo test # Rust
uv run pytest # Python
julia --project -e 'using Pkg; Pkg.test()' # Julia
npm test # Node
Read the repo's CLAUDE.md / README.md / Makefile for the exact command. If a feature flag is involved (e.g., a CUDA-only path), run only the variants the local environment supports — note skipped variants in the final report.
For each valid comment:
If a comment is technically wrong, do not silently apply it. Record the reasoning for declining, post a reply on the PR if appropriate, and do not rewrite unrelated code while addressing it.
Prefer targeted regression tests over broad smoke tests. For each uncovered line on the diff:
Before committing:
make check # or the project's canonical gate
Confirm all previously failing checks now pass locally. Commit with a message that states what class of feedback was addressed (e.g., Address review: fix off-by-one in foo and add regression). Push, then verify the PR's checks turn green.
If the user did not ask for a commit, leave the worktree changes in place and report what was changed and what still needs decision.
| Mistake | Fix |
|---|---|
| Bundling unrelated cleanups | Stop. Stash. Open a separate PR for the cleanup. |
| Silently applying a wrong review comment | Reply on the PR with the reasoning instead. |
| Skipping the local gate before committing | Always rerun make check (or the project equivalent) after the last edit. |
| Adding a smoke test instead of a regression | The test should fail without your fix and pass with it. |
| Force-pushing without checking the PR is still attached | After git push --force-with-lease, recheck gh pr view to confirm the PR points at the right SHA. |
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub codingthrust/templates --plugin research-convensions