Propose 2-3 mutually-exclusive high-level approaches via outline-planner + outline-reviewer, then get user sign-off. Stage 2 of the three-stage planning pipeline. Outputs <first_session_id>-outline.md.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Make Outline Plan?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nirecom-make-outline-plan)
---
name: make-outline-plan
description: Propose 2-3 mutually-exclusive high-level approaches via outline-planner + outline-reviewer, then get user sign-off. Stage 2 of the three-stage planning pipeline. Outputs <first_session_id>-outline.md.
model: sonnet
user-invocable: false
---
<!-- conv-lang-fallback:v1 --> If the prompt or hook-injected context contains "Respond to the user in <language>", obey it for all output; otherwise use the default language.
Propose high-level approaches and get user sign-off before detailed planning.
Skip this stage via `<<WORKFLOW_OUTLINE_NOT_NEEDED: {reason}>>` when a single obvious approach exists. To skip both this stage AND detail, emit `WORKFLOW_OUTLINE_NOT_NEEDED` and `WORKFLOW_DETAIL_NOT_NEEDED` in sequence.
When `outline-planner` returns `SINGLE_APPROACH_JUSTIFIED`, skip the review/sign-off loop and proceed directly to `make-detail-plan`.
## Inputs
- `<INTENT_MD>` — output of `clarify-intent` (cross-session carry-in allowed)
- `<PLANS_DIR>/<session-id>-survey-{code,history}.md` — optional; contain `## Verified Claims`
- All sentinels in MOP-0 are emitted by the orchestrator (Bash tool), never by a subagent.
- `<OUTLINE_MD>` and `<INTENT_MD>` both carry first_session_id, shared by every generation of the session chain.
## Procedure
Apply `skills/_shared/resolve-plans-dir.md` once; substitute the resolved absolute path for every `<PLANS_DIR>` below. Reuse across steps.
Run `node "$AGENTS_MAIN_ROOT/bin/plan-artifact-path" --step clarify_intent` and `... --step outline` once each; substitute the outputs for every `<INTENT_MD>` / `$INTENT_MD` and `<OUTLINE_MD>` / `$OUTLINE_MD` below. When the outline call fails, write no outline: halt and surface its stderr.
MOP-0. **Surface premise contradictions** from Research artifacts.
MOP-0a. Determine session-id from `CLAUDE_CODE_SESSION_ID` env (MOP-1 has not run yet — this lookup precedes intent-file resolution).
- `state.steps.research.status === "skipped"` → skip to MOP-0d.
- One/both `<session-id>-survey-{code,history}.md` missing AND research not skipped → warn once in chat ("Research artifacts incomplete — proceeding without full premise verification") and continue to MOP-0d. Do not block.
MOP-0b. Read `## Verified Claims` from each existing artifact; collect items with `verdict: contradicted`.
MOP-0c. Any contradicted claims → display the contradicted claim list in chat; instruct the user: "The survey has found premise contradictions. Revise intent.md to reflect the correct premises and re-run /clarify-intent."; abort the skill (do not proceed further).
MOP-0d. Emit `<<WORKFLOW_MARK_STEP_research_complete>>` to mark Research complete (aggregating survey-code and survey-history, which no longer emit it individually; deep-research's emit, if any, is idempotent).
MOP-1. Locate the intent file:
a. `<INTENT_MD>` exists → use it (it already follows a resumed session's session-upstream).
b. Otherwise list `<PLANS_DIR>/*-intent.md`. Exactly one → inform the user and use it; multiple → `AskUserQuestion` (`metadata.source=make-outline-plan.intent-select`) to select one; none → abort with "clarify-intent must run before make-outline-plan. Run /clarify-intent first."
c. After (b) only, rerun the outline CLI with `--session <the chosen file's session-id>` and use its output as `<OUTLINE_MD>`. After (a), keep `<OUTLINE_MD>`: it already names the session chain's first_session_id.
d. Judge the outline skip: follow `skills/_shared/jev-two-stage-judge.md` with point=`outline-skip` stage=`outline`; on `SKIP=true` (outline already settled skipped by finalize) skip to Completion.
MOP-2. **Select the planner model, then delegate.** Run `bash -c 'node "$AGENTS_MAIN_ROOT/bin/workflow/read-complexity-evaluation" --session "$SESSION_ID" --stage outline'`. If line 1 is not `NONE`, use its `model=<alias>` and `signals=<csv-or-none>` lines directly.
If `NONE`: follow `skills/_shared/jev-two-stage-judge.md` with point=`complexity-judge` stage=`outline`; use its `model=` and `SIGNALS_CSV` — never judge the level inline.
Emit (Claude text, not Bash): `Model selected: **<model= alias>** (signals: [ids from the `signals=` line, or "none"])`.
Delegate to **outline-planner** (Agent tool, `subagent_type: outline-planner`, `model: <model= from MOP-2>`). Pass full contents of `<INTENT_MD>` and task context.
Read `rules/architecture-principles.md` (on-demand-only, never auto-injected) and pass its contents to every outline-planner launch as design constraints.
Every outline-planner prompt carries the canonical line of the `rules/shell-commands.md` Subagent Dispatch Prompts section.
Every outline-planner launch — here, the MOP-3 revise re-run, the MOP-4 re-prompt, the MOP-4a re-prompt, the MOP-5 CONTINUE re-delegate, and the MOP-8 revise re-run — passes the same `model: <model= from MOP-2>`.
Note: the Stop-guard silence during dispatch is automatic (PostToolUse marks the step `in_progress`). Do not emit `NEXT_STEP_PAUSE`.
MOP-3. If outline-planner returns `SINGLE_APPROACH_JUSTIFIED: <reason>` (optionally `DELIVERY_PLAN: <plan>` on next line):
- Parse both lines. If `DELIVERY_PLAN:` is absent (pre-change planner output), use the fallback text "(not provided — planner pre-dates this convention)".
- Inform user that only one approach is viable (citing the reason) and that the skill is proceeding directly to `/make-detail-plan`.
- Write a minimal planner output containing the H1, the approved single approach text, a `## Delivery plan` section from the `DELIVERY_PLAN:` text (or fallback), and `## Accepted Tradeoffs (outline)` from the `ACCEPTED_TRADEOFFS:` text (the empty marker of `skills/_shared/no-upstream-copy.md` when the line is absent) to `<OUTLINE_MD>`. Do NOT write `## Issues` — the helper carries it forward next. Do NOT write `## Class members` — its SSOT is intent.md (#2228).
- Assemble the final outline.md by invoking the shared helper (same call as the normal path in MOP-4a):
Run `bash "$AGENTS_MAIN_ROOT/skills/_shared/assemble-mandatory.sh" --source-kind intent "$INTENT_MD" "$OUTLINE_MD" "$OUTLINE_MD"` (Bash tool).
- Apply the full `skills/_shared/confirm-plan.md` protocol (CPA-1+CPA-2+CPA-3) using `CONFIRM_OUTLINE`. Even single viable approach may need artifact revision — the CPA-3 steps (presentation, CONFIRM echo on the turn-end block or else in the next turn, next response) cover that. Revise → ask what to change, re-run outline-planner, loop back to MOP-2.
- Proceed to the **Completion** sequence below.
MOP-4. If outline-planner returns `NEEDS_RESEARCH`: run `/deep-research`, then re-prompt outline-planner with findings. Research budget: 2 rounds.
MOP-4a. **Mandatory sections carry-forward (helper handles assembly — do not instruct planner to author them):**
After outline-planner returns its draft (initial or revised round), the orchestrator carries `## Issues` verbatim from intent.md into the final outline.md via the shared helper:
Run `bash "$AGENTS_MAIN_ROOT/skills/_shared/assemble-mandatory.sh" --source-kind intent "$INTENT_MD" "$OUTLINE_MD" "$OUTLINE_MD"` (Bash tool).
- The helper injects `## Issues` from intent.md, strips any planner-authored `## Issues`, legacy or other-stage Accepted Tradeoffs and `## Class members` residue plus the planner's H1, and checks the draft holds exactly one `## Accepted Tradeoffs (outline)`.
- `## Class members` is NOT carried into outline.md — its SSOT is intent.md (#2228).
- Helper exit non-zero → re-prompt outline-planner once and re-assemble; second failure → halt the loop.
- Do NOT instruct the planner to author `## Issues` — the helper strips planner-authored copies before the final write.
Constraint: outline-planner writes only the tradeoffs the outline newly accepts in `## Accepted Tradeoffs (outline)` (the empty marker when none); intent's tradeoffs stay in intent.md (`skills/_shared/no-upstream-copy.md`).
`EXTENSIONS_USED` counter initialized to 0 at loop start.
MOP-5. **Codex review loop.** Follows `skills/_shared/codex-review-loop.md`
(parameter values for the outline stage: FORMAT=outline-plan, CAP=1,
MAX_EXTENSIONS=1, PLANNER_AGENT=outline-planner,
REVIEWER_AGENT=outline-reviewer,
ACCEPTED_TRADEOFFS_FILE=the merged file `bin/resolve-accepted-tradeoffs-file` builds from the `intent` chain,
NON_APPROVED_VERDICT=MISSING_ALTERNATIVE).
For each review round, invoke `"$AGENTS_MAIN_ROOT/skills/make-outline-plan/scripts/run-codex-review-loop.sh"`
(Bash tool) with env vars exported: `AGENTS_MAIN_ROOT`, `SESSION_ID`, `PLANS_DIR`, `EXTENSIONS_USED` (required);
`CTX_SURVEY_CODE`, `CTX_SURVEY_HISTORY` (optional — passed as
`--context` when the file exists and is non-empty). Exit codes pass through unchanged.
`CTX_CONCERNS_LOG` is auto-generated by the wrapper from the ledger (`concern-ledger render-concerns-log`, format `outline-plan`) and auto-exported when non-empty — do not set it manually (#2185).
Outline-stage caller paths:
- RAW_FILE: `<PLANS_DIR>/<session-id>-outline-codex-round-<N>-raw.md`
- CONCERNS_LOG: `<PLANS_DIR>/<session-id>-outline-concerns-log.md`
- DEBUG_LOG: `<PLANS_DIR>/<session-id>-outline-debug.log`
Exit code → action mapping: see the SSOT table in
`skills/_shared/codex-review-loop.md` (#exit-code--orchestrator-action-ssot).
**Exit 4 must NOT trigger `outline-reviewer` fallback** — halt and surface
stderr to the user. Only exit 3 falls back silently.
**exit 1 (CONTINUE):** save stdout to `<PLANS_DIR>/<session-id>-outline-codex-round-<N>-raw.md` (`<N>` from `<CONTROL_DIR>/outline-plan-round-number.txt`, `<CONTROL_DIR>` = `node "$AGENTS_MAIN_ROOT/bin/workflow-control-dir" --session <session-id>`); re-delegate to planner and loop back to MOP-5. A `MISSING_ALTERNATIVE` carrying a `[upstream-inconsistency …]` concern is not a missing alternative: pause per [`upstream-inconsistency-pause.md`](../_shared/codex-review-loop/upstream-inconsistency-pause.md) first.
**Exit 7 (FINALIZE_FAILED)** — `<CONTROL_DIR>/outline-plan-unresolved-concerns.json` could not be written: halt, surface the `## Concern Ledger: FINALIZE-FAILED` line, and emit no completion sentinel. After any ESCALATE, confirm the artifact with `bash "$AGENTS_MAIN_ROOT/bin/concern-ledger" check-finalized --plans-dir <PLANS_DIR> --session-id <session-id> --format outline-plan` before the sentinel.
MOP-6. **Cap outcome dispatch.**
Apply only when the per-stage wrapper script (MOP-5) returns a non-zero non-one exit code:
**Exit 5 (AUTO_EXTEND):** save stdout to the exit 1 `-raw.md` (`<N>` from `<CONTROL_DIR>/outline-plan-round-number.txt`), increment `EXTENSIONS_USED` by 1, then loop back to MOP-5 (no user confirmation). The wrapper derives `EXTENSIONS_USED` from the review record and only cross-checks the exported value.
**exit 2 (ESCALATE):** Run `bash "$AGENTS_MAIN_ROOT/bin/review-loop-summarize-concerns" --budget-remaining 0 --ledger <CONTROL_DIR>/outline-plan-concern-ledger-cap-snapshot.txt --raw <RAW_FILE>` and present the output to the user. Then stop the loop and re-run `/clarify-intent` (outline-specific override: `adjust` path means scope needs revision).
**exit 6 (HIGH_UNRESOLVED):** run `bash "$AGENTS_MAIN_ROOT/bin/review-loop-summarize-concerns" --budget-remaining 0 --ledger <CONTROL_DIR>/outline-plan-concern-ledger.txt --raw <RAW_FILE> --label outline-plan`; confirm artifact via `bash "$AGENTS_MAIN_ROOT/bin/concern-ledger" check-finalized --plans-dir <PLANS_DIR> --session-id <session-id> --format outline-plan`; stop loop, then re-run `/clarify-intent` or accept the residual HIGH per exit-codes.md "Escalation by format". Exit 9 on a later re-run → return to that accept step.
`<RAW_FILE>` for terminal exits (2 or 6) = `<PLANS_DIR>/<session-id>-outline-codex-round-<N>-raw.md`; `<N>` = value from `<CONTROL_DIR>/outline-plan-last-round.txt`. Exit 8: AskUserQuestion (`metadata.source=codex-review-loop.unchanged-rerun`) per exit-codes.md "Escalation by format".
MOP-7. On `APPROVED`:
Retrieve `<CONV_LANG>` from the stdout of the standalone call `bash "$AGENTS_MAIN_ROOT/bin/get-config-var" CONV_LANG`.
Compare the Adopted approach with the Considered alternatives and decide the recommended one (highest trade-off score across cost, risk, existing-code consistency, and delivery timeline). Record it as `CHOSEN_APPROACH=<approach-name>`.
Emit this prose rationale summary as the turn-final assistant message, not as mid-turn text between tool calls — the VS Code extension renders only turn-final assistant text. Write the summary in `CONV_LANG` (or English if unset). For each approach, write one paragraph (rationale + trade-offs + delivery plan). End with: `Recommended approach: <name> — <one-line reason>`.
Do NOT write this prose to outline.md. MOP-8 handles the file write.
List "Accepted upstream inconsistencies and user course corrections" in this summary per `upstream-inconsistency-pause.md`; a re-run after B revises the existing outline as a diff per that procedure.
MOP-8. Write the chosen approach to `<OUTLINE_MD>` per the Output Schema. Always execute confirm-plan CPA-1+CPA-2 (artifact write + plan-link line).
When `CHOSEN_APPROACH` differs from the Adopted approach, only the orchestrator rewrites (never re-prompt the planner): itemize it as the new Adopted approach, move the former one to Considered alternatives, rewrite `## Accepted Tradeoffs (outline)`, then rerun assemble-mandatory (MOP-4a) and pass its check.
Gate check: apply skills/_shared/confirm-plan.md CPA-3 — run next-step --gate and follow GATE_ACTION.
- **`GATE_ACTION=audit-wait` / `audit-block`:** follow CPA-3.
- **`GATE_ACTION=proceed`:** emit one-paragraph prose summary and proceed without `<<WORKFLOW_CONFIRM_OUTLINE>>`.
- **`GATE_ACTION=ask`:** follow the three confirm-plan CPA-3 steps — the plan presentation turn, then `echo "<<WORKFLOW_CONFIRM_OUTLINE: {one-line summary}>>"` alone — as the next message when the turn end is blocked, otherwise in the next turn; after Allow, co-emit the `make-detail-plan` Skill invocation. Revise → ask what to change, re-run outline-planner, loop back to MOP-7.
## Output Schema (`<OUTLINE_MD>`)
The file (per `PLAN_LANG` in `.env`; see `.env.example`) contains:
- **Title** (H1): "Confirmed Approach" + `<session-id>`
- **Mandatory sections** (assembled by `skills/_shared/assemble-mandatory.sh` from intent.md, not authored by planner):
- `## Issues` — always present (empty placeholder allowed for Path C)
- (`## Class members` is NOT carried into outline.md — its SSOT is intent.md, #2228)
- **Planner-authored body sections** (drafted by outline-planner; the orchestrator writes them at MOP-3 / MOP-8):
- **Adopted approach**: itemized per `agents/outline-planner/output-format.md`, never one paragraph
- **Delivery plan**: triage rationale / execution order / split policy for the adopted approach
- **Considered alternatives (rejected)**: one entry per rejected approach with reason
- **Reused existing utilities / building blocks**: list
- **Confirmed non-goals**: only those added during this stage (intent's stay in intent.md)
- **Accepted Tradeoffs (outline)**: only the tradeoffs this stage newly accepts; the empty marker when none
## Rules
- **Chat output during the discussion loop** is restricted to:
(a) one status line per round (`Round N: APPROVED` / `Round N: NEEDS_REVISION (proceeding)`)
(b) the plan-link line — see `skills/_shared/confirm-plan.md` CPA-2.
(c) the MOP-7 turn-final prose rationale summary
(d) the concern summary block rendered by the MOP-6 ESCALATE/HIGH_UNRESOLVED path when exit 2 or exit 6 fires — exactly one block per cap-reach event.
No per-round natural-language summaries (the cap-reach summary in (d) is the sole exception), no codex/reviewer transcripts, no "falling back to Claude reviewer" notices in chat. Diagnostics go to `<session-id>-outline-debug.log` only.
- Write every orchestrator-authored outline.md body — both the MOP-3 minimal single-approach file and the MOP-8 chosen-approach file — in the PLAN_LANG language (see .env.example) from the first draft; do not draft in English and re-translate.
- outline-planner and outline-reviewer never see implementation details — direction-level only.
- `next-step --advance --step detail` is NOT called here; only `make-detail-plan` completes `detail`. This skill completes `outline` via MOP-C1's `next-step --advance --step outline --complete --next` call.
- **Confirmation dialogs per run**: OFF mode fires none. ON mode fires exactly one: the MOP-8 `<<WORKFLOW_CONFIRM_OUTLINE>>` sentinel. The MOP-7 AskUserQuestion and the multi-approach passthrough bypass option are abolished (#1522); the orchestrator auto-selects the recommended approach. `CONFIRM_OUTLINE=off` is the sole remaining MOP-8 bypass path. The AskUserQuestion that confirms accepting a `[glossary-drift ` concern unfixed does not count toward this (exception below; `skills/_shared/glossary-drift-check.md`). <!-- askuser-none -->
- **`AskUserQuestion` is for choices, not content.** `question` is one sentence; option `description` ≤80 chars. Approach bodies/rationales/trade-offs go in the MOP-7 prose preamble — never inside dialog fields. The dialog UI is narrow; long content there is unreadable. <!-- askuser-none -->
- Never pause for user confirmation during intermediate steps (codex/reviewer revision rounds in MOP-6, between-step summaries). Update files silently; inform the user with plain text only. Exception: pause mid-round only to confirm via AskUserQuestion (`metadata.source=glossary-drift.accept-unfixed`) whether to accept a `[glossary-drift ` concern unfixed, per `skills/_shared/glossary-drift-check.md`. Second exception: a `[upstream-inconsistency ` concern pauses the round (`metadata.source=codex-review-loop.upstream-inconsistency`) for the user's decision, per `skills/_shared/codex-review-loop/upstream-inconsistency-pause.md`.
- Report observations via /supervisor-report (trigger conditions: rules/supervisor-reporting.md).
## Completion
MOP-C1. Judge the detail skip BEFORE completing outline: follow `skills/_shared/jev-two-stage-judge.md` with point=`detail-skip` stage=`outline` (finalize settles `detail`, not `outline`).
Then, as a separate Bash call, complete `outline` and consume its `ACTION=` block: `node "$AGENTS_MAIN_ROOT/bin/workflow/next-step" --advance --step outline --complete --next`; follow the returned `ACTION`/`NEXT_SKILL`/`NEXT_HINT` per `CLAUDE.md`.