Pr review output format

From atomicinnovation/accelerator · View interactive version

Pr review output format is an AI agent skill from the GitHub repository atomicinnovation/accelerator. Output format specification for PR review agents. Defines the JSON schema, field reference, severity emoji prefixes, and comment body format for PR reviews.

How to use this skill

Skill file

PR Review Output Format

JSON Schema

Return your analysis as a JSON code block. Do not include any text before or

after the JSON block — the orchestrator will parse this output directly.

{
  "lens": "<lens-identifier>",
  "summary": "2-3 sentence assessment from this lens perspective.",
  "strengths": [
    "Positive observation about what the PR gets right from this lens perspective"
  ],
  "comments": [
    {
      "path": "src/example.ts",
      "line": 42,
      "end_line": null,
      "side": "RIGHT",
      "severity": "critical",
      "confidence": "high",
      "lens": "<lens-identifier>",
      "title": "Brief finding title",
      "body": "🔴 **<Lens Name>**\n\n[Issue description — 1-2 sentences with enough context to understand standalone].\n\n**Impact**: [Why this matters — 1 sentence].\n\n**Suggestion**: [Concrete fix — 1-2 sentences, optionally with a code snippet]."
    }
  ],
  "general_findings": [
    {
      "severity": "minor",
      "lens": "<lens-identifier>",
      "title": "Cross-cutting finding title",
      "body": "Description of the finding that cannot be anchored to a specific diff line."
    }
  ]
}

Field Reference

"test-coverage", "code-quality", "standards", "usability",

"performance", "documentation", "database", "correctness",

"compatibility", "portability", "safety")

posted as inline comments)

header, e.g., src/auth/handler.ts)

"RIGHT" side, this is the line number in the new version of the file. For

"LEFT" side, this is the line number in the old version. The line MUST be

visible in the diff (within a hunk).

single-line. Must be in the same diff hunk as line.

the new file (the vast majority of comments). "LEFT" only for commenting

on deleted lines.

Included on each comment so the orchestrator can attribute findings after

merging outputs from multiple agents.

comment. See "Comment Body Format" below.

(cross-cutting concerns, missing functionality, architectural observations)

Multi-Line Comment API Mapping

The agent schema uses line (start of range) and end_line (end of range).

The GitHub API inverts this: start_line is the beginning and line is the

end. The orchestrator handles this mapping when constructing the API payload.

Example — agent output:

{ "line": 10, "end_line": 15, "side": "RIGHT" }

Becomes API payload:

{ "start_line": 10, "start_side": "RIGHT", "line": 15, "side": "RIGHT" }

For single-line comments (end_line is null), the API payload uses only

line and side — start_line and start_side are omitted entirely (not

set to null).

Severity Emoji Prefixes

Use these actual Unicode emoji characters at the start of each comment body:

IMPORTANT: Use the actual Unicode emoji characters shown above (🔴 🟡 🔵), NOT

text shortcodes like :red_circle:, :yellow_circle:, or :blue_circle:. The

output is rendered as markdown, not Slack/Discord, so shortcodes will appear as

literal text.

Comment Body Format

Each comment body should follow this structure:

[emoji] **[Lens Name]**

[Issue description — 1-2 sentences, standalone context].

**Impact**: [Why this matters].

**Suggestion**: [Concrete fix, optionally with a short code snippet].

Example:

🔴 **Architecture**

This module directly imports from the data layer, bypassing the service
boundary. This couples the API handler to the database schema.

**Impact**: Changes to the database schema will ripple into the API layer.

**Suggestion**: Introduce a service interface to mediate between the API and
data layers.

Diff Anchoring Guidelines

the diff (within a hunk). Lines outside diff hunks will cause API errors.

file version and set side to "RIGHT".

and set side to "LEFT".

and end line (end_line) within the same diff hunk.

as general findings.

reference.

Output only the JSON block — do not include additional prose, narrative

analysis, or markdown outside the JSON code fence. The orchestrator parses

your output as JSON.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.