/engineering:pr-interactive-reviewfrom engineering
Generates a local interactive site from structured GitHub PR review data for triaging findings and comments without posting to GitHub.
Ships in engineering. 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; scripts run unread.
Use an existing review skill when one is available, and prefer its structured JSON output. This skill consumes structured findings and presents them locally; it does not select reviewer personas, assign severity, discover review scope, validate findings, or deduplicate findings.
https://github.com/<owner>/<repo>/pull/<number> URL.$XDG_STATE_HOME/allagents/pr-interactive-review/ (or ~/.local/state/allagents/pr-interactive-review/).127.0.0.1 by default. Non-loopback binding requires the explicit --expose option and emits a warning because findings and comments become network-visible.From the repository that owns the PR, use an existing review skill when one is available. Ask it for structured JSON and pass the PR target directly. If no review skill is installed, use the host's available code-review capability and produce the same structured review artifact without inventing findings.
The review artifact must contain status, verdict, intent, scope.head_sha, and the validated findings array. Require status: complete; stop on failed, degraded, or skipped. Save the artifact outside the repository as review.json and consume that JSON directly. Do not scrape, transform, or infer findings from a human markdown report.
After the review completes, actively enrich every finding without modifying review.json. For each stable #, inspect only its structured evidence and first_evidence plus the exact cited path at the reviewed commit. Write a separate JSON sidecar beside the review artifact (or in the external review workspace) as interactive-scenarios.json, keyed by the stable finding IDs:
{
"#1": {
"what_actually_happens": "When an operator saves a label containing markup, the page renders it and the browser executes it.",
"what_actually_happens_evidence": {
"triggering_setup": "tests/config-label.test.ts creates and saves a label containing markup.",
"observable_outcome": "src/config-label.test.ts asserts the rendered label is interpreted as markup."
},
"expected_suggested": "When that label is saved, the page displays the characters as text after encoding at the rendering boundary."
}
}
what_actually_happens must state a triggering setup/action and observable failure. It is rendered as a present defect only when what_actually_happens_evidence identifies both the concrete triggering setup/reachability and the observable outcome from a reviewed repository test or fixture, saved configuration/preset, production registry/declaration, reachable callsite, or explicit requirement. Without both, prepare removes the unsupported assertion and renders an evidence gap: treat it as an open question, not a defect. expected_suggested must state the expected resulting behavior and correction. Compatibility or future-risk observations must stay distinct from present defects and use an evidence-seeking open question until present reachability is proven. This sidecar is presentation context only: it must not change review scope, personas, validation, deduplication, or required response. prepare rejects malformed sidecars and IDs that are not review findings.
Specifications may be private when the user authorizes access. Use the appropriate host tool to read or extract an authorized local file, document, or URL. Derive only concise labeled primer fields from that material, then pass the derived text with --spec; never put the original source content in this public repository.
Who configures: Release managers
Operational problem: Manual approval queues delay configuration changes
Intended outcome: Operators can complete the change without a queue handoff
Why it matters: Delays postpone customer-visible changes
Success criteria: A configured change completes and records its result
Scope: Configuration flow and audit record
Non-goals: Redesigning permission roles
--requirements remains a direct file-read option only for a repository-relative path. The helper rejects paths outside the repository and .git; use host extraction plus --spec for any external specification reference.
Create interactive-presentation.json beside the scenario sidecar for every review. This is a constrained content model for the shared renderer, not a per-PR template: never generate custom HTML, CSS, or JavaScript. Ground every sentence in the structured review, supplied requirements, or reviewed repository evidence.
{
"eyebrow": "Runtime seam review",
"headline": "One queue connects two services.",
"summary": "The change establishes the first validated Dispatcher-to-Runner workflow handoff.",
"context_cards": [
{
"label": "System boundary",
"title": "Dispatcher to Runner",
"body": "The Dispatcher starts resolved work; the Runner validates and completes the workflow.",
"tone": "neutral"
},
{
"label": "Operational risk",
"title": "A false-ready worker hides the broken seam",
"body": "The smoke must prove polling, not merely observe a startup log.",
"tone": "problem"
}
],
"mental_model": {
"title": "The execution path",
"summary": "Each stage owns one boundary and hands a single contract forward.",
"steps": [
{
"label": "01 / Dispatch",
"title": "Start workflow",
"body": "Create a workflow on the configured Runner queue."
},
{
"label": "02 / Validate",
"title": "Reject malformed input",
"body": "Validate the shared payload before any execution work."
}
]
}
}
eyebrow, headline, and summary are required. Use at most six context cards and six mental-model steps. Card tone is neutral, problem, or outcome. Keep labels short, make the headline state the review's central conclusion, and use the mental model only when a real sequence or system boundary helps the reviewer decide. Omit mental_model rather than inventing decorative steps. The renderer supplies the navigation rail, verdict, metrics, cards, disclosures, finding layout, and responsive behavior; the sidecar supplies only grounded copy.
Resolve this skill directory, then prepare the site from the structured review.json.
SKILL_DIR="<directory containing this SKILL.md>"
bun "$SKILL_DIR/scripts/review-site.ts" prepare \
--review-json "<artifact_path>/review.json" \
--scenarios "<artifact_path>/interactive-scenarios.json" \
--presentation "<artifact_path>/interactive-presentation.json" \
--pr 123 \
--spec "Who configures: Release managers
Operational problem: Manual approval queues delay configuration changes
Intended outcome: Operators complete changes without a queue handoff
Why it matters: Delays postpone customer-visible changes
Success criteria: A configured change completes and records its result
Scope: Configuration flow and audit record
Non-goals: Redesigning permission roles"
For a repository-relative requirements reference, use:
bun "$SKILL_DIR/scripts/review-site.ts" prepare \
--review-json "<artifact_path>/review.json" \
--scenarios "<artifact_path>/interactive-scenarios.json" \
--presentation "<artifact_path>/interactive-presentation.json" \
--pr https://github.com/example-org/sample-service/pull/123 \
--requirements docs/requirements.md
prepare prints the per-repository, per-PR workspace path. It validates the review artifact, scenario and presentation sidecars, PR identifier, finding file paths, sizes, and requirements reference. It generates GitHub source links only when the runtime origin remote is GitHub. Links pin the reviewed commit and exact cited line range. Non-GitHub remotes receive no external link. Existing workspaces without presentation metadata still render through the same shell using the review title, intent, and primer fields as safe fallbacks.
For focused code context, prepare reads only the cited relative paths at the reviewed commit. Pass --base-commit <sha> only when the review already supplied a verified exact base SHA; the helper does not rediscover PR scope. When no base or reviewed object is locally readable, the site labels that gap instead of substituting current-worktree content.
bun "$SKILL_DIR/scripts/review-site.ts" serve --workspace "<printed workspace>"
Open the printed loopback URL. The shared page renders a sticky review map, current verdict, headline and metrics, business context, an optional mental model, status-grouped findings, search and filters, exact reviewed-commit links, paired actual/expected scenarios, required responses, and local comments. Supplied requirements, referenced evidence, lifecycle history, code excerpts, and per-finding discussion use collapsed disclosures so large reviews remain scannable.
LAN or public exposure is opt-in and must be deliberate:
bun "$SKILL_DIR/scripts/review-site.ts" serve \
--workspace "<printed workspace>" \
--host 0.0.0.0 \
--expose
The warning is part of the command contract. Do not expose a review site that contains material the intended network audience may not read.
Reviewers can save general comments or comments attached to a finding. The browser sends only validated, bounded JSON to the local server. Comments are atomically written to comments.json in the external workspace; comment bodies are not logged.
To respond as the assistant, first inspect only unanswered local comments:
curl -sS "http://127.0.0.1:<port>/api/comments?status=unanswered"
Re-ground every reviewer correction against the review artifact and reviewed code. Never defend an initial finding merely because it appears in the original artifact. Save the evidence-based reply locally, then revise the finding when the correction narrows, reclassifies, or disproves it:
curl -sS -X POST "http://127.0.0.1:<port>/api/comments/<comment-id>/replies" \
-H 'content-type: application/json' \
--data '{"role":"assistant","author":"Assistant","body":"Verified response with the required next action."}'
curl -sS -X POST "http://127.0.0.1:<port>/api/findings/%231/revisions" \
-H 'content-type: application/json' \
--data '{"commentId":"<comment-id>","status":"withdrawn","rationale":"Reviewed fixture and registry show this configuration path is not reachable.","scenario":{"actualHappens":null,"actualTriggerEvidence":null,"actualOutcomeEvidence":null}}'
The lifecycle states are active, question, and withdrawn. Every revision requires the attached reviewer comment ID and a rationale. The site preserves the immutable original claim, comments/replies, and append-only revision history, while current status, severity, scenario, active counts, and verdict are recalculated for presentation. Withdrawn findings remain auditable but do not block the verdict. Use question when evidence remains incomplete rather than asserting a current defect.
Refresh the site and unanswered queue until the queue is empty. Never treat this local operation as authority to post a GitHub comment; GitHub posting requires a separate explicit, user-confirmed feature.
What actually happens and Expected / suggested content (or an explicit evidence gap); severity/status filters and search work; a local comment, assistant reply, and lifecycle revision render; and a GitHub remote produces a reviewed-commit line link.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub allagentsdev/agent-plugins --plugin engineering3 skills in this plugin
/archifyCreate validated architecture, workflow, sequence, data-flow, lifecycle/state, ERD, class, tree, timeline, and waterfall diagrams as explorable standalone HTML with dark/light themes, motion and image/SVG/WebM export. Accept requirements or Mermaid; inspect repository evidence for code-backed diagrams. Use when visualizing systems, API calls, pipelines, schemas, histories, timings, or everyday steps, parts, relationships and states. Also turn an answer into a one-page explainer, with the conclusion first, structured panels, native diagrams and charts, when the user asks for a page, an explainer or an answer to share (做成一页, 用页面讲), or proactively when the user's rules opt in with an [archify explainer: ...] line. Not for dashboards./github-attentionCheck selected GitHub repositories for personal mentions, non-draft PRs awaiting your review, replies, assigned issues, and action on your own ready PRs. Draft mentions are response-only candidates. Use for personal GitHub attention, not repository-wide triage or performing reviews.Other plugins' skills for the same job