You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2580fe2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .agents/skills/codex-review/SKILL.md
+30-3Lines changed: 30 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,9 @@ Use when:
21
21
- Prefer small fixes at the right ownership boundary; no refactor unless it clearly improves the bug class.
22
22
- Keep going until Codex review returns no accepted/actionable findings.
23
23
- If a review-triggered fix changes code, rerun focused tests and rerun Codex review.
24
+
- Never switch or override the review model. If the review hits model capacity, retry the same command a few times with the same model. The helper runs nested review in yolo/full-access mode by default; use `--no-yolo` only when intentionally testing sandbox behavior.
25
+
- Stop as soon as the review command/helper exits 0 with no accepted/actionable findings. Do not run an extra direct `codex review` just to get a nicer "clean" line, a second opinion, or clearer closeout wording.
26
+
- Treat the helper's successful exit plus absence of actionable findings as the clean review result, even if the underlying Codex CLI output is terse.
24
27
- If rejecting a finding as intentional/not worth fixing, add a brief inline code comment only when it explains a real invariant or ownership decision that future reviewers should know.
25
28
- Do not push just to review. Push only when the user requested push/ship/PR update.
26
29
@@ -32,6 +35,12 @@ Dirty local work:
32
35
codex review --uncommitted
33
36
```
34
37
38
+
Use this only when the patch is actually unstaged/staged/untracked in the
39
+
current checkout. For committed, pushed, or PR work, point Codex at the commit
40
+
or branch diff instead; do not force `--mode local` / `--uncommitted` just
41
+
because the helper docs mention dirty work first. A clean `--uncommitted` review
42
+
only proves there is no local patch.
43
+
35
44
Branch/PR work:
36
45
37
46
```bash
@@ -54,6 +63,17 @@ Committed single change:
54
63
codex review --commit HEAD
55
64
```
56
65
66
+
or with the helper:
67
+
68
+
```bash
69
+
/Users/steipete/Projects/agent-scripts/skills/codex-review/scripts/codex-review --mode commit --commit HEAD
70
+
```
71
+
72
+
Use commit review for already-landed or already-pushed work on `main`. Reviewing
73
+
clean `main` against `origin/main` is usually an empty diff after push. For a
74
+
small stack, review each commit explicitly or review the branch before merging
75
+
with `--base`.
76
+
57
77
## Parallel Closeout
58
78
59
79
Format first if formatting can change line locations. Then it is OK to run tests and review in parallel:
@@ -62,7 +82,7 @@ Format first if formatting can change line locations. Then it is OK to run tests
62
82
scripts/codex-review --parallel-tests "<focused test command>"
63
83
```
64
84
65
-
Tradeoff: tests may force code changes that stale the review. If tests or review lead to code edits, rerun the affected tests and rerun review until no accepted/actionable findings remain.
85
+
Tradeoff: tests may force code changes that stale the review. If tests or review lead to code edits, rerun the affected tests and rerun review until no accepted/actionable findings remain. Once that rerun exits cleanly, stop; do not spend another long review cycle on redundant confirmation.
66
86
67
87
## Context Efficiency
68
88
@@ -91,13 +111,20 @@ The helper:
91
111
- chooses dirty `--uncommitted` first
92
112
- otherwise uses current PR base if `gh pr view` works
93
113
- otherwise uses `origin/main` for non-main branches
114
+
- use `--mode commit --commit <ref>` for already-committed work, especially clean `main` after landing
115
+
- should be left in `--mode auto` or forced to `--mode branch` for PR/branch work; do not force `--mode local` after committing
94
116
- writes only to stdout unless `--output` or `CODEX_REVIEW_OUTPUT` is set
95
-
- supports `--dry-run` and `--parallel-tests`
117
+
- supports `--dry-run`, `--parallel-tests`, and commit refs
118
+
- runs nested review with `--dangerously-bypass-approvals-and-sandbox` by default
119
+
- keeps accepting `--full-access`; use `--no-yolo` or `CODEX_REVIEW_YOLO=0` to opt out
120
+
- prints `codex-review clean: no accepted/actionable findings reported` when the selected review command exits 0
96
121
97
122
## Final Report
98
123
99
124
Include:
100
125
- review command used
101
126
- tests/proof run
102
127
- findings accepted/rejected, briefly why
103
-
- final clean review command, or why a remaining finding was consciously rejected
128
+
- the clean review result from the final helper/review run, or why a remaining finding was consciously rejected
129
+
130
+
Do not run another Codex review solely to improve the final report wording. If the final helper run exited 0 and produced no accepted/actionable findings, report that exact run as clean.
0 commit comments