with one click
code-review
Reviews diffs by severity to produce actionable feedback.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Reviews diffs by severity to produce actionable feedback.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Flags risky shell commands and unsafe tree ops.
Detects high-confidence security risks in code.
Surfaces the dojo's non-negotiable prime directives.
Activates the dojo framework at the start of a session.
Plans multi-step work before writing code.
Captures lessons and promotes recurring patterns.
| name | code-review |
| description | Reviews diffs by severity to produce actionable feedback. |
| tier | practical |
| category | workflow |
| created_by | human |
| platforms | ["windows","macos","linux"] |
| tags | ["review","quality","pr"] |
| author | Andreas Wasita (@andreaswasita) |
Reviews diffs and PRs the way a senior engineer would: intent first, structure second, line-by-line third. Produces feedback grouped by severity (🔴 must / 🟡 should / 🟢 nit) with concrete suggestions. Does NOT rewrite the author's code — it directs, it does not replace.
view, grep, and glob Copilot tools to read code.git available so diffs can be inspected (git diff main, git log).gh CLI authenticated to fetch PR metadata.1. Read the PR title, description, and linked issue.
2. List changed files (`git diff main --stat`) and assess scope.
3. Walk the diff with the `view` tool, file by file.
4. Apply the severity rubric below.
5. Emit a structured review block with concrete fixes.
| Phase | Tool | What to check |
|---|---|---|
| Intent | PR description, linked issue | Why does this change exist? |
| Scope | git diff main --stat | Files changed match stated intent |
| Correctness | view on hot paths | Logic, null/edge handling, off-by-one |
| Security | grep for secrets, raw SQL, eval | Injection, auth bypass, leaked secrets |
| Performance | view on loops, queries | N+1, unbounded allocations, missing indexes |
| Tests | view on test files | New paths actually covered |
Read the PR description, commit messages, and any linked issue. If intent is unclear, stop and ask the author — reviewing code whose purpose you don't understand wastes everyone's time.
Use git diff main --stat to size the change. Check:
Walk each changed file with view. Apply the rubric:
| Category | Look for |
|---|---|
| Correctness | Logic errors, off-by-one, null handling, missing edge cases |
| Security | Injection, auth bypass, secrets in code, weak input validation |
| Performance | N+1 queries, unbounded allocations, missing indexes |
| Readability | Naming, complexity, comments (too few or too many) |
| Testing | New paths actually covered, tests meaningful (not assert-true) |
| Error handling | Errors handled or silently swallowed |
## Review Summary
### 🔴 Must Fix (Blocking)
- `path/to/file.ts:42` — <issue> + **Suggestion:** <concrete fix>
### 🟡 Should Fix (Non-Blocking)
- `path/to/file.ts:88` — <issue> + **Suggestion:** <better approach>
### 🟢 Nit (Optional)
- `path/to/file.ts:120` — <style or preference point>
### ✅ What's Good
- <Highlight something done well — positive reinforcement matters.>
view at least once.