بنقرة واحدة
review
Review current changes after Codex implementation. 用于在 Codex 改完后,基于当前 diff 做二次审查。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review current changes after Codex implementation. 用于在 Codex 改完后,基于当前 diff 做二次审查。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | review |
| description | Review current changes after Codex implementation. 用于在 Codex 改完后,基于当前 diff 做二次审查。 |
| argument-hint | [--timeout <sec>] [--skip-tests] [scope or concern] |
| disable-model-invocation | true |
| allowed-tools | Read Grep Glob Bash |
Review the current implementation changes with this focus: $ARGUMENTS
Extract flags from $ARGUMENTS before treating the rest as the review scope:
--timeout <seconds> — override the default test timeout (default 300). Strip from scope.--skip-tests — do not run tests. Strip from scope. The review must still emit a
# Test results section marked SKIPPED: --skip-tests flag..codex-handoff/latest.md exists. If it does, read it and use whatever
context is available (acceptance criteria, constraints, scope boundaries, review
focus, and especially any How to test / 如何测试 section) as a cross-reference
when evaluating the implementation.Unless --skip-tests was specified, run the project's test suite to ground the
verdict in real signal.
Discovery order (use the first that succeeds):
How to test / 如何测试 section in .codex-handoff/latest.md — extract the
command(s) verbatim.package.json with a test script → npm testpyproject.toml or pytest.ini or setup.cfg with [tool:pytest] → pytest -qgo.mod → go test ./...Cargo.toml → cargo testMakefile with a test target → make testSKIPPED (command unknown) and continue.Execution rules:
--timeout <sec> (default 300s)..codex-handoff/history/YYYY-MM-DD-HHMMSS-validation.log.
Create the directory if needed.SKIPPED (not safe to auto-run)
and note why.Combine the test outcome with the code review findings.
| Test outcome | Code findings | Allowed verdict |
|---|---|---|
| FAIL (non-zero exit) | any | REWORK (hard rule — never APPROVE or MINOR_FIX on red tests) |
| PASS | no substantive issues | APPROVE |
| PASS | small fixable issues | MINOR_FIX |
| PASS | significant issues | REWORK |
| SKIPPED | any | any verdict, but the # Test results section must state why tests did not run, and the Next step must recommend running them before shipping |
Prioritize bug-finding, regression risks, missing tests, and incorrect assumptions over style commentary. Match the user's language.
The review must provide:
APPROVE, MINOR_FIX, or REWORK# Test results section containing, at minimum:
Command: — the exact command run, or SKIPPED: <reason>Exit code: — numeric exit code, or N/A when skippedDuration: — wall-clock time, or N/A when skippedSummary: — brief outcome line (e.g. 42 passed, 0 failed, or key failing
test names); N/A when skippedLog: — path to the saved validation log, when tests ranAPPROVE → ship or merge,
MINOR_FIX → small follow-up changes,
REWORK → revise before approvalIf .codex-handoff/latest.md is available and contains acceptance criteria, include
a handoff coverage assessment that marks each criterion as MET, NOT_MET, or
UNTESTED.
If a category has no substantive content, say so briefly rather than inventing
filler. Organize the review in whatever structure is clearest, but keep the verdict
and # Test results prominent near the top so they are easy to find.
After generating the review, save it to
.codex-handoff/history/YYYY-MM-DD-HHMMSS-review.md. Create the directory if needed.