com um clique
o-spreadsheet-review
// Review a branch or PR in the o-spreadsheet project for correctness, bugs, performance, security, architecture, tests, and maintainability. Use when user asks to review code or mentions "review".
// Review a branch or PR in the o-spreadsheet project for correctness, bugs, performance, security, architecture, tests, and maintainability. Use when user asks to review code or mentions "review".
| name | o-spreadsheet-review |
| description | Review a branch or PR in the o-spreadsheet project for correctness, bugs, performance, security, architecture, tests, and maintainability. Use when user asks to review code or mentions "review". |
The user provides a PR number or branch name, or refers to the current branch ("this branch", "my branch"). If none given, ask the user.
Note: The
ghCLI is not available in this sandboxed environment. Work from the local git checkout only.
The review runs against the currently checked-out branch.
The dev branch is always prefixed with its base branch — e.g. base 19.0 → dev 19.0-feature-xyz. Derive <base_branch> from that prefix; if you cannot infer it, ask the user.
Then list the commits in <base_branch>..HEAD — those are the commits to review.
For every commit in <base_branch>..HEAD (oldest → newest), read git show <sha> (message + diff) and check:
[FIX], [IMP], [REF], [PERF], …) and accurately describes the change.Diff the whole branch (git diff <base_branch>...HEAD). For each changed region, read enough surrounding code at HEAD — the enclosing function, the call sites, related types/tests — to actually understand what the change does. Then apply CHECKLIST.md against the merged result.
Be ruthlessly brief. A long review is an unread review — if the human has to scroll, they will skim or skip it. Aim for the shortest text that is still actionable:
history.update") over abstract advice ("consider state management").### Commit
<for commits with issues, one short line, or "All commits look clean." and nothing else.>
### Findings
#### <file>:<line> — <severity>
<very short issue description and suggested fix>
| Level | Meaning | Examples |
|---|---|---|
| blocker | Must fix before merge. Incorrect behavior, data loss, security hole, crash. | Wrong command handling, XSS via unsanitized input |
| warning | Should fix. Performance issue, fragile pattern, missing test coverage for key path. | O(n^2) in hot loop, no undo/redo test, direct state mutation without history.update() |
| nit | Optional. Style, naming, minor simplification. | comment typo |
Don't flag things that are clearly intentional or match existing codebase patterns. If unsure whether something is a real issue, say so rather than invent one.