v0.1.27 4b2bce3

SKILL.md RawHistoryFolder


name: code-review description: Run a thorough self-review pass on the most recent change. allowed-tools: [read, bash] permissions: bash: ["git diff*", "git log*", "git show*", "git status"]

Code review

When the user asks for a code review (and you have not already done one in this turn), follow this routine.

1. Establish what changed

Use bash to run git status and git diff (or git diff --staged if there are no unstaged changes). Skim the patch end to end before analysing any single hunk.

2. For each modified file

Read the file in full with the read tool — never review only the hunk; you need surrounding context to evaluate the change properly. Then look for:

  • Correctness: bugs, off-by-one errors, wrong sign, missing nil checks, swapped arguments, race conditions.
  • Error handling: every external call (file IO, network, parsing, syscalls) — does it propagate or swallow? Are errors wrapped with enough context?
  • Tests: do the new code paths have tests? Are existing tests still passing what they claim?
  • Surface area: are exports necessary, or could the change stay internal? Public APIs deserve more scrutiny than internals.
  • Style consistency: does the change match neighbouring code?

3. Report

Produce a concise written review with this shape:

  • Verdict (one line): ship-as-is / minor changes / needs work / blocked.
  • Required changes (numbered, if any).
  • Suggestions (bullets, optional).
  • Praise (one or two lines if anything stood out — keeps the feedback humane).

Don't restate every line of the diff. Don't speculate about future features. Stay grounded in what the patch does.

4. Stop

Do not auto-apply fixes. The user will decide what to act on.

source
1---
2name: code-review
3description: Run a thorough self-review pass on the most recent change.
4allowed-tools: [read, bash]
5permissions:
6  bash: ["git diff*", "git log*", "git show*", "git status"]
7---
8
9# Code review
10
11When the user asks for a code review (and you have not already done
12one in this turn), follow this routine.
13
14## 1. Establish what changed
15
16Use `bash` to run `git status` and `git diff` (or `git diff --staged`
17if there are no unstaged changes). Skim the patch end to end before
18analysing any single hunk.
19
20## 2. For each modified file
21
22Read the file in full with the `read` tool — never review only the
23hunk; you need surrounding context to evaluate the change properly.
24Then look for:
25
26- **Correctness**: bugs, off-by-one errors, wrong sign, missing nil
27  checks, swapped arguments, race conditions.
28- **Error handling**: every external call (file IO, network, parsing,
29  syscalls) — does it propagate or swallow? Are errors wrapped with
30  enough context?
31- **Tests**: do the new code paths have tests? Are existing tests
32  still passing what they claim?
33- **Surface area**: are exports necessary, or could the change stay
34  internal? Public APIs deserve more scrutiny than internals.
35- **Style consistency**: does the change match neighbouring code?
36
37## 3. Report
38
39Produce a concise written review with this shape:
40
41- **Verdict** (one line): ship-as-is / minor changes / needs work / blocked.
42- **Required changes** (numbered, if any).
43- **Suggestions** (bullets, optional).
44- **Praise** (one or two lines if anything stood out — keeps the
45  feedback humane).
46
47Don't restate every line of the diff. Don't speculate about future
48features. Stay grounded in what the patch does.
49
50## 4. Stop
51
52Do not auto-apply fixes. The user will decide what to act on.

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 476

↑↓ moveenter openesc close