Skip to content
Back to skills

Maxxfactory Plan More

ASecurity

/maxxfactory-plan for a project that already exists. Plans more work for a Linear project planned with /maxxfactory-plan or running under /maxxfactory-run. Three shapes, chosen with the user. One or a few tickets added to a current milestone, a QA pass added to a current milestone, or a new major milestone. Takes new scope from the user, or ideas parked with /maxxfactory-idea (promoted and closed as duplicates of their tickets on approval). The work is sized first and takes a lane (Express fo...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgoexpressrailsapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add iCarossio/maxxfactory --skill maxxfactory-plan-more --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Maxxfactory Plan More?

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

Security grade badge for Maxxfactory Plan More
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/icarossio-maxxfactory-plan-more/badge)](https://www.skillsdirectory.com/skills/icarossio-maxxfactory-plan-more)

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: maxxfactory-plan-more
description: /maxxfactory-plan for a project that already exists. Plans more work for a Linear project planned with /maxxfactory-plan or running under /maxxfactory-run. Three shapes, chosen with the user. One or a few tickets added to a current milestone, a QA pass added to a current milestone, or a new major milestone. Takes new scope from the user, or ideas parked with /maxxfactory-idea (promoted and closed as duplicates of their tickets on approval). The work is sized first and takes a lane (Express for a small change with no risk flag: no pre-mortem, no plan review, one Tier 1 implementer and two Tier 1 reviewers on the final diff; Standard: plan review only; Full: pre-mortem and plan review). Planning runs on a Tier 0 model and its reviews are Tier 0 of another vendor (Tier 1 when none is eligible). Tickets added to an existing milestone inherit its KPIs and pre-mortem; a new milestone is refused without measurable KPIs. Every finding is shown to the user, the accepted ones are folded in, and only after the user approves are the Linear issues (and milestone) and relations created, PLAN.md appended, the decision logged and the ETAs recomputed. Use when the user says "plan more", "add a ticket", "add tickets to the milestone", "add a QA pass", "add a milestone", "extend the project", "new phase", "promote idea ENG-40", "schedule these ideas", "/maxxfactory-plan-more [ENG-40,...]", or brings new scope for a project the autopilot already knows.
---

# Autopilot: plan more

**Caveman, always.** Your first action, before any other tool call: invoke the `caveman` skill (`/caveman`), and keep it for the whole session, including after a resume or a context compaction (invoke it again then). If it is not installed, follow its rules anyway: answer first, no ceremony, commands, paths, numbers and errors verbatim. Every subagent you start talks caveman too: `run-model` adds the rule to every model prompt by itself, and every Agent-tool (subagent) prompt you write starts with "Invoke the `caveman` skill first and answer terse." Persisted text stays plain prose: code, comments, docs, commits, Linear, `PLAN.md`.

This is `/maxxfactory-plan` for a project that already exists: the same planning care and the same approval, scoped to what is added and fitted into the plan that is already running.

You are the **planner**, and planning is Tier 0 work (2026-11-25): run this session on a Tier 0 model of the roster when the owner has one (`/model`; `bin/run-model pool plan_review` lists them first), and pass its roster key as `--planner`. Without a Tier 0 subscription a Tier 1 session plans, as before. A project exists: `PLAN.md` at the repo root, `.maxxfactory/state.json`, a Linear project, maybe tickets in flight under `/maxxfactory-run`. You add work to it. The user is present: ask what you need, show your work, and create nothing in Linear before the user approves.

## Which lane (triage before anything else)

The process is sized to the work before any question, review or ticket. Long before the intake is complete, read the code the change touches, write a first `spec.json` (tickets with `lines`, the `risk` list, see step 2) and run `bin/milestone add <spec> --dry-run`: it prints the lane, why, and the ETA of every lane the spec could take. Show those lines to the owner in your first answer, with your recommendation; the owner may raise the lane, or lower it with a reason (`"lane"`, `"lane_why"`: a decision).

| Lane | When (computed by `lib.spec_lane`, never by you) | What runs |
|---|---|---|
| **Express** | at most 600 non-mechanical changed lines in all, every ticket sized in `lines`, no risk flag | No pre-mortem, no plan review, no per-ticket plan review. The tickets of the spec become the ordered steps of one ticket: one worktree, one Tier 1 implementer (role `express_implement`), the full checks, then two Tier 1 reviewers of two vendors, neither the implementer's, reading the final diff in parallel (when only one such vendor has quota, that one reviews and nothing waits; `pipeline.express_min_reviews: 2` waits for both). Before proposing Express, look at `bin/run-model pool express_implement` and `express_review`: say so when fewer than three Tier 1 vendors are live. The owner still approves before anything is created. |
| **Direct** | for a whole spec, never computed: the owner asks for it, for a change that qualifies for Express (`"lane": "direct"` with `"lane_why"`: their words); refused under a risk flag. For one ticket of a bigger plan it is computed, see "Every ticket gets its lane" below | Most of the work stays with one Tier 1 model: it implements, one Tier 1 reviewer of another vendor reads the diff once, the same implementer applies that review's findings, and the fix is not reviewed again: the full checks decide. The fastest lane, and the one with the least review: propose it only for a change whose checks really cover it (say which checks), never for one a reviewer must judge by eye. |
| **Standard** | at most 5 tickets, no risk flag | Plan review only, then the pipeline. |
| **Full** | anything else, any risk flag, or a spec without `risk` | Pre-mortem and plan review, then the pipeline: everything below. |

- **Every ticket gets its lane, chosen for speed (enforced, `lib.ticket_lane`).** A Standard or Full plan keeps its reviews, and each of its tickets is then given the fastest lane that is safe for it: **direct** (no risk flag on the ticket, at most 150 non-mechanical lines and 3 touched paths, or mechanical), **express** (no risk flag, sized in `lines`, bigger than that), **full** (a risk flag on the ticket, or no `lines`). The dry run prints `Ticket lanes: N direct, N express, N full` and the reason for every ticket; show that list to the owner with the plan, it goes into the `PLAN.md` section and to the reviewers, and state.json `lanes` records it at approval. So plan for speed: size every ticket in `lines`, put each risk flag on the tickets it concerns (never only on the plan), and split a ticket when one small risky part keeps a large safe part on full. `"lane"` on a ticket overrides (heavier always; lighter with `"lane_why"`, never past a risk flag or a missing size). Direct and Express tickets are written and reviewed by Tier 1 models: before approval look at `bin/run-model pool express_implement` and `express_review`, and say so when the Tier 1 pool is too thin for the number of tickets (raise some to full rather than let them queue). The same holds for a ticket added later by you or by the owner: it comes through `bin/milestone add` with its `lines` and the plan's `risk`, so it gets its lane; `bin/milestone lanes` lists the queued tickets that could run faster and `--apply` records them.
- **Risk flags force Full, whatever the size**: `auth`, `secrets`, `data-migration`, `payments`, `irreversible` (an outward action that cannot be undone: DNS, a mail, a publish, deleted data). Declare them in `"risk"` (`[]` when none applies). The spec text is scanned too: a hit you did not declare counts, unless `"risk_cleared": {"<flag>": "<why it does not apply>"}` says why (the page stays behind the existing login and the login is not touched). The owner sees every clearance at approval; the plan reviewer treats a wrong one as a blocker.
- **Mechanical lines do not count.** Data files, deletions, renames, generated output and one-line repoints go in `mechanical_lines`; a ticket that is only that says `"mechanical": true` and has no size or `touches` cap. `lines` is what someone has to think about.
- You never implement, in any lane: an Express change is written by a drawn Tier 1 model and merged by the pipeline like any ticket (state.json `lanes`).
- Why (2026-11-25): a change of about 400 lines, mostly mechanical, was planned as a new milestone: 15 intake questions, a pre-mortem and a plan review, 9 tickets in 6 serial stages, then 13 after the reviews, for an ETA two days out. Sized first, it was one Express ticket.

**Express parts of a bigger plan.** A Standard or Full plan keeps its reviews, but it rarely needs the full process for every ticket. The same dry run lists the groups of its tickets that are safe for Express (`Express parts:` lines, from `lib.express_parts`): two or more tickets linked by `blocked_by`, of one milestone, each sized in `lines` or mechanical, none carrying a risk flag, at most 600 non-mechanical lines together, and whose merge creates no dependency cycle. It also says what every other ticket lacks (`not eligible: <slug> (risk flag: auth)`, `(no \`lines\`)`). So that the safe tickets can be told from the risky ones, put each declared risk on the tickets it concerns (`"risk": ["auth"]` on the ticket): a declared flag that no ticket carries gives no part at all. Show the parts to the owner with the ETA of both versions; with their agreement add `"express_parts": "auto"` to the spec (or a list of slug lists to choose them yourself, checked against the same rules). Each part then becomes one ticket `xp-<first slug>` whose steps are the merged tickets, run by a Tier 1 implementer and read by two Tier 1 reviewers, with no plan review of its own; the pre-mortem and the plan review of the plan see it and are told to object to a part that is not safe. Inside a part the steps run in order, so a ticket outside it that needed only the first step waits for the whole part: leave a step out of the part (explicit list) when something urgent hangs on it.

## Which shape

Decide it first, with the user when it is not obvious, and say which one you took:

| Shape | When | Spec | Treatment |
|---|---|---|---|
| **Tickets** | one or a few tickets that serve a milestone that exists (a missing piece, a fix, a follow-up) | `"into": "<milestone id>"` | plan review, approval |
| **QA pass** | checking what a milestone built: test suites, parity runs, a manual checklist turned into tickets | `"into": "<milestone id>"` | plan review, approval |
| **New milestone** | scope with its own outcome: it needs a KPI the current milestones do not have, or about 8 tickets and more | no `into` | KPIs, pre-mortem, plan review, approval |

**No ticket outside a milestone (enforced).** Whoever adds a ticket (the planner, the coordinator in a re-plan, the owner by hand in Linear), it joins the milestone it serves best: the one whose outcome (its KPIs in `PLAN.md`) it moves; on a tie, the one its blockers and files sit in (`bin/milestone file <ISSUE>` prints that ranking and changes nothing). When no milestone fits, a new one is planned for it (`/maxxfactory-plan-more`): never stretch a milestone to avoid that, and never leave the ticket loose. For tickets that exist already and are in no milestone (`bin/milestone unfiled --from-linear`), `bin/milestone file <ISSUE> --into <id> --by <who> --source <kind:ref>` files them without a new spec.

Tickets added to a milestone inherit its KPIs, rules, guardrails and pre-mortem; that is why they skip the KPI gate and the pre-mortem. If the added tickets need a KPI of their own, or the plan reviewer says they widen the milestone, it is a new milestone: do not stretch `into` to avoid the pre-mortem. The steps below apply to the three shapes; where they differ it is marked **(into)** or **(new milestone)**.

A QA pass is at least: one ticket that runs the suites or the checklist and reports (per-suite counts, report paths, no fixing), then fix tickets cut from its report. When the failure list is not known yet, plan the run ticket alone and come back with its report; a big list is split as in `references/fanout-qa.md` (one diagnosis per scope, one sub-ticket per root cause).

`bin/<x>` below means the `bin` directory next to this SKILL.md (`~/.claude/skills/maxxfactory-plan-more/bin/<x>` after `install.sh`, `${CLAUDE_PLUGIN_ROOT}/skills/maxxfactory-plan-more/bin/<x>` as a plugin). Everything goes through `bin/milestone add`; never hand-edit `state.json`, the milestone sections of `PLAN.md` or Linear for this.

| Script | Role |
|---|---|
| `bin/milestone` | `add <spec>` (a new milestone, or with `"into"` tickets of an existing one): validation, pre-mortem of the delta (new milestone only), plan review, approval stop, decision, Linear, `PLAN.md`, state, bars. Resumable. `list`, `recompute`, `sync` (dates, bars, and tidy), `tidy [--dry-run]`. |
| `bin/decision` | The sourced Decision log in `PLAN.md`. |
| `bin/eta` | One bar + ETA per milestone, then overall. `--from-mcp FILE` schedules from a Linear MCP `list_issues` snapshot (no `LINEAR_API_KEY`); a proposed milestone stays on the bars. |
| `bin/idea` | `list`, `promote ENG-1,... --id --name` (new milestone) or `--into <milestone id> --id <batch slug>` (tickets): turns parked ideas into this skill's spec skeleton. |
| `bin/bgrun` | Runs the 10-40 min review under a stall and timeout watchdog. |

Not this skill: a project with no `PLAN.md` / no Linear project yet (`/maxxfactory-plan`); grouping tickets that already exist into a milestone (`bin/milestone adopt`, see `/maxxfactory-run` setup); a change the running coordinator makes by itself during a re-plan, such as a split or a follow-up a review asked for (a decision under `/maxxfactory-run`, "Changes of plan"); an idea to keep for later without planning it (`/maxxfactory-idea`).

## Inputs

The work comes from one of:
- **New scope from the user** (a message, a doc, a spec): start at step 0.
- **Ideas parked with `/maxxfactory-idea`**: identifiers (`/maxxfactory-plan-more ENG-40,ENG-41`), titles ("the RBAC idea"), or "promote the ideas about X". Resolve them with `bin/idea list` (match titles there; ask only if two ideas match). Propose the ideas related to them (`related` column) and let the user decide which come along: an idea left out stays parked. Then, after step 0:
  ```
  bin/idea promote ENG-40,ENG-41 --id <milestone-slug> --name "<milestone name>"
  ```
  **(into)** `bin/idea promote ENG-40 --into <milestone id> --id <batch-slug>` instead: the same skeleton with `"into"`, without KPIs and plan to fill.
  It writes the skeleton `.maxxfactory/plan/milestones/<id>/spec.json`: the owner's words of every idea quoted in `description`, one placeholder ticket per idea (`from_idea`), KPIs, plan and ticket instructions marked `TODO`, and `from_ideas`. If a skeleton already exists for that id (an earlier, interrupted session), continue from it; `--force` only when the user wants to start over.
- **A skeleton or spec already on disk** (`.maxxfactory/plan/milestones/<id>/spec.json`): continue from it; `status.json` next to it says which steps of `bin/milestone add` already ran.

## 0. Context

1. Find the repo (`.maxxfactory/state.json`); read `PLAN.md` (goal, KPIs, architecture, rules, pre-mortem, Decision log, existing milestone sections), `bin/milestone list` and the head of `bin/eta`.
2. `bin/decision check`: pending decisions are synced first; a new milestone is not built on an unsynced plan. On macOS, `bin/spotlight check` (the folder that holds the repo and its `<repo>-wt`): exit 1 is handled as in `/maxxfactory-plan` section 0, before any model is started.
3. Is `/maxxfactory-run` active on this project (inflight tickets in state, running `run-model` processes)? Then the run keeps going on the current milestones while you work: never pause it, never touch its worktrees. `bin/milestone add` writes state under the lock; the coordinator picks up the new queue at its next re-plan.

## 1. Intake gate (nothing planned without expectations)

**Ask only what changes the plan.** Everything the project already answers is not a question: the deadline rule, the model tiers, where the work goes in Linear, whether pushing is allowed, the design bar and its references are read from `PLAN.md`, `.maxxfactory/state.json` and your memory of the owner's standing decisions, and shown as one line: `Assumed: <deadline>, <tiers>, <Linear placement>, <push and PR rule>, <design bar>` that the owner corrects if wrong. A question is asked only when two answers would produce two different plans; each comes with your default. Express and Standard: at most 5 questions. Why (2026-11-25): of 15 intake questions for a small change, 7 changed the plan; the other 8 had one possible answer in the project's own files.

Show the project's `Model tiers per phase` table from `PLAN.md` with the pools of today (`bin/run-model pool <role>`); the owner confirms it or changes it for this milestone (a change is a decision).

**(into)** Show `bin/milestone list` and confirm the milestone the tickets join. Ask only: what must exist or be checked when they are done, how it is verified (the acceptance and the `CHECKS:` of each ticket), which of the milestone's KPIs it serves, and whether it must land before something in flight. No KPI of its own: if the user needs one, it is a new milestone. Then go to step 2.

**(new milestone)** Ask for, and do not proceed without the following. For promoted ideas, the owner's words quoted in the skeleton are the starting point, not the answer: an idea says what, rarely how much or how it is measured. Restate each idea in one line, then ask only what it leaves open.
1. **What exists when the milestone is done**, for whom, why now, and what is out of scope.
2. **Milestone KPIs**: each with a target and a measurement (command, query, count, date). Push back on vague ones; if the user cannot name one, propose three and let them pick. No measurable KPI: stop here.
3. **Ordering**: must it wait for a current milestone, run beside it, or preempt it? A deadline?
4. **Design bar** (any milestone with a UI): the references the owner names or shows, saved under `.maxxfactory/plan/milestones/<id>/refs/`, and the look criteria, exactly as in `/maxxfactory-plan` step 0 item 5. A reference the owner gives is a success criterion: the milestone gets a design KPI (screenshots side by side with the references, owner sign-off) and every UI ticket gets look criteria and screenshot acceptance. Functional KPIs never stand in for it.

Keep the user's answers verbatim: they are the `user:"..."` source of the approval decision. A promoted idea whose answers turn it into something else than its words (narrowed, split, merged with another) is fine: say so in `why`, the idea's words stay quoted in `description`.

## 1b. Rehearse before any review (facts before opinions)

Before a model reviews anything, and before an Express approval, run the cheapest destructive version of the change yourself: a scratch worktree (`bin/pipeline wt <name> --detach`), the change applied in its bluntest form (delete the files, flip the flag, rename the module), then the project's full checks. Write what you ran and what happened into the spec: `"rehearsal": {"cmd": "...", "result": "24 test files fail (74 tests): <the list or the pattern>; the embed check needs a board of 2 rows"}`. `bin/milestone add` refuses to start a review without it, hands it to every reviewer as settled facts, and copies it into the ticket files. Nothing to rehearse (docs only, a repo with no checks yet): `{"skipped": "<why>"}`, logged in the decision. Why (2026-11-25): four of ten pre-mortem reasons on a small change were "the suite breaks", each at a probability of 0.94 or more; a five-minute run finds those, and the 30-minute review is then spent on what a run cannot find.

## 2. Draft the spec (you, Tier 0)

Read the code the milestone touches before writing (conventions, existing checks, the notes of the tickets it builds on, `docs/notes/*`). Then write `.maxxfactory/plan/milestones/<id>/spec.json` (format: `bin/milestone --help`):
- `id`, `name`, `description`, `why`, `kpis` (ids `<id>-K1`, ...).
- `risk`, `risk_cleared`, `rehearsal`, and per ticket `lines` (non-mechanical changed lines), `mechanical_lines`, `mechanical` (see "Which lane" and step 1b); `lane` and `lane_why` only for the owner's override.
- **(into)** `"into": "<existing milestone id>"`, and `id` is a new slug for this batch (`core-qa-2`, `auth-followups`; never the id of a milestone), `name` a short label for it ("QA pass 2"). No `kpis` (only a KPI this batch adds to the milestone, rare) and no `plan` unless the tickets need a rule of their own. The directory is still `.maxxfactory/plan/milestones/<id>/`.
- `plan`: markdown with the goal, the architecture decisions (with rejected alternatives), the rules and guardrails of this milestone, and a `Pre-mortem` table filled in step 4.
- `tickets`: as in `/maxxfactory-plan` step 6: precise instructions for a cheap implementer, `CHECKS:` line, `**Acceptance**`, guardrails, what not to touch, and `touches` (the files or modules it changes). One ticket is one commit. **Atomic tickets (enforced).** Splitting the work is a goal of planning, not a detail. Every ticket is one concern of at most about 400 changed lines, estimate S or M (never L: split it), and declares `touches`: the files or modules it changes (max 8). Two tickets that can run in parallel never change the same file outside a shared test or docs path (a directory named tests, test, __tests__ or docs at any depth, or a file named *.test.*, *.spec.*, test_*.py or *_test.py): give each hot file (an API router, the runtime, a shared store) one owner per stage, and chain the others with `blocked_by`. Prefer vertical slices that each ship a working, checked piece over a big ticket and a cleanup ticket. `bin/linear import` and `bin/milestone add` refuse a ticket list that breaks these rules, and the plan review checks them. Why: on 2026-11-12 an L ticket (22 files, +2051/-638 lines) took 18 rounds: each new reviewer found new bugs in the big diff, and parallel tickets editing the same files forced 5 merge rounds. Tickets of this milestone that change a file a ticket in flight also changes are blocked by that ticket. Include the unglamorous ones: integration with the existing milestones, real-data fixtures, docs merge, final QA against the milestone KPIs. **Fan-out: contract first, then one reference (enforced by the plan review).** When three or more tickets apply the same non-mechanical pattern (convert N pages, add N connectors, port N endpoints: each instance needs decisions), the plan has, before them: (1) a contract ticket that lands every shared type, prop and component signature the N tickets need, so none of them has to touch a shared file; (2) one reference ticket, implemented at Tier 1 (`inflight.<ISSUE>.pool` or a `Tier 1` note), that converts the first instance end to end (code, tests, screenshots, notes) and that every other ticket of the fan-out is blocked by and names as the pattern to copy. A ticket that would need a shared file changed stops with `STATUS: blocked` (the pipeline hands it to the coordinator at once). A mechanical fan-out (the same one-line repoint in N files, N files moved) is not a fan-out in this sense: it is one `"mechanical": true` ticket, with no contract and no reference ticket. **No shared ledger files.** A docs or test-helper file that every ticket of a fan-out edits (an inventory, a registry, a list of headings) is generated from the code or split into one file per ticket. Why: on 2026-11-20 ten parallel page conversions each hit the same missing prop, invented their own, and spent 1 to 3 extra review rounds each on it; every one of them also edited the same shared inventory file, which produced merge rounds and a red project branch.
- **Checks in two levels.** Give each ticket a `CHECKS_FAST:` line (or the project a state.json `checks_fast`): typecheck, lint and the tests of what it touches, a few minutes. The full suite (`CHECKS:`) runs once, after the review approves.
- `blocked_by`: real dependencies only, on new slugs or existing issues (`ENG-12`). An ordering-only dependency on a current milestone is not a blocker: say it in `plan`.
- Latest stable technologies for anything new, verified on this machine, as in `/maxxfactory-plan` step 1; existing dependencies keep their versions.

From promoted ideas: replace every `TODO` (the real add refuses one; `--dry-run` only warns). Each placeholder ticket becomes as many real tickets as the idea needs; every ticket that implements an idea keeps `"from_idea": "<its identifier>"`, and `from_ideas` stays as written, so the approval links each idea as a duplicate of its tickets and closes it. Integration, fixtures and QA tickets carry no `from_idea`. An idea the user drops during intake: remove it from `from_ideas` and from its tickets; it stays parked.

Then `bin/milestone add <spec> --dry-run`: fix every validation error, and show the user the stages and the ETA of every milestone with this one added. If it pushes an existing milestone's ETA, say so now.

**(into)** The dry run prints `valid: N tickets into milestone '<name>'`, and from then on the milestone's own bar reads "<name> (+N proposed)" until approval; `bin/milestone proposed --drop <batch id>` drops the draft.

From this first `--dry-run` on, the milestone is **proposed**: `bin/eta` and `bin/pipeline status` show it as its own bar, "<name> (proposed) ... (awaiting approval)", on a what-if schedule, so the owner sees it in every progress update without asking. The approval (`--approved`) turns it into a real milestone; a draft the owner drops is removed with `bin/milestone proposed --drop <id>`.

## 3. Adversarial review (plan review; pre-mortem for a new milestone)

```
bin/run-model usage --apply
bin/bgrun --name milestone-<id> --idle 1800 --timeout 5400 --watch .maxxfactory/plan/milestones/<id> -- bin/milestone add <spec> --planner <your roster key>
```
in the background (10-40 min; a few minutes for tickets added to a milestone), while you re-read the spec. The lane decides what it runs: Express nothing (it stops at once for the owner's approval), Standard the plan review, Full both. It runs:
- **(new milestone only)** a **pre-mortem** of the milestone by a Tier 0 model of another vendor (a Tier 1 one when no Tier 0 is eligible, logged) (the milestone's adversarial review), two passes (the reasons, then an adversarial self-review against the repo), with the existing plan as context, so it raises how this milestone fails and how it breaks what is already planned; into `.maxxfactory/plan/milestones/<id>/premortem.md`;
- a **plan review** by a Tier 0 model of another vendor, else Tier 1 (`POOL=plan_review`): fit with the existing architecture, tickets and KPIs, real and complete dependencies, measurable KPIs; into `.../plan-review.md`. **(into)** The reviewer is told the tickets inherit the milestone's KPIs and guardrails, and checks that they serve it without widening it, that their dependencies on existing tickets are real, and that each is atomic. The pre-mortem is skipped by the runtime and the reason is logged in the decision.

Exit 3 is the expected stop (needs approval). Exit 2: a review gave nothing usable; wait for a reset (`bin/run-model wait premortem`), and tell the user when it lasts. Reviewers are told the lane, the size and the rehearsal, and give the reasons that are real, however few: no prompt asks for a number of them (until 2026-11-25 pass 2 said "at most 10" and every list came back with exactly 10). Neither your own vendor nor a Tier 2 model is ever a substitute (the old `--allow-mid` is gone). `--review-k 2` adds a second plan reviewer of a distinct vendor only when the user asks.

## 4. Show everything to the user, then fold

**(into)** There is no pre-mortem table: paste the plan-review findings verbatim with your verdict on each, fold the accepted ones into the tickets (instructions, `CHECKS:`, `blocked_by`, a split), and show the ticket table and the ETAs from a new `--dry-run`. A finding that says the tickets widen the milestone is settled with the user: narrow them, or restart as a new milestone.

Paste the pre-mortem table and the plan-review findings verbatim (every reason, probability, impact, early signal, guardrail; every finding), plus your verdict on each: accept, reject with evidence, or merge. Do not soften them.

**Reviews are fenced.** Every reason and finding carries a `class`: `kpi-blocking` (a KPI or an acceptance criterion fails without it), `hardening` or `out-of-scope`. Only `kpi-blocking` ones are folded in; the others are shown to the owner and parked with `/maxxfactory-idea` (`bin/idea`), never added to the milestone. If you think a reviewer mis-classed one, say so with evidence and let the owner decide. Each accepted one gets the cheapest guardrail that works, in this order: a `CHECKS:` command, an acceptance criterion or a rule on a ticket that exists, and a new ticket only when none of those can do it. A fold that adds tickets is shown as such ("+2 tickets, ETA +3 h") before the owner approves.

For each accepted reason or finding, give it a home in the spec: a milestone KPI, a `CHECKS:` command, a dedicated ticket with `blocked_by`, or a rule in `plan`. Fill the `Pre-mortem` table of `plan` (reason, verdict, guardrail, where it lives; rejected ones with their evidence): it lands in `PLAN.md` with the milestone, so every change made because of the review keeps its source.

If a reason changes something **outside** the milestone (an existing ticket's scope or blockers, an existing KPI, a shared rule), that is a decision on the current plan: after approval, `bin/decision add --source premortem:<id>/PM-<n>` (or `plan-review:milestone-<id> m<n>`), apply it under `/maxxfactory-run`'s "Changes of plan", then `bin/milestone recompute` and `sync --decision D-<n>`.

Show the updated spec (KPIs, ticket table, pre-mortem table, ETAs from a new `--dry-run`). Iterate until the user approves.

**Re-review after a material fold.** A rerun of `bin/milestone add <spec>` without `--approved` detects the changed spec and runs the pre-mortem and the plan review again. Do it when the fold added scope, tickets or architecture. When it only added the guardrails the reviewers asked for, the user may approve directly.

## 4b. Human prerequisites gate (both shapes)

Same rule as `/maxxfactory-plan` (step 1 and step 5b): walk every ticket of the spec and list what only a human can provide (an account, an API key or token, an OAuth app, a paid plan, DNS, an access grant, real data, a test user, a sign-off) that the project's `Human prerequisites` table of `PLAN.md` does not already hold as `provided`; a key is missing only after `bin/access env NAME` says so (it reads the project's `.env` too). Ask for all of it in one message, with `! pbcopyenv <NAME>` for every secret (never pasted in the chat), run each row's verify command yourself, and add the rows to the table. A row the owner cannot provide today is `deferred`: fallback, tickets held back (`blocked_by`, scheduled last), logged with `bin/decision add --source user:"<their words>"`. Access before clicks, as in `/maxxfactory-plan` step 1: start from `bin/access scan`, ask for a login, an MCP connection or a scoped token rather than a manual step, and keep route `human` for what no tool can do. Every new outward action (a deploy, a DNS change, a mail, a new check command) is a row of `Pre-authorized actions`, anticipated with `bin/permit suggest` and the walk of the new tickets, recorded with `bin/permit add`; the owner consents to the list, `bin/permit apply` adds it to the user settings and `bin/permit check` must pass. Do not run step 5 while a row is `missing`. Nothing needed: say so in one line and go on. A project with no table yet (planned before this rule): create it now for the whole remaining queue, not only for the added tickets.

## 5. Apply (only after approval)

```
bin/milestone add <spec> --approved --by <owner> --source user:"<their approval, verbatim>"
```
**(into)** It logs the decision ("milestone <name>: N tickets added"), creates the issues in the existing Linear milestone with their `blocks` relations, adds a subsection to that milestone's section of `PLAN.md`, appends the issues to the milestone in `state.json` (recorded under its `additions`) and recomputes and syncs as below. No Linear milestone is created.

At approval it also writes the ticket files `.maxxfactory/tickets/<ISSUE>.md` from the spec (instructions, `Touches`, the rehearsal, the common rules). After a plan review their digest is recorded (state.json `plan_reviewed`), and `bin/review` skips the per-ticket plan review of a file that did not change: the same text is never reviewed twice. Write the ticket instructions in the spec as the implementer will read them.

**(new milestone)** It logs the decision, creates the Linear milestone, issues and `blocks` relations in the existing project (checkpointed: a rerun never duplicates), appends the milestone section to `PLAN.md`, updates `state.json` (milestones, blockers, sizes) and recomputes `queue`, `stages`, `critical_path`, then syncs the target dates and bars to Linear and marks the decision synced. After any failure, rerun the same command: it resumes after the last completed step.

When this milestone was first created as its own Linear project and then folded into the existing one, that project is left empty. Keep its creation checkpoint: `project_created: true` and `created_project_id` set to that project (see `/maxxfactory-plan`, folding). Sync runs tidy, which archives that created project and not the destination. Tidy also deletes an empty milestone that is not in state.json, except the "Ideas (unscheduled)" milestone and any milestone that still has an issue, including one whose only issues are archived.

A step is skipped only with `--skip-premortem "<why>"` / `--skip-review "<why>"`, with the user's consent; the reason is written into the decision.

Then: apply the outside-the-milestone decisions from step 4, run `bin/decision check` (must pass), and if `PLAN.md` is tracked on the project branch commit it alone (`docs(plan): milestone <name>`, or `docs(plan): <name>: <batch label>` for added tickets).

## 6. Handoff

Tell the user in a few lines: the shape you took, the Linear milestone link, the ideas closed into it (with their new tickets), the number of tickets, the top three failure reasons and their guardrails (a new milestone) or the findings folded in (added tickets), the `bin/eta` lines (one bar per milestone), and what happens next: the running `/maxxfactory-run` picks the tickets up at its next re-plan; if none is running, `/maxxfactory-run` starts them.

## Rules

- No human prerequisite left open at apply time (step 4b): `provided` and verified, or `deferred` with a fallback and a decision.

- You plan; you never implement. Reading the repo is allowed, editing code is not.
- Reviewers are read-only and never of your own vendor or model (`--planner` excludes them).
- Keep every reviewer's full output on disk under `.maxxfactory/plan/milestones/<id>/` and never paraphrase a reason into something weaker.
- No decision unsourced: the milestone itself, every change it forces on the existing plan, and every skipped step have a Decision log row synced to Linear.
- Budget, by lane: Express no planning review; Standard one plan review; Full one pre-mortem (two passes) and one plan review; plus one rerun after a material fold. Never pay for extra credits: wait for a reset.

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.