원클릭으로
codex-scan
Read-only code review via Codex. Reports issues without fixing. Independent model perspective.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Read-only code review via Codex. Reports issues without fixing. Independent model perspective.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Audit a project against a canon's rules and checklist. Read-only — produces prioritized report without fixing. Works with any canon (nextjs, sql, typescript, etc.).
Lens home base - status, help, and setup
Plan and build a new feature with quality gates.
Simple changes done right. Make the change, clean up after yourself, report what happened.
Review against canons + quality gate, fix findings, verify. Claude-native — no external models.
Plan and improve existing code with quality gates.
| name | codex-scan |
| description | Read-only code review via Codex. Reports issues without fixing. Independent model perspective. |
Read-only independent code review using OpenAI Codex CLI. Reports issues without making any changes. Provides multi-model triangulation — a different model's perspective on your code.
No arguments? Describe this skill and stop. Do not execute.
If a path argument is provided, review that file/directory. If no argument, review recently modified files (git diff/log). Multiple paths can be provided to scan a set of components.
Read .claude/rubric/AUTO-DETECT.md for the detection table. Then:
.claude/rubric/base.md and .claude/rubric/product-quality.md.claude/rubric/web-api.md, .claude/rubric/data-persistence.md, .claude/rubric/cli.md, .claude/rubric/microservice.md).## Review Criteria. Combine into a single criteria list for the Codex prompt.If a rubric file doesn't exist, skip it and continue.
Find target files:
If NO code exists, output "no code to review" and stop.
Read ALL files in scope completely. Do not skim.
Invoke Codex CLI non-interactively against the target:
cd {TARGET} && codex exec -s read-only -o /tmp/lens-codex-scan.md "PRODUCTION READINESS GATE REVIEW. Score like a senior engineer deciding whether to deploy this to production TODAY. If you wouldn't deploy it, score below 8. Review ALL source code. Score each category 1-10 and cite file:line for every finding.
{RUBRIC_CRITERIA}
SCORING ANCHOR: 8+ = deploy today. 5-6 = needs work. 3-4 = major gaps. CRITICAL = blocks production. HIGH = would cause incidents. Rate overall as min of all category scores." 2>&1
Replace {RUBRIC_CRITERIA} with the combined Review Criteria from all loaded rubric files, numbered sequentially. Example: if base.md has 12 criteria and cli.md has 5, number them (1)-(17).
Note: Test Coverage is handled by the testing phase — do not include it in the rubric criteria.
If codex is not installed, fall back to Step 3b. If it fails for any other reason, log the error and fall back to Step 3b.
Run the review-bot.sh script bundled with the codex-review skill:
SKILL_DIR="$(dirname "$(readlink -f workflow-skills/workflow/codex-review/SKILL.md)" 2>/dev/null || echo workflow-skills/workflow/codex-review)"
bash "$SKILL_DIR/review-bot.sh" {TARGET} --run --out /tmp/lens-codex-scan.json
Read /tmp/lens-codex-scan.md (or /tmp/lens-codex-scan.json if fallback was used).
Parse all findings with file:line references. Categorize by:
DO NOT edit any files. Report only.
rm -f /tmp/lens-codex-scan.md /tmp/lens-codex-scan.json
## Codex Scan: [target]
### Summary
| Metric | Value |
|--------|-------|
| Files scanned | N |
| Total lines | N |
| Overall rating | production-ready / production-leaning / not-production-ready |
| Security issues | N |
| Reliability issues | N |
| Operational issues | N |
| Architecture issues | N |
### Security Issues
1. **[file:line]** — [description]
- Problem: [what Codex found]
- Impact: [why it matters]
- Suggested fix: [how to address]
### Reliability Issues
1. **[file:line]** — [description]
- Problem: [what Codex found]
- Suggested fix: [how to address]
### Operational Issues
1. **[file:line]** — [description]
- Concern: [what Codex found]
### Architecture Issues
1. **[file:line]** — [description]
- Concern: [what Codex found]
### AI-Generated Antipatterns Detected
- [ ] Over-abstraction (factories/wrappers used once)
- [ ] Defensive checks for impossible cases
- [ ] Reimplementing stdlib
- [ ] Over-commenting obvious code
- [ ] Unnecessary config options
- [ ] Single-use wrapper functions
### Files Reviewed
| File | Lines | Issues |
|------|-------|--------|
| path/to/file.ts | 245 | 2 security, 1 reliability |
| ... | ... | ... |
---
CODEX_RESULT: called - [N] total issues
SCAN_ONLY: no fixes applied