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
Copy file name to clipboardExpand all lines: .agents/skills/codex-review/SKILL.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ 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
+
- 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.
25
+
- 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
26
- 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
27
- Do not push just to review. Push only when the user requested push/ship/PR update.
26
28
@@ -32,6 +34,12 @@ Dirty local work:
32
34
codex review --uncommitted
33
35
```
34
36
37
+
Use this only when the patch is actually unstaged/staged/untracked in the
38
+
current checkout. For committed, pushed, or PR work, review the branch against
39
+
its base instead; do not force `--mode local` / `--uncommitted` just because the
40
+
helper docs mention dirty work first. A clean `--uncommitted` review only proves
41
+
there is no local patch.
42
+
35
43
Branch/PR work:
36
44
37
45
```bash
@@ -62,7 +70,7 @@ Format first if formatting can change line locations. Then it is OK to run tests
62
70
scripts/codex-review --parallel-tests "<focused test command>"
63
71
```
64
72
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.
73
+
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
74
67
75
## Context Efficiency
68
76
@@ -91,13 +99,17 @@ The helper:
91
99
- chooses dirty `--uncommitted` first
92
100
- otherwise uses current PR base if `gh pr view` works
93
101
- otherwise uses `origin/main` for non-main branches
102
+
- should be left in `--mode auto` or forced to `--mode branch` for committed/PR work; do not force `--mode local` after committing
94
103
- writes only to stdout unless `--output` or `CODEX_REVIEW_OUTPUT` is set
95
104
- supports `--dry-run` and `--parallel-tests`
105
+
- prints `codex-review clean: no accepted/actionable findings reported` when the selected review command exits 0
96
106
97
107
## Final Report
98
108
99
109
Include:
100
110
- review command used
101
111
- tests/proof run
102
112
- findings accepted/rejected, briefly why
103
-
- final clean review command, or why a remaining finding was consciously rejected
113
+
- the clean review result from the final helper/review run, or why a remaining finding was consciously rejected
114
+
115
+
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