com um clique
codex-review
// Run a code review using Codex CLI. Use when user asks for a code review.
// Run a code review using Codex CLI. Use when user asks for a code review.
| name | codex-review |
| description | Run a code review using Codex CLI. Use when user asks for a code review. |
This skill provides a black-box review tool that utilizes LLM (Codex CLI) to do a code review, without relying on prior knowledge.
This skill is extremely slow and expensive, but provides high quality results, so you should only use it when:
No need to use this skill for:
This is a black-box review:
This skill only does black-box review (i.e. it only takes repository as input), there are pros and cons. Carefully consider whether it's suitable for your use case before using it.
Pros:
Cons:
IMPORTANT GUIDELINE: Always use this skill as a complementary tool, not the only tool, to provide a more comprehensive review.
This skill is LLM based:
You should always use your own judgment to evaluate the review results, and not blindly trust it.
This skill is very expensive:
Select one of the following review prompts based on the user request. If the user didn't specify, choose the most appropriate one based on the available information.
Review current code changes (staged, unstaged, and untracked files)
Review code changes against the base branch <...>
Review code changes introduced by commit <sha> (<title>)
Review code changes for commit range <sha1>..<sha2>
Review ... (this is the most flexible one, just describe what to review, e.g. review all code in <absolute path> related with ...)
If you believe none of the above prompts are suitable, stop and ask the user for clarification.
node scripts/review.js --cwd "<project directory>" "<review prompt>"
Review script will start a new agent to do the review. It takes a lot of time to complete (e.g. > 1 hour), so be patient, do not interrupt it.
Note: scripts/review.js lives inside this skill's directory, instead of project directory.
To reduce round trips, you should poll script output at least every 5 minutes. Do not poll frequently.
Review script reports findings with these priority definitions:
[P0] – Drop everything to fix. Blocking release, operations, or major usage. [P1] – Urgent. Should be addressed in the next cycle [P2] – Normal. To be fixed eventually [P3] – Low. Nice to have.
Force queue up a task for execution after current task completes
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
Do code review and cleanup, use when user asks to do a code simplification or cleanup