Loading...
Loading...
Generate a single-file interactive HTML code-review artifact for a GitHub PR. Fetches the diff via the gh CLI, performs an honest severity-coded self-review, and renders an artifact with: collapsible per-file diffs with colored inline annotations, severity filter chips, per-finding checkboxes, and a "Create feedback prompt" modal that aggregates the checked items into a paste-ready follow-up prompt ending with "Please address this feedback. Address each individual item in its own conventional commit." Use this skill whenever the user wants to review a pull request visually, asks for an HTML or static review artifact, says "review PR", "review this PR", "build a PR review", wants color-coded findings, feedback aggregation, or a review file they can share — even if they don't explicitly say "HTML". Also trigger on "code review artifact", "interactive review", "feedback prompt for a PR", or when the user mentions reviewing a specific PR number.
npx skill4agent add ctrlshiftbryan/ctrlshiftbryan-skills pr-review-htmlgh pr reviewfindings.jsongh pr diff <N> > /tmp/pr-<N>.diff
gh pr view <N> --json title,headRefName,additions,deletions,filesgeneralreferences/findings-schema.md{
"pr_number": 54,
"title": "feat(scripts): pnpm onboard:dev + onboarding docs (#48 phase 1)",
"branch": "48-onboard-dev-phase-1",
"github_url": "https://github.com/<owner>/<repo>/pull/54",
"files_stat": "10 files, +750 / −1",
"verdict": "One-sentence summary of the overall take.",
"test_commands": "pnpm test && pnpm typecheck",
"files": [
{
"path": "scripts/onboard-dev.ts",
"key": "orchestrator",
"additions": 188,
"deletions": 0,
"is_new": true,
"open_by_default": true,
"diff": "@@ -0,0 +1,188 @@\n+import { ... }\n...",
"annotations": [
{
"line": 165,
"sev": "major",
"title": "Manifest is mutated on `main` BEFORE the branch is created",
"body": "If <code>openManifestPr</code> fails partway, the user is left with a dirty working tree on main.",
"suggest": "Reorder so the branch is created first..."
}
]
}
],
"general_annotations": [
{
"sev": "praise",
"title": "Tests cover the surface area",
"body": "85/85 passing; the safety-property tests are particularly nice."
}
]
}diffdiff --git@@+-@@<code><em>test_commandspython "<plugin-root>/skills/pr-review-html/scripts/build_review.py" \
--findings /tmp/pr-<N>-findings.json \
--output plans/<unix-ts>--<m-d-h:mmam/pm>--pr-<N>-review.htmldate +%s
date "+%-m-%-d-%-I:%M%p" | tr 'A-Z' 'a-z'<details>+-@@<textarea>