claude-codex-code-review 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,10 +32,10 @@ Default behavior is manual approval. Treat `.ai-review/effective-config.env` as
|
|
|
32
32
|
If the project has no `.codex-review.yml` and the user passes no command arguments, use these defaults:
|
|
33
33
|
|
|
34
34
|
```yaml
|
|
35
|
-
mode:
|
|
35
|
+
mode: severity
|
|
36
36
|
review_scope: uncommitted
|
|
37
37
|
max_fix_rounds: 2
|
|
38
|
-
auto_fix_severities: []
|
|
38
|
+
auto_fix_severities: [P0]
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
Configuration meanings:
|
package/.codex-review.yml
CHANGED
package/README.md
CHANGED
|
@@ -136,10 +136,10 @@ scripts/codex-review.sh
|
|
|
136
136
|
默认配置文件是 `.codex-review.yml`:
|
|
137
137
|
|
|
138
138
|
```yaml
|
|
139
|
-
mode:
|
|
139
|
+
mode: severity
|
|
140
140
|
review_scope: uncommitted
|
|
141
141
|
max_fix_rounds: 2
|
|
142
|
-
auto_fix_severities: []
|
|
142
|
+
auto_fix_severities: [P0]
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
配置优先级:
|
|
@@ -151,10 +151,10 @@ auto_fix_severities: []
|
|
|
151
151
|
如果没有 `.codex-review.yml`,也没有传任何参数,会使用以下默认值:
|
|
152
152
|
|
|
153
153
|
```yaml
|
|
154
|
-
mode:
|
|
154
|
+
mode: severity
|
|
155
155
|
review_scope: uncommitted
|
|
156
156
|
max_fix_rounds: 2
|
|
157
|
-
auto_fix_severities: []
|
|
157
|
+
auto_fix_severities: [P0]
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
### 参数说明
|
package/package.json
CHANGED
package/scripts/claude-review.sh
CHANGED
|
@@ -7,10 +7,10 @@ REVIEW_FILE="${OUTPUT_DIR}/claude-review.md"
|
|
|
7
7
|
LOG_FILE="${OUTPUT_DIR}/claude-review.log"
|
|
8
8
|
EFFECTIVE_CONFIG_FILE="${OUTPUT_DIR}/effective-config.env"
|
|
9
9
|
CONFIG_FILE=".codex-review.yml"
|
|
10
|
-
DEFAULT_MODE="
|
|
10
|
+
DEFAULT_MODE="severity"
|
|
11
11
|
DEFAULT_REVIEW_SCOPE="uncommitted"
|
|
12
12
|
DEFAULT_MAX_FIX_ROUNDS="2"
|
|
13
|
-
DEFAULT_AUTO_FIX_SEVERITIES="[]"
|
|
13
|
+
DEFAULT_AUTO_FIX_SEVERITIES="[P0]"
|
|
14
14
|
MODE_ARG=""
|
|
15
15
|
REVIEW_SCOPE_ARG=""
|
|
16
16
|
MAX_FIX_ROUNDS_ARG=""
|
package/scripts/codex-review.sh
CHANGED
|
@@ -7,10 +7,10 @@ REVIEW_FILE="${OUTPUT_DIR}/codex-review.md"
|
|
|
7
7
|
LOG_FILE="${OUTPUT_DIR}/codex-review.log"
|
|
8
8
|
EFFECTIVE_CONFIG_FILE="${OUTPUT_DIR}/effective-config.env"
|
|
9
9
|
CONFIG_FILE=".codex-review.yml"
|
|
10
|
-
DEFAULT_MODE="
|
|
10
|
+
DEFAULT_MODE="severity"
|
|
11
11
|
DEFAULT_REVIEW_SCOPE="uncommitted"
|
|
12
12
|
DEFAULT_MAX_FIX_ROUNDS="2"
|
|
13
|
-
DEFAULT_AUTO_FIX_SEVERITIES="[]"
|
|
13
|
+
DEFAULT_AUTO_FIX_SEVERITIES="[P0]"
|
|
14
14
|
MODE_ARG=""
|
|
15
15
|
REVIEW_SCOPE_ARG=""
|
|
16
16
|
MAX_FIX_ROUNDS_ARG=""
|
|
@@ -46,12 +46,14 @@ Use this skill to review uncommitted code changes using Claude Code.
|
|
|
46
46
|
The review script reads `.codex-review.yml` from the current project directory. If missing, it uses built-in defaults:
|
|
47
47
|
|
|
48
48
|
```yaml
|
|
49
|
-
mode:
|
|
49
|
+
mode: severity
|
|
50
50
|
review_scope: uncommitted
|
|
51
51
|
max_fix_rounds: 2
|
|
52
|
-
auto_fix_severities: []
|
|
52
|
+
auto_fix_severities: [P0]
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
To customize, create `.codex-review.yml` in the project root, or pass command-line arguments to the script.
|
|
56
|
+
|
|
55
57
|
Configuration meanings:
|
|
56
58
|
|
|
57
59
|
- `mode: ask` — always ask before fixing.
|
|
@@ -59,13 +61,24 @@ Configuration meanings:
|
|
|
59
61
|
- `mode: severity` — only auto-fix findings matching `auto_fix_severities`; ask for all others.
|
|
60
62
|
- `max_fix_rounds` — limits automatic review/fix loops.
|
|
61
63
|
|
|
62
|
-
The script also accepts command-line options:
|
|
64
|
+
The script also accepts command-line options. IMPORTANT: each option and its value must be passed as separate arguments, not as a single string.
|
|
65
|
+
|
|
66
|
+
Correct:
|
|
67
|
+
```bash
|
|
68
|
+
~/.codex/skills/claude-review/claude-review.sh --mode severity --auto-fix-severities P0,P1
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Wrong (do NOT do this):
|
|
72
|
+
```bash
|
|
73
|
+
~/.codex/skills/claude-review/claude-review.sh "--mode severity --auto-fix-severities P0,P1"
|
|
74
|
+
```
|
|
63
75
|
|
|
76
|
+
Available options:
|
|
64
77
|
```
|
|
65
78
|
--mode ask|auto|severity
|
|
66
79
|
--review-scope uncommitted
|
|
67
|
-
--max-fix-rounds
|
|
68
|
-
--auto-fix-severities P0,P1
|
|
80
|
+
--max-fix-rounds <number>
|
|
81
|
+
--auto-fix-severities <comma-separated list, e.g. P0,P1>
|
|
69
82
|
```
|
|
70
83
|
|
|
71
84
|
## Dependencies
|