| name | review-code |
| description | This skill should be used when the user says "/review-code", "review the code", "review before push", "code review in red pen", or wants a human to review code changes in the Red Pen desktop app before pushing to remote. |
| allowed-tools | Bash, Read, Glob |
Review Code with Red Pen
Open all changed code files in the Red Pen desktop app for human review, typically before pushing to remote.
Workflow
-
Identify changed files:
git diff --name-only HEAD
Also include staged changes:
git diff --name-only --staged
Combine and deduplicate the lists. If no changed files, inform the user and stop.
-
Open all changed files in Red Pen and wait for review:
redpen open <file1> <file2> ... --wait --timeout 600
-
Parse and act on the verdict:
Output Format
redpen wait outputs JSON with verdict and per-file annotations:
{
"verdict": "approved" | "changes_requested",
"files": [
{
"file": "relative/path/to/file",
"annotations": [
{
"id": "annotation-uuid",
"body": "reviewer comment",
"anchor": {
"range": { "startLine": 42 },
"lineContent": "the exact line"
}
}
]
}
]
}
Important
- Only include actual source files in the review, not build artifacts or lock files
- After implementing changes, create a new commit with the fixes before offering another review pass