approval-stage-plan-review-sweep

Run an approval-stage adversarial cross-review sweep across multiple GitHub issues, drafting any missing canonical plan artifacts before dispatching Codex/Gemini reviews.

5 stars

Best use case

approval-stage-plan-review-sweep is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Run an approval-stage adversarial cross-review sweep across multiple GitHub issues, drafting any missing canonical plan artifacts before dispatching Codex/Gemini reviews.

Teams using approval-stage-plan-review-sweep should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/approval-stage-plan-review-sweep/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/software-development/approval-stage-plan-review-sweep/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/approval-stage-plan-review-sweep/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How approval-stage-plan-review-sweep Compares

Feature / Agentapproval-stage-plan-review-sweepStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Run an approval-stage adversarial cross-review sweep across multiple GitHub issues, drafting any missing canonical plan artifacts before dispatching Codex/Gemini reviews.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Approval-Stage Plan Review Sweep

Use when the user asks to adversarially cross-review multiple issues for approval readiness in one pass.

## Why this exists
A common failure mode in approval-stage sweeps is trying to review issue bodies or stale partial drafts directly, even when a canonical `docs/plans/...` artifact is missing. That produces low-value review churn and breaks the repo's planning workflow.

## Required preflight
For each target issue:
1. Verify the canonical local plan file exists under `docs/plans/`.
2. Verify the issue has an index row in `docs/plans/README.md`.
3. If the plan artifact is missing, draft the missing canonical plan first and add the README row before any provider review.
4. If the plan exists but the prompt file is stale, regenerate the review prompt from the current on-disk plan text.

Do not treat a raw GitHub issue body as approval-ready substitute for a missing plan artifact.

## Recommended workflow
1. Enumerate target issue numbers.
2. Check `docs/plans/` for matching issue plan files.
3. Check `docs/plans/README.md` for matching index rows.
4. Draft/index any missing plans.
5. Generate fresh per-issue prompt files in `.planning/quick/`.
6. Dispatch Codex and Gemini reviews in parallel using the repo's review wrappers:
   - `scripts/review/submit-to-codex.sh`
   - `scripts/review/submit-to-gemini.sh`
7. Save canonical artifacts under `scripts/review/results/YYYY-MM-DD-plan-<issue>-<provider>.md`.
8. Create a consolidated summary note listing verdicts and approval blockers.
9. If using Hermes `delegate_task` to parallelize a sweep, remember the default concurrency cap may be lower than the user's requested lane count. In this environment, `max_concurrent_children` was 3, so a requested 4-lane sweep had to be implemented as two top-level parallel calls (3-task batch + 1-task batch). Do not promise a single 4-task `delegate_task` call without checking the actual cap first.
10. After synthesizing the verdicts, post a short GitHub comment on each issue summarizing approval readiness and top blockers, then only surface links as "for approval" if the plan is genuinely approval-ready. If every issue is still MAJOR / not approval-ready, explicitly say there are no approval links yet.
11. When a plan finally converges, do one last bookkeeping pass before calling it approval-ready:
   - refresh the plan header `Review artifacts:` line to the latest converged timestamped artifact set
   - refresh the Artifact Map review-artifact rows to the same timestamped set
   - update the `Adversarial Review Summary` table + wave summary to the final converged verdicts
   - post a dedicated GitHub convergence comment with the final provider verdicts and the latest artifact links
   - if the user later approves the issue on GitHub, verify whether the matching local `.planning/plan-approved/<issue>.md` marker exists; create it if missing so GitHub and local approval state stay synchronized

## Prompt requirements
Every review prompt should explicitly say:
- reviewer is adversarial
- do not praise or restate
- approval requires affirmative verification
- cite exact file paths / plan sections / quoted claims
- treat attested evidence as authoritative when present
- focus on approval-stage readiness, not implementation style

## Output expectations
For each issue, capture:
- Codex verdict
- Gemini verdict
- overall status (`approval-ready` or `not approval-ready`)
- 3-5 top blocker themes

For the full sweep, save a consolidated note with:
- verdict table by issue/provider
- common blocker clusters
- recommended next action (redraft, rerun review, or move to `status:plan-review`)

