From principled-quality
Generate a structured review summary for a pull request. Collects review state, builds a findings table linked to spec items, and produces a summary with coverage metrics and unresolved items.
How this skill is triggered — by the user, by Claude, or both
Slash command
/principled-quality:review-summaryThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a structured summary of a PR's review state. Collects checklist status, review comments, and findings into a report linked to specification items.
Generate a structured summary of a PR's review state. Collects checklist status, review comments, and findings into a report linked to specification items.
/review-summary <pr-number> [--local-only]
| Argument | Required | Description |
|---|---|---|
<pr-number> | Yes | The GitHub PR number to summarize. |
--local-only | No | Write to .review/ only; do not post a PR comment. |
gh CLI must be installed and authenticatedVerify prerequisites. Check that gh is available and authenticated:
bash scripts/check-gh-cli.sh
Collect review state. Gather all review data for the PR:
PR metadata: title, body, state, merged status
gh pr view <pr-number> --json number,title,body,state,reviews,comments,files
Checklist state: Locate the review checklist (PR comments, then .review/ fallback) and parse checked/unchecked items per section.
Review comments: Collect all review comments including inline file comments:
gh api repos/{owner}/{repo}/pulls/<pr-number>/comments
Review decisions: Extract review approvals, change requests, and comments:
gh pr view <pr-number> --json reviews --jq '.reviews[] | {author: .author.login, state: .state}'
Build findings table. For each review comment or finding, create an entry with these columns:
Compile coverage metrics. Calculate per-section and overall coverage:
Identify unresolved items. List any:
Generate the summary. Read the template from templates/review-summary.md and fill in all placeholder values. Add reviewer notes section with:
Post as PR comment. Unless --local-only is set, post the summary:
gh pr comment <pr-number> --body "<summary-content>"
Check for existing summary comments (marker: <!-- principled-review-summary: PR-<number> -->) and update rather than duplicate.
Save locally. Write the summary to .review/<pr-number>-summary.md:
mkdir -p .review
Report results. Summarize what was generated:
Review summary generated for PR #42:
Coverage: 10/14 items (71%)
Findings: 3 blocking, 2 important, 4 advisory
Unresolved: 2 items
Status: Changes requested
Posted as PR comment: yes
Saved to: .review/42-summary.md
scripts/check-gh-cli.sh --- Verify gh CLI availability and auth status (copy from principled-github canonical)templates/review-summary.md --- Summary template with coverage table, findings, unresolved items, and reviewer notesnpx claudepluginhub alexnodeland/principled --plugin principled-qualityUse this skill when posting the final summary comment after all inline comments are posted. Apply as the LAST step of code review after all findings are classified and inline comments are complete. Detects context (agent mode sticky comment, GitHub Actions MCP tool, or local file) and routes output accordingly.
Summarizes GitHub pull requests using diff, comments, changed files, and status. Delivers overview, key changes, potential risks, and review recommendations for PR reviews before merging.
Fetches, analyzes, and triages GitHub pull request review comments. Determines validity and proposes fixes, documenting results in a session report.