Skip to content
Back to skills

Plan Pipeline

ASecurity

Claude Code only. Run the whole planning chain for a triaged issue or proposal (grilling, anchor grounding, optional design review, optional plan-implementation, optional handoff review, final-plan-check) and end with one operator approval. External reviews use delegate-plan-review --verify. Trigger on "/plan-pipeline", "plan this properly", "take it through the plan chain", "full plan pass". Plan mode is optional. Do NOT use to critique an existing plan (final-plan-check), to verify reviewer...

  • 2 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 25, 2026
ai-agentsgobash

Works with

  • claude code

Security analysis

A100/100

Scanned November 21, 2026

npx -y skills add gtapps/skills --skill plan-pipeline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plan Pipeline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plan Pipeline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gtapps-plan-pipeline/badge)](https://www.skillsdirectory.com/skills/gtapps-plan-pipeline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: plan-pipeline
description: Claude Code only. Run the whole planning chain for a triaged issue or proposal (grilling, anchor grounding, optional design review, optional plan-implementation, optional handoff review, final-plan-check) and end with one operator approval. External reviews use delegate-plan-review --verify. Trigger on "/plan-pipeline", "plan this properly", "take it through the plan chain", "full plan pass". Plan mode is optional. Do NOT use to critique an existing plan (final-plan-check), to verify reviewer findings (review-findings), or to execute a plan (delegate-ship, worktree-ship).
compatibility: Requires Claude Code as the host; Codex, Grok, and Copilot may be delegated executors.
---

# plan-pipeline

**One approval per feature. The operator's gate questions are pre-answered inside the plan, not asked after it.** This skill sequences the planning skills itself and asks for approval once.

## Procedure

**1. Print the goal, name the plan.** Print this line first so the operator can paste it:

    /goal The plan for <ISSUE> is ready for a single operator approval: the plan file is named <ISSUE>-<slug>.md; it contains a BEFORE/AFTER delta diagram, a worth-it ledger, a who-is-affected section, a where-it-lives decision, a `## Live gates` block and an answer to every declared planning lens; every premise about behavior outside the code cites its evidence or is listed as unverified; when it went through plan-implementation, lint_plan.sh exits 0 on it; any delegate-plan-review --verify verdicts and the final-plan-check verdict are quoted, with an accept or reject recorded for each final-check item and skipped external reviews recorded; no approval was requested before those verdicts. Or this session has halted for the operator: its last message is a grilling question or a rejected-plan follow-up, with no operator reply yet. Or stop after 20 turns.

The goal evaluator is binary: a halt satisfies the goal and clears it, which keeps it from pushing past a question that belongs to the operator. So print this goal line again when grilling ends, before step 4, and at the end of every step 9 wait, so the operator can re-pin it.

Run in the session's current mode; do not require or enter plan mode. Outside plan mode, write the plan directly to `~/.claude/plans/<ISSUE>-<slug>.md`.

If plan mode is already active, the harness owns the plan file path (the plan-mode reminder names it, under `~/.claude/plans/`) and resolves it from an in-session slug, so that file is never renamed while plan mode is active. Give it the issue name with a link instead:

    ln -s <harness plan path> ~/.claude/plans/<ISSUE>-<slug>.md

`<ISSUE>` is the issue number or proposal id as the operator gave it; `<slug>` is three to five words from the title. When a link was used, the `wrap` skill turns it into the real name once plan mode is over.

**2. Grill.** Invoke the `grilling` skill as-is. It asks one question at a time; that is its contract, leave it.

**3. Your own questions.** Anything still open after grilling that the codebase cannot answer: batch 2 to 4 independent forks per AskUserQuestion, at most 5 calls in the whole pipeline. Explore the code before asking; most "questions" are lookups. A rejected question that carries text is an answer: process it, do not re-ask.

**4. Ground the anchors.** Launch a Plan agent to ground every anchor the plan needs (file plus symbol, with `path:line` citations). Its findings come back in its reply and go straight into the plan file's anchors. Grounding happens before the implementation plan is written, never after.

Save the grounded design in the plan file, including its reasoning and alternatives, before the next step.

**5. Optional design review.** Ask one AskUserQuestion: "Review the design before preparing the implementation handoff? You can include --model and --effort in your answer." with options codex, grok, copilot, claude, and Skip.

At either review checkpoint, accept a harness alone or with optional flags in the free-text answer, for example `codex --model <model-name> --effort high`. Forward only the flags the operator supplied to `delegate-plan-review`; let that skill resolve omitted options from its existing configuration and harness defaults. Treat the two review choices independently, without carrying flags from the earlier review into the later one or asking a separate question just for flags.

- A harness: invoke `delegate-plan-review <harness> [--model <m>] [--effort <e>] --verify <plan-path>` on the grounded design. Apply verified corrections through that skill and resolve material design choices with the operator before conversion. Record the verdict under `## Review trail`, labeled design review.
- Skip: record the design review as skipped and continue the existing pipeline.

**6. Implementation handoff, when needed.** Invoke `plan-implementation` when the executor needs a self-contained handoff of settled decisions. It rewrites the plan file in place with per-step contracts, verify commands, the scope fence, and the before/after delta diagrams. Skip conversion when the existing plan and available context already suffice, regardless of executor model or tier. Preserve the review trail and any plan sections required by the chosen execution workflow.

**7. Reviews.** Ask one AskUserQuestion: "External plan review before the final check? You can include --model and --effort in your answer." with the harness as the options (codex, grok, copilot, claude) plus "no". This reviews the current plan's execution contracts and remains optional even when a design review ran. Handle options as in step 5.
- A harness: invoke `delegate-plan-review <harness> [--model <m>] [--effort <e>] --verify <plan-path>` (its findings are verified before they touch the plan), then `final-plan-check`.
- No: invoke `final-plan-check` only.

`final-plan-check` always runs. Quote each completed review's verdict in the plan file under `## Review trail`, distinguishing the design review, the later plan review, and the final check. Record skipped external reviews without inventing verdicts.

Run `final-plan-check` in a fresh context, so it reads the plan the way an executor will: from the file alone. Make one Agent call and wait for its completion notification:

    Agent(subagent_type: "general-purpose",
          description: "final-plan-check on <plan file name>",
          prompt: "Your cwd is <repo root>. Invoke the final-plan-check skill with the Skill tool
                   on the plan at <absolute plan path>. That file is your only source for the ask
                   and the decisions. Do not edit anything. Reply with the skill's output verbatim.")

Then decide each item it returned. Mark every Cut / defer, Reconsider and Possibly missing item `accept` or `reject` with one line of reason, and record the list under `## Review trail`. Apply the accepted items to the plan file. Bring to the operator only the rejected items, and any accepted item that changes a decision the operator already made; ask before applying those.

**8. Mandatory blocks.** Before presenting the plan for approval, check the plan file has all of:
- Worth-it ledger (what we gain, what we lose, the honest net).
- Who is affected (released versus unreleased surfaces, and the users, callers or deployments downstream).
- Where it lives (the project's own boundary, as its instructions define it).
- Premises about behavior outside the code: each cites its evidence (a probe result, a document, a test run) or is marked "unverified".
- `## Live gates`, with `None.` when there are none.
- An answer to every declared planning lens. The fresh-context check reports any it found unanswered.

A missing block is added now, from what the session already established; do not request approval without it, and do not pad a block with guesses. An unverified premise stays labeled unverified. When the plan went through plan-implementation, run `bash <plan-implementation-skill-dir>/scripts/lint_plan.sh <plan-path>` and fix the plan until it exits 0. Never ask the operator about a lint failure.

**9. One operator approval.** If plan mode is active, call ExitPlanMode once. Otherwise, present the plan and its path, ask for approval, and wait for the operator's reply. Then:
- Approved: go to step 10.
- Rejected with text: the text is an answer. Process it, edit the plan file, print what changed, and wait for the operator. Never request approval a second time without an operator reply in between. While a question is open, do not rewrite the plan beyond that answer.
- Never type a slash command into a rejection. This skill invokes the next skill itself; the rejection channel is for the operator's words only.
- Any edit to the plan after approval: apply it, rerun the lint (when step 8 ran it) and the fresh-context `final-plan-check` from step 7, and report both results before step 10. Do not ask first.

**10. On approval, print the next move** and stop:

    /delegate-ship <executor> ~/.claude/plans/<ISSUE>-<slug>.md

or, when Claude implements it itself:

    /worktree-ship

## Living gauntlet

The planning questions live in the declared `## Planning lenses` sections that step 7 of `final-plan-check` reads, and the `wrap` skill keeps them current. Do not duplicate or hardcode those questions here.

## Don't

- Don't call `grill-me`; it is operator-only. `grilling` is what it runs.
- Don't rename or move the harness plan file while plan mode is active.
- Don't skip `final-plan-check` because codex reviewed the plan; they check different things.
- Don't request approval before the review verdicts are in the plan file.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.