## Practical rules
- A single `MAJOR` blocks approval-stage readiness.
- If both providers return `MAJOR`, do not post the plan for approval.
- If the plan itself already contains a prior `FAIL / re-draft required` review summary, treat that as a strong sign the draft must be rewritten before another approval push.
- Keep raw provider logs in `.planning/quick/` and canonical review artifacts in `scripts/review/results/`.
- Do NOT cite the current-wave review artifacts inside the plan as if they already prove the blockers are resolved. During the rerun, those files may still be empty or not yet regenerated, and reviewers can correctly flag that as misleading evidence. In the redraft, refer to those findings as prior-review inputs and say fresh external re-review is still pending.
- Do NOT make `remain in draft` part of the acceptance criteria for an approval-stage plan. That creates a gate contradiction: the same artifact is trying to be approval-ready while asserting that staying draft is success. Instead, keep the file status conservative as `draft`, but make the acceptance criteria about plan content; note separately that fresh external re-review is required before promotion to `status:plan-review`.
- Treat attestation scope narrowly. The plan-attestation block reliably proves issue state and file existence, but it does not automatically prove arbitrary file contents, quoted lines, or semantic claims unless those excerpts are actually embedded. Avoid writing `attested` content claims for line-level behavior unless the evidence block truly includes that content.
- When reviewers challenge broad globs like `.Codex/rules/**` or other open-ended scan universes, prefer replacing them with explicit fixed file lists for the approval-stage draft. This makes the test surface falsifiable and avoids execution-time scope drift.
- If the issue title/scope is about one non-actionable family (for example transient worktree/scratch-path reads), do not let the plan silently pivot to a neighboring family (for example generated-site paths) without explicitly preserving and testing the original scope. Reviewers will treat that as scope hijack.

## Good fit
- Reviewing 2-10 related plan issues in one batch
- Approval-stage queue cleanup
- Governance sweeps where some issues have plan drift or missing artifacts

## Not for
- Implementation/code review after commits (use the general multi-provider review workflow)
- Single-issue planning from scratch when no review sweep is requested

Related Skills

domain-knowledge-sweep

5
from vamseeachanta/workspace-hub

Systematic multi-source research of an engineering domain. Spawns parent issue → 6 research subissues (Standards, Academic, Industry, LinkedIn-marketing, Code-audit, Synthesis) → gap implementation subissues. Replaces LinkedIn-only extraction with defensible comprehensive sourcing.

plan-review-prompt-refresh-after-plan-edits

5
from vamseeachanta/workspace-hub

Refresh reviewer prompt files from the latest on-disk plan before every adversarial re-review. Prevents Codex/Gemini from critiquing stale plan text after local edits.

workspace-hub-overnight-plan-monitor

5
from vamseeachanta/workspace-hub

Monitor and reconcile workspace-hub overnight planning or implementation batches, including process status, result artifacts, issue/commit verification, and controlled failed-lane recovery.

plan-gated-issue-execution-wave

5
from vamseeachanta/workspace-hub

Execute a multi-issue architecture/planning wave in a plan-gated repo, then safely transition approved issues into implementation with file-based Codex prompts, local approval markers, subprocess monitoring, and cleanup handling for sandbox/hook edge cases.

mixed-ops-vs-repo-fix-plan-boundary

5
from vamseeachanta/workspace-hub

Plan mixed operational-vs-repo remediation issues by proving live-state classification first, then only proposing code changes for confirmed repo-owned failure paths.

wave-based-parallel-plan-execution

5
from vamseeachanta/workspace-hub

Orchestrate phase execution by discovering dependencies, grouping into waves, spawning subagents, and collecting results with optional wave filtering

tdd-verification-and-adversarial-review

5
from vamseeachanta/workspace-hub

Verify pre-written TDD tests pass, conduct adversarial code review on committed diffs, and route findings to existing issues

staged-issue-tree-creation-with-deduplication

5
from vamseeachanta/workspace-hub

Pattern for creating hierarchical GitHub issue trees from phased project plans while checking for duplicate/overlapping issues

plan-gated-issue-validation-workflow

5
from vamseeachanta/workspace-hub

Systematic validation pattern for plan-approved GitHub issues with pre-existing deliverables

plan-gated-issue-implementation

5
from vamseeachanta/workspace-hub

Workflow for executing pre-approved GitHub issues with mandatory validation checkpoints

multi-role-agent-contract-review-pipeline

5
from vamseeachanta/workspace-hub

Execute a 4-role agent team (Planner/Architect/Reviewer/Integrator) pipeline for self-reviewing knowledge artifacts before delivery

metadata-only-wiki-sweep-workflow

5
from vamseeachanta/workspace-hub

Disciplined inventory process for cataloging documents by filename/path without content claims, using parent-centric grouping to prevent stub proliferation