skills/deepreview/SKILL.md
Run and monitor DeepReview against the current repo/project or an explicit local git repo using the local DeepReview Go tool. Use when the user asks to run deepreview, start a monitored multi-round repo review, watch a deepreview run while it executes, or gather preflight/artifact details before or after a deepreview pass. Stay attached from launch until the terminal outcome and saved artifacts have been checked and still make sense.
npx skillsauth add olliecrow/codex deepreviewInstall 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.
run-watcher owns live process state, heartbeats, and stuck-run signals, and updates plan/current/deepreview-monitor.md.artifact-reader owns round-status.json, summaries, delivery artifacts, and log folders, and updates the same note with evidence paths.final-checker does a fresh pass on the final story against the saved artifacts before closeout or intervention.rg -> find/grep, python -> python3, alternate repo-native scripts).plan/, ensure required plan directories exist before reading/writing them (create when edits are allowed; otherwise use an in-memory fallback and call it out).investigate -> plan -> fix -> verify -> battletest -> organise-docs -> git-commit -> re-review; cleanup scan -> prioritize -> clean -> verify -> re-scan; docs audit -> update -> verify -> re-audit.organise-docs frequently during execution to capture durable decisions and learnings, not only at the end.git-commit when changes are commit-eligible, checks are green, and repo policy permits commits.docs/ accurate and up to date, and promote durable learnings and decisions from work into docs.git-commit to create a small logical checkpoint commit once relevant checks are green and repo policy permits commits.organise-docs whenever durable learnings/decisions appear, and prune stale plan/ scratch artifacts.plan/handoffs/ or plan/current/notes.md.running, blocked, success-no-delivery, success-with-delivery, anomalous-no-pr),The skill is complete only when all of the following are true:
done, blocked, or not-applicable, with brief evidence or rationale.done: preflight passes, DeepReview finishes, the saved run artifacts and logs still support the final story, and the terminal state is classified correctly as PR created, delivery skipped with no deliverable changes, or verified push in yolo mode.blocked: repo hygiene, auth, or tool prerequisites still fail after bounded retries; blocker evidence and exact unblock commands are reported.not-applicable: remote-delivery follow-up is intentionally skipped when the user asked only for preflight or monitor-only behavior.Stop only after this terminal contract is satisfied; otherwise continue iterating.
Run deepreview review against the current repo in monitored text mode, with explicit repo-state preflight, periodic heartbeats while the run is active, and concise artifact reporting after completion. Prefer local-repo mode and let DeepReview infer the current branch from the target repo unless the user asks for a different source branch. Do not stop at child-process exit alone; finish only after the final artifacts, logs, and delivery outcome have been checked and still make sense together.
The local shell defines deepreview() as:
(
cd "$HOME/repos/me/deepreview" || return 1
go run ./cmd/deepreview review --mode pr --concurrency 4 --max-rounds 6 "$@"
)
For automation, prefer the bundled launcher instead of relying on interactive shell functions:
scripts/run_deepreview.pyIt runs the underlying go run ./cmd/deepreview review ... --no-tui, sets DEEPREVIEW_CALLER_CWD correctly, stores a local monitor log under plan/artifacts/deepreview/, and emits periodic monitor snapshots while the child process is still running.
During active runs, treat round-*/round-status.json, final-summary.md, pr-title.txt, pr-body.md, and run_root/logs/ as first-class evidence, not just the live stdout stream.
The launcher also emits explicit [monitor-alert] lines when artifacts suggest intervention may be warranted, such as unreadable round status, severe delivery/log failures, repeated no-progress heartbeats, or recovery-ready delivery artifacts without a confirmed PR URL yet.
Use this skill when the user asks for intents like:
run deepreview on this repodeepreview this branchstart deepreview and monitor itwatch deepreview while it runsrerun deepreview after syncpreflight deepreview on this repoUse these copy-paste templates:
[$deepreview] run deepreview on the current repo in pr mode, monitor it from launch to finish, keep checking logs and saved artifacts while it runs, and report artifact paths plus the final summary only after the terminal result still makes sense.[$deepreview] preflight the current repo for deepreview readiness; do not launch if the branch is dirty or out of sync.[$deepreview] rerun deepreview on the current repo with concurrency 6 and max-rounds 3, monitor it from start to finish, keep checking logs and saved artifacts, and summarize the delivery result only after the terminal evidence agrees.[$deepreview] run deepreview on the current repo in yolo mode, monitor it from launch to finish, keep checking logs and saved artifacts, and report exactly what was pushed only after the terminal evidence agrees.Default policy bands for one DeepReview run:
Hard-stop override (intervene earlier):
gh, codex, git, go) that blocks the run from progressing,pr mode reaching terminal completion without either a PR created: line or an explicit delivery skipped: reason.pr-title.txt, pr-body.md, final-summary.md) showing enough evidence to recover manually, but the launcher not yet confirming final delivery.--no-tui DeepReview runs so progress can be captured and summarized reliably.git-sync only when a fast-forward sync is clearly enough to unblock.--mode yolo as a higher-risk remote mutation path. Use it only when the user explicitly asks for direct push behavior.go, codex, and gh for pr mode. If gh auth or remote wiring is missing, stop before launch and report the exact blocker.plan/artifacts/deepreview/ when the repo is writable. If that path cannot be created, continue with stdout-only monitoring and call out the missing artifact path.round-*/round-status.json,final-summary.md as soon as it appears,pr-title.txt and pr-body.md,run_root/logs/ (for example inactivity restarts, delivery-stage failures, or watchdog messages).round-status.json, final-summary.md, and delivery artifacts before concluding what failed.no PR as a single failure mode. Distinguish:
delivery skipped: ... because no deliverable repo changes remained),run exited before delivery; no push or PR was created.),git rev-parse --show-toplevel.git status --porcelain --untracked-files=no.0 0 with git rev-list --left-right --count HEAD...@{u}.origin exists and resolves to a GitHub-backed remote.go, codex, and gh when using pr mode.plan/ layout when the repo is writable.plan/artifacts/deepreview/.python3 skills/deepreview/scripts/run_deepreview.py --repo "<repo-root>".--mode pr--concurrency 4--max-rounds 6--warmup-seconds 300--warmup-poll-seconds 30--poll-seconds 600--source-branch.DEEPREVIEW_CALLER_CWD to the target repo path because the launcher runs from $HOME/repos/me/deepreview.round-*/round-status.json,run_root/logs/,pr-title.txt, pr-body.md) once they exist.300s: heartbeat every 30s,300s: heartbeat every 600s.[monitor-alert] lines as intervention prompts, not as informational noise. Read the cited artifact state immediately and decide whether the run still has a valid recovery path.Ctrl+C, forward the interrupt once and wait for DeepReview cleanup.failure-before-delivery: non-zero exit, explicit failure summary, or run exited before delivery; no push or PR was created.success-no-delivery: explicit delivery skipped: ... reason from stdout or final-summary.md, such as no deliverable repository changes were produced or privacy remediation removed all deliverable repository changessuccess-with-delivery: explicit PR created: ... in pr mode, or explicit pushed-commits URL in yolo modeanomalous-no-pr: pr mode completed several stages but printed neither PR created: nor delivery skipped:success-no-delivery into failure. It is a valid terminal state when DeepReview concluded there was nothing safe and deliverable to open as a PR.success-no-delivery rule applies in yolo mode too. No-delivery is still success when DeepReview explicitly skipped delivery because nothing valid remained to push.round-status.json.failure-before-delivery:
run_root/logs/, round-*/round-status.json, and final-summary.md if present,success-no-delivery:
final-summary.md and the latest round-status.json to understand why DeepReview decided there was nothing deliverable,anomalous-no-pr:
final-summary.md for any recorded pull-request or commits section,gh whether a PR was actually created despite the missing printed URL,pr-title.txt plus pr-body.md exist, prefer manual recovery:
blocked when neither existing-PR lookup nor artifact-based PR creation succeeds.failure-before-delivery, success-no-delivery, success-with-delivery, or anomalous-no-pr),pr mode completed without a PR, explicitly say whether that was an expected no-delivery outcome or an anomalous blocked outcome.not-applicable.Use scripts/run_deepreview.py.
Supported arguments:
--repo <path>: target local repo path. Defaults to the current working directory.--mode pr|yolo: delivery mode. Default pr.--concurrency <int>: worker count. Default 4.--max-rounds <int>: max review rounds. Default 6.--source-branch <branch>: explicit source branch override.--warmup-seconds <int>: length of the active monitoring warmup window. Default 300.--warmup-poll-seconds <int>: heartbeat interval during warmup. Default 30.--poll-seconds <int>: steady-state heartbeat interval after warmup while no output arrives. Default 600.--artifact-dir <path>: override local log directory. Defaults to <repo>/plan/artifacts/deepreview.--preflight-only: run preflight and exit without launching DeepReview.--allow-yolo: required when --mode yolo is used.Recovery behavior:
pr-mode anomalies, the launcher may query gh for an existing PR by delivery branch.pr-title.txt and pr-body.md instead of rerunning DeepReview from scratch.[monitor-alert] lines for likely stall or recovery conditions so the operator can intervene before wasting a full rerun.python3 skills/deepreview/scripts/run_deepreview.py --help after editing the launcher.python3 skills/deepreview/scripts/run_deepreview.py --repo "<repo-root>" --preflight-only to verify the launcher and preflight path without triggering remote changes.When this skill is triggered, compose other skills as needed:
investigate when DeepReview artifacts, delivery state, or log behavior are contradictory enough that the run story is unclear.verify for focused checks on preflight assumptions, launcher behavior, or delivery evidence before concluding the run is healthy.organise-docs when a run teaches a durable rule about DeepReview setup, monitoring, recovery, or delivery handling.git-commit or checkpoint after a verified DeepReview-driven fix when the repo state is commit-eligible.If there is a conflict, retained-run evidence wins: companion skills should strengthen diagnosis, proof, and durable capture without replacing artifact-backed conclusions with guesswork.
data-ai
Use automatically for Sentinel repo sessions, trading research questions, market/company/ticker/source questions, or any request that should use Sentinel's read-only data sources and reference context. Enforces Sentinel's high-confidence, read-only, no-local-query-trace research posture.
documentation
Compact the current conversation into a handoff document for another agent to pick up.
tools
Run the Codex custom review feature from the CLI for arbitrary review instructions. Use when the user asks to use /review, custom review, or Codex review without tying the review to commits, uncommitted changes, or a base branch; prefer multicodex exec review with no explicit account and fall back to codex exec review only when multicodex is unavailable.
tools
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).