The review-pr skill finds old problems in late review rounds and does not use the earlier review
Maintainers usually reply within 1 day
@c-w-z is already working on this.
Since Nov 30, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 46/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- git, github, shell
- Domain
- developer-experience
Research direction
Read .agents/skills/review-pr/SKILL.md and the relevant CONTRIBUTING.md sections, especially Branches and PRs and Commits. Compare the existing steps with the four proposals, including how earlier review findings are fetched and compared against the PR; the issue names the GitHub API endpoints and Git commands to consider. Done means the skill covers scope first, per-commit checks, all instances of each finding, and earlier review status while preserving a fresh search for new problems.
Written by the indexing model from the issue text.
Description
Problem to solve
The review of #36 took six rounds. Many findings of the later rounds were in the PR from the first round. The review-pr skill has these gaps:
- The skill does not check the scope of the PR. Step 4 checks these sections of
CONTRIBUTING.md: Commits, Text for outside readers, Pull requests and Before you commit. It does not check Branches and PRs, which says that one PR holds one group of decisions. In #36, the sixth round found that the PR holds a rule change that its README text does not use, and proposed a separate PR for it (https://github.com/c-w-z/commit-decision-record/pull/36#discussion_r4734857614). The rule change was in the PR from the first round. A split can make other findings invalid, so a late scope finding wastes the work of the earlier rounds. - The skill does not check each commit. Step 1 reads
gh pr diff, which shows the complete change of the PR. In #36, findings about the commit structure came in rounds 3, 4 and 5:- A commit added README examples before the commit that allowed them (https://github.com/c-w-z/commit-decision-record/pull/36#discussion_r4732508068).
- The commit that expanded the README came before the rule change that it needed (https://github.com/c-w-z/commit-decision-record/pull/36#pullrequestreview-6106292097).
- One commit changed the layout of Quick start and also added new content (https://github.com/c-w-z/commit-decision-record/pull/36#discussion_r4734659436).
- A finding names one place only. The author fixes that place, and the same problem stays in other text or comes back in new text. In #36, the first round found that "Only the doc" reads as a limit of one doc for each decision (https://github.com/c-w-z/commit-decision-record/pull/36#discussion_r4732246627). The fifth round found the same problem in a different sentence (https://github.com/c-w-z/commit-decision-record/pull/36#discussion_r4734659433).
- A new round does not use the earlier review. Each round runs in a new AI assistant session, so the earlier findings do not affect the reviewer. But the skill does not read the earlier reviews either. So each round reviews the complete PR as new, and reports new Consider findings in text that did not change. A session that keeps the earlier review has the opposite risk: it checks the fixes and stops looking for new problems.
Proposal
Change .agents/skills/review-pr/SKILL.md:
- Scope first. In step 4, add Branches and PRs in
CONTRIBUTING.mdas the first item. - Each commit. In step 1, for a PR, also read each commit with
git log -p <base>..<head>. In step 4, check each commit alone against Commits inCONTRIBUTING.md:- The commit holds one decision.
- A move or a rename and a rewrite are in different commits.
- The commit obeys the rules that are in the branch at that commit.
- All instances in one finding. In step 5, for each finding, search the complete change for other instances of the same problem. List all instances in that one finding.
- A new section for a PR that has earlier reviews:
- Do steps 1 to 6 first. Do not read the earlier reviews before that. Then the earlier findings do not limit the search.
- Read the earlier reviews and replies:
gh api repos/{owner}/{repo}/pulls/<N>/reviews,gh api repos/{owner}/{repo}/pulls/<N>/commentsandgh api repos/{owner}/{repo}/issues/<N>/comments. Take thecommit_idof the latest review. - For each earlier finding, check that the fix is done and that the fix adds no new problem.
- Keep each new finding in
git diff <commit_id>..HEAD. For a new finding in text that did not change, keep it if it is in Act on, and mark it as missed by the earlier round. Move a Consider finding in text that did not change to Noted. - In the report, add the status of each earlier finding.
Cost of item 4.4: a Consider problem in text that did not change gets no fix in the PR. The review rounds then end.
Item 4.4 needs the commit_id of the earlier review in the PR branch. This is true only if the branch is not rewritten during the review, as #42 proposes. If the branch was rewritten, compare with git range-diff in place of git diff.
Version
c3185e8
More information
- The review rounds of #36: https://github.com/c-w-z/commit-decision-record/pull/36.
- #42 proposes fixup commits during the review, so that the commits of a PR branch keep their hashes until the merge.
- Dominant language
- Shell
- Stars
- 1
- Forks
- 0
- Avg merge
- 6h 59m
- Merged PRs (30d)
- 26
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from c-w-z/commit-decision-record
-
type/documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
c-w-z/commit-decision-record#90 · 1 comment ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
c-w-z/commit-decision-record#85 ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
c-w-z/commit-decision-record#84 ·
Maintainers usually reply within 1 day
-
type/feature
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
c-w-z/commit-decision-record#35 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
c-w-z/commit-decision-record#33 ·
Maintainers usually reply within 1 day
All issues in c-w-z/commit-decision-record
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
omacom/omarchy#21286 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ChurchCRM/docs.churchcrm.io#328 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
melodic-software/claude-code-plugins#20573 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
bmaltais/StartDrive#17 ·