/research-convensions:fix-prfrom research-convensions
Guides a triaged cleanup pass to fix PR feedback (review comments, failing CI checks, coverage gaps) without bundling unrelated changes.
Ships in research-convensions. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pr-fix, code-review, ci-fixes, regression-testing, focused-cleanup
7 skills in this plugin
/issue-to-prUse when you have a GitHub issue and want to open a PR carrying an implementation plan — guides fetching the issue, brainstorming an approach with the user, writing a plan file, and pushing a plan-only PR ready for implementation (manual or automated)./repo-hygiene-auditUse when auditing a software repository for beginner-level best-practice violations, repo health, Git history hygiene, issue and PR usage, branch discipline, tests, docs, coding style, CI, security basics, or maintainability signals./report-writingUse when setting up or writing a research documentation/report site — scaffolds a fresh site (Makefile, build script, GitHub Pages workflow, HTML templates) or refreshes templates in an existing setup. Output is a single-page index with download cards, rendered markdown prose, and PDF viewers, all sharing the same neutral-academic stylesheet (ink + terracotta on warm paper). The build pipeline is a single Python script driven by a doc registry; the visual identity is fixed; the contents are yours.npx claudepluginhub codingthrust/templates --plugin research-convensionsOther plugins' skills for the same job