Skip to content
Automation
Command

/staged-review

[advanced] Two-stage review: spec compliance then code quality

From plugin
octo
4.1k53 skills49 agents53 commands18 hooks
Install
> /plugin marketplace add nyldn/claude-octopus

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/staged-review

Context preview

What this command does when you run it.

[advanced] Two-stage review: spec compliance then code quality

Command definition

staged-review.md
command: staged-review
disable-model-invocation: true
description: "[advanced] Two-stage review: spec compliance then code quality"
aliases:
  - two-stage-review
  - full-review

Staged Review — Two-Stage Pipeline

🤖 INSTRUCTIONS FOR CLAUDE

MANDATORY COMPLIANCE — DO NOT SKIP

**When the user explicitly invokes `/octo:staged-review`, you MUST execute the structured workflow below.** You are PROHIBITED from doing the task directly, skipping the review phases, or deciding the task is "too simple" for this workflow. The user chose this command deliberately — respect that choice.

EXECUTION MECHANISM — NON-NEGOTIABLE

**You MUST dispatch work to external providers (Codex, Antigravity, etc.) for this command. You are PROHIBITED from:**

  • ❌ Executing the entire task using only Claude-native tools
  • ❌ Using a single Agent subagent instead of multi-provider dispatch
  • ❌ Skipping provider dispatch because "I can handle this alone"

**Multi-LLM orchestration is the purpose of this command.** Single-model execution defeats its purpose.

---

🐙 **CLAUDE OCTOPUS ACTIVATED** — Two-Stage Review Pipeline

---

When the user invokes this command (e.g., `/octo:staged-review` or `/octo:staged-review src/auth/`):

Step 0: Detect governed-workflow mode (skip interactive prompts)

**Before Step 1, check for governed mode.** If a `.todo/claude-octopus/` directory exists in the working tree (set up by the Cruisey `octo` pipeline), this review is running INSIDE the autonomous governed workflow — the human gate is CP3, not here. In that case:

  • **Skip the Step 1 "Review Scope" prompt** — the scope is always the full working tree (nothing is committed before CP3). Proceed directly with `git diff` of the working tree.
  • **Skip the "Post-Completion — Interactive Next Steps" prompt** — proceed straight to the next phase (CP2 council, or the gatekeeper) without asking.
test -d .todo/claude-octopus && echo "GOVERNED_MODE" || echo "STANDALONE_MODE"

If `STANDALONE_MODE`, run the interactive prompts below as normal. If `GOVERNED_MODE`, do NOT call `AskUserQuestion` at any point in this command.

Step 1: Determine Review Scope

**(GOVERNED_MODE: skip this prompt — scope = working tree.)** Standalone only:

AskUserQuestion({
  questions: [
    {
      question: "What should be reviewed?",
      header: "Review Scope",
      multiSelect: false,
      options: [
        {label: "Staged changes", description: "git diff --cached — what you're about to commit"},
        {label: "Recent commit", description: "Changes in the last commit (HEAD~1..HEAD)"},
        {label: "Working tree", description: "All uncommitted changes"},
        {label: "Specific path", description: "A file or directory (provide path as argument)"}
      ]
    }
  ]
})

If invoked with arguments (e.g., `/octo:staged-review src/auth/`), use that path directly and skip the question.

Step 2: Execute Staged Review

Read and follow the full skill instructions from: `${HOME}/.claude-octopus/plugin/.claude/skills/skill-staged-review/SKILL.md`

The skill runs two stages: 1. **Stage 1** (Spec Compliance) — Validate against intent contract 2. **Gate check** — Stage 1 must pass before Stage 2 3. **Stage 2** (Code Quality) — Stub detection + multi-LLM quality review (Codex for logic, Antigravity for security, Claude for architecture — synthesized into unified findings) 4. **Combined report** — Unified verdict

Post-Completion — Interactive Next Steps

**GOVERNED_MODE: do NOT ask — proceed straight to the next phase (CP2 council, then gatekeeper) per the governed pipeline. The next-steps prompt below is STANDALONE-only.**

**CRITICAL (standalone only): After the skill completes, you MUST ask the user what to do next.**

AskUserQuestion({
  questions: [
    {
      question: "Review complete. What would you like to do?",
      header: "Next Steps",
      multiSelect: false,
      options: [
        {label: "Fix blocking issues", description: "Address the issues flagged in the review"},
        {label: "Run /octo:review", description: "Follow up with full multi-LLM review"},
        {label: "Post to PR", description: "Post the review findings to the open PR"},
        {label: "Done", description: "No further action needed"}
      ]
    }
  ]
})

Related Commands

  • `/octo:review` — Expert multi-LLM code review with inline PR comments
  • `/octo:deliver` — Full delivery phase with validation and testing
  • `/octo:develop` — Development phase with quality gates

Validation Gates

  • Review scope determined (from arguments or user input)
  • Skill loaded and executed (not simulated)
  • Combined report presented to user
  • Next steps offered

Prohibited Actions

  • Simulating the review without running the skill
  • Skipping Stage 1 when an intent contract exists
  • Ending without presenting next steps **(standalone mode only — in GOVERNED_MODE the next-steps prompt is intentionally skipped; proceed to the next pipeline phase instead)**
Read more
Ships withocto

Every AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code

Get the whole plugin

Other commands on octo.