You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Generate structured code review reports in Markdown format suitable for import into GitHub PRs or Azure DevOps pull requests. Produces per-file inline remarks and a summary that renders natively in PR comment threads."
5
-
version: 1.0.0
6
-
output_format: Markdown
4
+
version: 2.0.0
5
+
output_format: Markdown + JSON
7
6
platforms: GitHub, Azure DevOps
8
7
---
9
8
10
9
# Code Review Report Skill
11
10
12
11
## Purpose
13
12
14
-
Generates a structured, portable code review report in Markdown that:
15
-
1. Renders correctly when pasted as a **GitHub PR comment** or **Azure DevOps PR comment**
16
-
2. Can be saved as a persistent artifact in `docs/code-reviews/`
17
-
3. Contains per-file remarks with line references that reviewers can act on
18
-
4. Provides a machine-parseable remarks table for downstream automation
13
+
Generates a structured, portable code review report consisting of **two artifacts**:
14
+
15
+
1.**Markdown report** — human-readable, renders correctly as a GitHub or Azure DevOps PR comment; can be pasted directly or posted via `gh pr comment`
16
+
2.**JSON payload** — machine-ready structured data for programmatic import via `gh api` (GitHub) or `curl` (Azure DevOps REST API)
17
+
18
+
Both artifacts are saved to `docs/code-reviews/` and referenced in the chat summary.
19
19
20
20
## When to Use
21
21
22
22
- After completing a code review with the `code-reviewer` agent
23
23
- When the review output must be shared in a pull request on GitHub or Azure DevOps
24
24
- When a persistent review artifact is needed for traceability
> Generate the JSON payload **only** when at least one remark has a resolvable file path. If all remarks are general (no file/line), produce only the Markdown report.
36
+
37
+
## Artifact 1 — Markdown Report Template
36
38
37
39
Use the following template **exactly** as the structure for the report file. Replace all `{placeholders}` with actual values. Omit sections that have no content (e.g., if no blockers, omit the blockers subsection) but always keep the top-level sections.
38
40
@@ -45,7 +47,7 @@ Use the following template **exactly** as the structure for the report file. Rep
45
47
|-------|-------|
46
48
|**Issue**| #{issueId} — {issueTitle} |
47
49
|**Date**| {date} |
48
-
| **Reviewer** | AI Code Reviewer (GitHub Copilot) |
50
+
|**Reviewer**| AI Code Reviewer - {Model}|
49
51
|**Build**| {✅ Pass \| ❌ Fail} |
50
52
|**Tests**| {✅ Pass \| ❌ Fail \| ⚠️ Partial} |
51
53
@@ -160,6 +162,115 @@ Use the following template **exactly** as the structure for the report file. Rep
160
162
161
163
---
162
164
165
+
## Artifact 2 — JSON Payload Template
166
+
167
+
The JSON payload serves a dual purpose: it is the body for the **GitHub PR Review API** and contains all data needed to reconstruct **Azure DevOps PR threads**. The agent fills this structure from the collected remarks.
> The agent outputs **placeholder-filled** commands (with actual values substituted) so the user only needs to set environment variables (`OWNER`, `REPO`, `PR_NUMBER`, `AZURE_DEVOPS_TOKEN`) and run.
271
+
272
+
---
273
+
163
274
## Formatting Rules
164
275
165
276
### General
@@ -195,34 +306,6 @@ The report is designed to render correctly when pasted as a GitHub PR comment:
195
306
- Same Markdown renders correctly in both platforms
196
307
- Avoid Mermaid diagrams in the report (not supported in Azure DevOps PR comments)
197
308
198
-
## Chat Summary Format
199
-
200
-
In addition to saving the report file, output a **condensed summary** in the chat conversation. This is what the agent displays inline:
0 commit comments