comet-review
Manually review the implementation diff for the current Comet change. Report correctness, security, and edge-case issues without advancing the workflow.
by rpamis★ 3,332 GitHub stars
Install comet-review in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Comet Manual Code Review
Perform one on-demand, read-only code review of the currently selected Comet change. This entry is not a workflow phase and does not replace Build or Verify checks and reviews.
This entry is independent of review_mode. That field controls automatic reviews within the workflow; /comet-review is a single review explicitly requested by the user. Do not read, modify, or override the current change's review_mode during this invocation.
Perform read-only operations
The entire Skill invocation must remain read-only:
- Do not modify, create, or delete files.
- Do not stage, commit, switch branches, create branches, or create worktrees.
- Do not run
comet state select,comet native select,comet state set,comet state transition, phase guards,comet native next, or archive commands. - Do not fix findings, advance phase, or update tasks, state, verification reports, or review records.
- Do not call this review a Verify pass or treat “no findings” as proof that tests passed.
Only run commands needed to read files, query state, and inspect Git diffs. Checks that might execute project code, install dependencies, or produce files are outside this entry's scope.
1. Locate the project and current change
Use read-only Git queries to find the project root. Outside a Git repository, use the current Comet project root.
Run at the project root:
comet status . --jsonRead
.comet/current-change.jsonand choose the review target in this order:- If the file contains a valid
comet.selection.v2, use itsworkflowandchange. - If selection is absent and status lists exactly one unarchived Comet change, use that change for this review only; do not write selection.
- If selection is absent and several changes exist, list their names, workflows, and phases, ask the user to choose one, and end this invocation.
- If selection points to a missing, archived, or invalid change, report the stale/invalid selection and stop without repairing it.
- If the file contains a valid
Ignore ordinary OpenSpec changes that Comet does not manage. Do not replace the selected workflow with the default workflow merely because they differ.
2. Gather review context
Read only the context needed for this change. Keep a source path or command for each fact.
Classic
Read and follow
comet-classic/reference/classic-layout.mdto resolve the project's Classic logical roots.Read the current change's
proposal.md,design.md,tasks.md, andspecs/*/spec.md. Also read any linked Design Doc.Use these read-only queries for the phase, baseline, and existing evidence references:
comet state get <change-name> phase comet state get <change-name> base_ref comet state get <change-name> plan comet state get <change-name> verification_reportRead the existing plan, verification report, and build/verify command checks returned by
comet status . --json. Mark missing evidence as “not provided”; do not infer failure or success.
Native
Run these read-only commands:
comet native show <change-name> --json
comet native status <change-name> --details --json
Follow the returned references to read the brief, complete proposed Specs, acceptance, Builder handoff, checks, verification, risks, blockers, and verification report. Use evidence for the current candidate/iteration only. Historical iterations may explain remaining risks but must not override current state.
3. Establish the implementation diff
- Run
git status --short --untracked-files=allto list all staged, unstaged, and untracked files in the worktree. - Use the current change's requirements, workspace binding, Git history, and worktree state to establish the most reliable relevant scope. For Classic, prefer a valid plan
base-ref; if it is absent or invalid, fall back to the statebase_ref. The two values do not need to match. Only when both values are invalid is the Classic baseline missing. For Native, use the workspace relationships in state and the evidence defining the current candidate's implementation scope. - Inspect the complete diff from the reliable baseline to the current worktree, including committed, staged, and unstaged changes. Read all untracked files belonging to this change, including source, tests, documentation, configuration, and metadata such as
SKILL.mdandagents/openai.yaml. Clearly identify them as untracked. - Exclude changes clearly belonging to other changes or unrelated user work. Ask the user only when ambiguity would materially affect the review conclusions. Otherwise, continue with the available evidence and state your scope assumptions in the report.
If the available evidence still cannot establish a reliable, verifiable baseline, review the visible worktree diff and prominently label the review scope as incomplete.
4. Perform the review
Review the requirements, tasks, and current diff, focusing only on:
- Impl
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- agents/openai.yaml
FAQ
What does the comet-review skill do?
Manually review the implementation diff for the current Comet change. Report correctness, security, and edge-case issues without advancing the workflow.
How do I install the comet-review skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the comet-review skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…