Requesting code review

From andreaswasita/copilot-agents-dojo · View interactive version

Requesting code review is an AI agent skill from the GitHub repository andreaswasita/copilot-agents-dojo. Self-reviews work against the plan before sign-off.

How to use this skill

Skill file

Requesting Code Review Skill

Self-reviews the agent's own output against the original plan before declaring done or opening a PR. Surfaces issues by severity; critical issues block progress. Does NOT replace human review — it ensures the human review starts from a defensible baseline.

When to Use

Prerequisites

How to Run

1. Compare implementation to the plan spec, criterion by criterion.
2. Walk the self-review checklist.
3. Tag each finding 🔴 / 🟡 / 🟢 / ✅.
4. Act on findings — 🔴 blocks, 🟡 fixed before PR, 🟢 logged.
5. Emit a short summary before claiming completion.

Quick Reference

| Severity | Meaning | Action |

|---|---|---|

| 🔴 Critical | Wrong behavior, security risk, broken test | STOP. Fix before next task. |

| 🟡 Major | Should fix before merge | Fix before PR; OK to continue current task |

| 🟢 Minor | Style, nit, future improvement | Log to tasks/todo.md follow-ups |

| ✅ Passing | Criterion met | Note in summary |

| Checklist item | Look at |

|---|---|

| Matches plan spec | tasks/todo.md |

| Tests pass (including new) | Latest test run output |

| No debug artifacts | grep for console.log, print, TODO |

| Edge cases covered | The new test file |

| No security regressions | Auth, input validation, secrets |

| Follows project conventions | Adjacent files |

| Diff scope = task scope | git diff main --stat |

Procedure

Step 1: Compare to Plan

Open tasks/todo.md with view. For the task just completed, read its acceptance criteria. Tick each one explicitly — do not summarize.

Step 2: Walk the Checklist

For each row in the Quick Reference checklist, mark ✅ or flag a finding. Use grep to hunt for debug artifacts:

grep -nE "console\.log|print\(|TODO|XXX|FIXME" <changed files>

(Use the grep Copilot tool, not bare shell grep.)

Step 3: Tag by Severity

Group findings under 🔴 / 🟡 / 🟢 / ✅:

## Self-Review

### 🔴 Critical
- `api/users.ts:42` — DELETE endpoint missing authorization check.

### 🟡 Major
- `api/users.ts:88` — Returns 500 instead of 404 for missing user.

### 🟢 Minor
- `api/users.ts:120` — Consider pagination on the list endpoint.

### ✅ Passing
- 4/4 endpoints match spec.
- 12 new tests, all green.
- Diff scope = task scope.

Step 4: Act on Findings

Step 5: Present the Summary

Always emit a short visible summary before "done":

**Review: Step 3 — Implement API endpoints**
- ✅ 4/4 endpoints per spec
- ✅ Input validation on all routes
- 🟡 Missing rate limit on POST /users (logged for Step 6)
- ✅ 12 new tests, all passing
Proceeding to Step 4.

Pitfalls

Verification

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.