skills/harness/codex-design-review/SKILL.md
Targeted design/code review via Codex CLI. Use when a specific design document, implementation plan, code module, or feature scope needs focused review — not a blanket "review all uncommitted changes". Outputs a structured review report to `docs/feature/<module>/review-<slug>.md` as a collaboration artifact between the orchestrating agent and Codex. Use when the user asks to "review this design", "审查方案", "让 codex 审查", "review this feature", or when a design document needs validation before implementation begins.
npx skillsauth add escapewu/skills codex-design-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Turn a design document or implementation scope into a structured Codex review task with auditable output.
codex review --uncommitted reviews all uncommitted changes — this is wrong for targeted design review because:
This skill instead uses codex in prompt mode to review specific content with a focused TaskSpec, and writes a structured review report to the feature's docs directory.
codex-review skillmake test / ruff directlyDetermine:
| Field | Description |
|-------|-------------|
| target_files | Files to review (1-5 files, focused) |
| feature_module | Feature directory under docs/feature/ |
| review_slug | Short identifier for the review (e.g., design-v1, contract-safety) |
| review_focus | What specifically to evaluate (design coherence, safety, feasibility, etc.) |
| context_files | Additional files that provide context but aren't the review target |
Construct a Codex prompt that includes:
Use this template:
Review the following design document for the TradingSignal project.
## Review Target
<paste target file content>
## Context Files
<paste relevant context snippets — contracts, schemas, related code>
## Review Criteria
Evaluate the design against these criteria:
1. **Completeness**: Are all necessary aspects covered? Any missing edge cases?
2. **Consistency**: Does it align with existing system contracts and architecture?
3. **Feasibility**: Can it be implemented with the current codebase?
4. **Safety**: Does it maintain system boundaries (no trade execution)?
5. **Defects**: Are there logical errors, contradictions, or incorrect assumptions?
6. **Testability**: Can the design be validated with automated tests?
## Output Format
Respond with a structured review report using this format:
### Summary
One paragraph overall assessment.
### Findings
For each finding:
- **[Severity]** Title — file:line_reference
Description of the issue and recommended fix.
Severity levels: P0 (blocker), P1 (high), P2 (medium), P3 (low), INFO (observation)
### Recommendations
Numbered list of actionable recommendations.
### Verdict
APPROVE / APPROVE_WITH_CONDITIONS / REQUEST_CHANGES / BLOCK
Run codex in prompt mode (NOT --uncommitted):
codex --prompt "$(cat /tmp/review-prompt.txt)" \
--config model=gpt-5.5 \
--config model_reasoning_effort=xhigh
Difficulty-based model selection:
| Condition | Model + Effort | Timeout |
|-----------|---------------|---------|
| Target files ≥ 5 or total lines ≥ 2000 | gpt-5.5 + xhigh | 40 min |
| Target files ≥ 3 or total lines ≥ 500 | gpt-5.5 + xhigh | 15 min |
| Otherwise | gpt-5.5 + high | 10 min |
Write the review output to:
docs/feature/<feature_module>/review-<slug>.md
The report file format:
# Review: <slug>
> Reviewed by: Codex (<model>, <effort>)
> Date: <date>
> Target: <target_files list>
> Verdict: <APPROVE / APPROVE_WITH_CONDITIONS / REQUEST_CHANGES / BLOCK>
## Summary
<Codex summary>
## Findings
<Codex findings, preserved as-is>
## Recommendations
<Codex recommendations, preserved as-is>
## Review Metadata
| Field | Value |
|-------|-------|
| Model | <model> |
| Reasoning Effort | <effort> |
| Duration | <seconds> |
| Target Files | <list> |
| Context Files | <list> |
| Review Focus | <focus description> |
Summarize:
This skill fits into the harness engineering plan workflow:
M0 Planning Gate
└── Design document created
└── ★ codex-design-review → review-design-v1.md
└── Design approved or revised
M1 Contract Foundation
└── Contract files created
└── ★ codex-design-review → review-contracts.md
└── Contracts frozen
M5 Integration Gate
└── Implementation complete
└── ★ codex-design-review → review-integration.md (code-focused)
└── Feature shipped
Each review report becomes part of the feature's audit trail.
Step 0: Identify
target_files: [docs/feature/trade-suggestion/README.md]
feature_module: trade-suggestion
review_slug: design-v1
review_focus: Design completeness, calculation logic, safety boundary changes
context_files: [
src/api/services/confirmation_contract.py,
src/api/services/confirmation_resolver.py,
src/api/services/key_zone.py (lines 19-50, zone dataclass)
]
Step 1: Build prompt with target content + context snippets
Step 2: codex --prompt "..." --config model=gpt-5.3-codex --config model_reasoning_effort=xhigh
Step 3: Write to docs/feature/trade-suggestion/review-design-v1.md
Step 4: Report verdict + findings to user
docs/feature/--uncommitted for targeted reviews — that reviews everythingdevelopment
Use when working with the news fetcher REST API at <news-fetcher-host> for supported-site lookup, domain article discovery, URL fetching, batch fetch/crawl workflows, fetch history queries, and Bearer-authenticated integration examples.
development
create and refresh repository-specific development standards for an existing local codebase. use when the user wants to analyze a local repository, extract coding conventions from real files, generate docs/ai-dev-standards, create code review checklists, or update existing agents.md or claude.md files so future coding agents load the right standards before development. do not use for generic programming advice detached from a repository.
documentation
analyze postgresql or mysql database schemas from ddl files, schema-only dumps, migration sql, or read-only database metadata. use when the user wants table structure summaries, primary keys, foreign keys, indexes, inferred table relationships, er diagrams, dbml, mermaid erd, schema documentation, or database relationship analysis for postgres/mysql schemas.
tools
Replace with description of the skill and when Claude should use it.