codex-review-workflow
БесплатноБез исполняемых скриптовНе проверенAutomated code review workflow using OpenAI Codex CLI. Implements iterative fix-and-review cycles until code passes validation or reaches iteration limit. Use…
Об этом скилле
Codex Review Workflow
Overview
Automated code review workflow using OpenAI Codex CLI. Implements iterative fix-and-review cycles to ensure code quality through automated validation.
Use when: Building features that require automated code review, iterative refinement cycles, or validation against specific quality standards using Codex CLI.
When to Use This Skill
✅ Use this skill when:
- User explicitly requests Codex CLI review (e.g., "Review this with Codex")
- Implementing features that require automated code validation
- Building code that must meet specific quality standards
- Iterative review and refinement is needed
- Validating security, bugs, and best practices automatically
❌ Skip this skill when:
- User only wants manual code review
- Codex CLI is not available in the environment
- Task is purely exploratory or research-based
- Simple code that doesn't require formal review
Prerequisites
- Codex CLI installed and available on PATH
- Git repository (or use
--skip-git-repo-checkflag) - Verify installation:
codex --version
Core Workflow
This skill follows a structured 6-step process:
1. Complete the Coding Task
Implement the user's requested feature using standard best practices. Ensure code is well-structured before submitting for review.
Track progress with TodoWrite:
- Implement the requested feature/fix
- Run initial Codex CLI review
- Fix issues found in review (if any)
- Run final Codex CLI review
- Report final status
2. Run Initial Codex CLI Review
Git requirement: Codex CLI requires a git repository. If not in a git repo, run git init first, or use --skip-git-repo-check flag (not recommended for production).
Execute Codex CLI review using codex exec (NOT codex review):
# For a specific file
codex exec "Review the code in <file_name> for bugs, security issues, best practices, and potential improvements. Provide specific, actionable feedback with line numbers and examples."
# For multiple files
codex exec "Review the files auth.py, user.py, and session.py for bugs, security issues, best practices, and potential improvements. Provide specific feedback for each file."
# With working directory context
codex exec "Review the code in email_validator.py for bugs, security issues, best practices, and potential improvements. Provide specific feedback." -C /path/to/project
# With specific model
codex exec "Review <file_name>..." -m gpt-5-codex
# With custom configuration
codex exec "Review <file_name>..." -c model="o3"
Key points:
- Be specific in prompts about what to review
- Request line numbers and specific examples
- Use appropriate timeout (120000ms = 2 minutes recommended)
3. Analyze Review Results
Codex CLI returns structured markdown output with variable formats. Look for:
Critical issue indicators (MUST FIX):
- Sections: Bug, Security, Key Issues, Key Findings
- Severity markers: "High:", "Medium:", "critical", "vulnerability"
Quality improvements (LOWER PRIORITY):
- Sections: Maintainability, Usability, Best Practices, Suggestions
- Severity markers: "Low:"
Confirmation indicators (success):
- Sections: Resolved Checks, Review, Review Findings
- Phrases: "No remaining findings", "All issues resolved", "All [N] issues look resolved"
- Check marks (✅) or confirmation language
Decision criteria:
- Complete: No Bug/Security/Key Issues sections AND only suggestions remain
- Complete: Resolved Checks with all previous issues confirmed fixed
- Complete: Phrases like "No remaining findings" or "All issues resolved"
- Continue: Bug/Security/Key Issues sections present → Proceed to step 4
4. Fix Identified Issues
For each issue identified:
- Locate the problematic code
- Understand the issue
- Apply the fix using Edit tool
- Document what changed and why
Best practices:
- Fix all issues in a single iteration before re-reviewing
- Prioritize critical errors over warnings
- Explain each fix clearly to the user
- Preserve functionality while addressing issues
5. Run Follow-up Codex CLI Review
After applying fixes, run targeted review:
codex exec "Review the updated <file_name> code. Check if the previous issues have been fixed: 1) issue description, 2) issue description, etc. Report any remaining issues or confirm the code is now correct."
This helps Codex:
- Focus on whether specific issues were resolved
- Identify any new problems introduced
- Provide clear pass/fail confirmation
Analyze results:
- All issues fixed: Mark workflow complete, report success
- Issues remain: Determine whether to iterate (check limits)
6. Handle Iteration Limits
Maximum iterations: 2 review cycles (initial + 1 re-review)
Why limit:
- Prevents infinite loops
- Some issues require human judgment
- Complex problems need architectural changes
When max reached:
- Mark curr
Установить codex-review-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл codex-review-workflow?
Automated code review workflow using OpenAI Codex CLI. Implements iterative fix-and-review cycles until code passes validation or reaches iteration limit. Use when building features requiring automated code validation, security checks, or quality assurance through Codex CLI.
Как установить скилл codex-review-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл codex-review-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic