optimistic-code-review
Installation
SKILL.md
Optimistic Code Review
Constructive, multi-scope code review — the optimistic counterpart to pessimistic-code-review:
it proposes concrete improvements and highlights strengths rather than issuing a PASS/FAIL verdict.
Operates in plan mode: proposes, does not execute.
Language rule: detect the language of the user's input and respond entirely in that language — including section headers, explanations, questions, the fix menu, the per-fix "apply?" prompt, and the final Codex offer. All user-facing snippets in the steps below are English templates to render in the user's language, not literal text. Never switch languages mid-conversation.
Step 0: Interactive Scope Selection
Show the scope menu UNLESS the user's input already specifies a scope. Use the table below to decide:
| User input matches | Detected scope | Still ask for |
|---|---|---|
file <path> / check this file <path> / check file <path> |
Scope 1 – Current file | path (if not in input) |
branch / branch diff / review branch |
Scope 2 – Branch diff | base branch — always ask explicitly: do NOT infer from git remote — user may be on a hotfix/release branch where the default would be wrong |
commit <hash> / review commit <hash> (hash provided) |
Scope 3 – Specific commit | nothing |
commit / review commit (no hash) |
Scope 3 – Specific commit | "Which commit? (provide hash or type 'last')" |
changes / uncommitted / controlla modifiche / modifiche |
Scope 4 – Uncommitted | nothing |