skill-staged-review

Validates implementations against spec contracts and code quality in a two-stage review pipeline.

Updated Aug 15, 2026
One-click install
npx skills add https://github.com/GongYuanCaiJi/dsh-claude-octopus --skill skill-staged-review-gongyuancaiji
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: skill-staged-review
Source: https://github.com/GongYuanCaiJi/dsh-claude-octopus/tree/main/.claude/skills/skill-staged-review
Command: npx skills add https://github.com/GongYuanCaiJi/dsh-claude-octopus --skill skill-staged-review-gongyuancaiji

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When finishing a major feature or preparing a PR, a single-pass code review cannot tell whether you built the right thing (spec compliance) versus whether you built it right (code quality). This Skill separates those two concerns into sequential gated stages so spec failures surface before quality review begins. ## Core Features & Use Cases - Stage 1 Spec Compliance: Loads the intent contract from .claude/session-intent.md, checks every success criterion and boundary, and marks each as PASS, FAIL, PARTIAL, RESPECTED, or VIOLATED. - Stage 2 Code Quality: Runs five stub-detection checks (TODO markers, empty functions, null returns, low substantive line counts, mock data) plus a full quality review covering architecture, error handling, security, performance, readability, and test coverage. - Multi-Provider Review: Dispatches the diff to external providers like Codex and Antigravity via the Octopus orchestration script for parallel logic and security analysis, then synthesizes findings. - PR Integration: Detects an open PR on the current branch with the GitHub CLI and posts the combined staged review report as a comment. - Use Case: After completing a feature defined by an intent contract, run the staged review to confirm all success criteria pass, catch leftover stubs, and publish a unified verdict before merging. ## Quick Start Ask the AI to run a staged review of the current branch against the session intent contract and post the combined report to the open pull request.

Frequently Asked Questions about skill-staged-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review code against a specification before merging a PR?▼

Run a staged review that first validates the implementation against the intent contract's success criteria and boundaries, then runs code quality checks. Stage 1 must pass or be explicitly overridden before Stage 2 begins, producing a combined pass/fail verdict.

What is the difference between staged review and a quick code review?▼

A quick code review checks code quality only, while a staged review adds a spec compliance stage that verifies the implementation matches the intent contract. Use staged review for major features and quick review for routine PR checks.

How does multi-LLM code review work with Codex and Antigravity?▼

The skill detects available provider CLIs and dispatches the git diff to each in parallel through the Octopus orchestration script, requesting logic, correctness, and security findings. Results are merged with the primary review, and issues flagged by multiple providers are marked high-confidence.

What happens if no intent contract exists for the staged review?▼

The skill warns the user and skips Stage 1 entirely, running only the Stage 2 code quality review. It never fabricates success criteria, since the contract must come from a prior workflow session.

Can the staged review post results to a GitHub pull request automatically?▼

Yes, it detects an open PR on the current branch using the GitHub CLI and posts the combined report through a credential-gated comment script. When invoked standalone it asks the user first; inside deliver or embrace workflows it posts automatically.

When should I not use a two-stage staged review?▼

Avoid it for quick code checks or small changes where no intent contract exists; use a lightweight code review instead. The staged pipeline is designed for major feature completion where both spec compliance and quality gates matter.