From accelerator
Defines JSON schema and format for PR review agents outputting lens-based summaries, strengths, line-anchored comments with severity/confidence, and general findings.
npx claudepluginhub atomicinnovation/accelerator --plugin acceleratorThis skill uses the workspace's default tool permissions.
Return your analysis as a JSON code block. Do not include any text before or
Reviews pull requests through multiple quality lenses like architecture and security, compiling analysis with inline comments. Use for thorough PR reviews via number, URL, or current branch.
Generates terse, actionable code review comments in 'L<line>: <problem>. <fix>.' format. Cuts noise from PR feedback, preserves signal. Auto-triggers on pull requests.
Posts structured PR review comments to GitHub via API using GitHub CLI, with inline comments on lines, code suggestions, multi-line ranges, and priority labels like critical or nit. Ideal after code analysis.
Share bugs, ideas, or general feedback.
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."
}
]
}
"architecture", "security",
"test-coverage", "code-quality", "standards", "usability",
"performance", "documentation", "database", "correctness",
"compatibility", "portability", "safety")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).null for
single-line. Must be in the same diff hunk as line."RIGHT" for commenting on added, modified, or context lines in
the new file (the vast majority of comments). "LEFT" only for commenting
on deleted lines."critical", "major", "minor", "suggestion""high", "medium", "low"lens field).
Included on each comment so the orchestrator can attribute findings after
merging outputs from multiple agents.commentsThe 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).
Use these actual Unicode emoji characters at the start of each comment body:
๐ด for "critical" severity๐ก for "major" severity๐ต for "minor" and "suggestion" severityIMPORTANT: 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.
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.
comments must reference a line number that is visible in
the diff (within a hunk). Lines outside diff hunks will cause API errors."RIGHT"."LEFT".line)
and end line (end_line) within the same diff hunk.general_findings rather than risking an invalid line
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.