بنقرة واحدة
auto-plan
Turn an approved spec into ordered slices. Use when framing is accepted and planning begins.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Turn an approved spec into ordered slices. Use when framing is accepted and planning begins.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Optional product go/no-go on a framed spec. Use when product direction needs review before planning.
Optional engineering go/no-go on a plan. Use when execution safety needs review before implementation.
Implement approved plan slices. Use as the execute-stage entry point.
Bound and de-risk a request into SPEC.md. Use when the objective is clear but scope needs constraining.
Sharpen a vague idea into a bounded objective. Use before framing when scope is undefined.
Build project truth from repo evidence. Use when steering is missing or stale.
| name | auto-plan |
| description | Turn an approved spec into ordered slices. Use when framing is accepted and planning begins. |
| metadata | {"stage":"plan"} |
Planning controller. Turns approved framing into ordered slices with verification commands.
First action: run node .agent/.automaton/scripts/get-context.mjs from the project root.
auto-plan builds the smallest plan that makes execution safe while preserving the approved scope. It does not write code or broaden scope beyond the approved spec.
Loading discipline: hold SPEC.md, review state, and source files needed for accurate slices. Read wider project files when understanding existing code informs slice boundaries or verification commands. Read .agent/.automaton/references/CONTEXT-BUDGET.md when wider reads threaten context pressure. When locating code or tracing a flow would otherwise pull wide reads into context, you may dispatch the read-only automaton-librarian for a one-shot lookup (see .agent/.automaton/references/LIBRARIAN.md); it returns evidence, you keep the decision.
Artifact discipline: PLAN.md is the reloadable execution index, not the whole implementation dossier. Keep PLAN.md compact enough to re-read. For large coherent work, summarize slices in PLAN.md and link optional detail files under .agent/work/<change>/slices/. Split only for independent outcomes, not because one coherent plan has many requirements.
Before finalizing PLAN.md:
references/quality.md when the plan leaves execution decisions to the implementer.Load the canonical SPEC.md, linked spec detail that carries normative requirements, relevant DESIGN.md, and source files needed to choose slice boundaries, dependencies, and verification commands. Do not ignore linked spec/*.md files when they contain requirement IDs, gap IDs, invariants, audit questions, migration checkpoints, coverage targets, or acceptance detail.
If product_review exists in current.json, read ## Review: Product in SPEC.md. Address each approved_with_risks risk in the plan. Stop and recommend auto-frame for descoped or needs_clarification.
If the engineering approach is complex or risky, recommend auto-eng-review before execution.
If SPEC.md contains content fields or produces writing, articles, briefs, decks, newsletters, documentation, or proposals, read references/content-planning.md; carry forward channel, source policy, factual risk, and format where they affect execution or verification.
If SPEC.md names requirement IDs, gap IDs, invariants, audit questions, migration checkpoints, or coverage targets, preserve them in PLAN.md and attach them to satisfying slices. Do not collapse traceable requirements into untraceable prose.
Break work into ordered execution units, not topic buckets. Each slice must be:
Read references/slice-examples.md when uncertain whether a slice is well-designed.
For content slices, also name the artifact target, allowed sources, factual-risk gate, and format constraint so auto-execute does not invent missing context.
Before writing slices, choose the execution topology: serial order, subagent routes, checkpoints, and parallel-safe groups. Continuation is the default after a verified slice; mark a checkpoint only when the agent must pause for human verification, a human decision, or a human action. Parallel-safe means dependencies are independent and write sets are disjoint; default to none. For multi-slice plans, make clear that execution should continue through all approved slices; execution windows are context-management batches, not planned stopping points.
Frame each slice with required fields first, then only the overrides the slice needs:
### Slice N: [Name]
Required:
**Objective:** [one sentence]
**Acceptance criteria:**
- [observable criterion]
**Verification:** [command or check that proves the slice is done]
Defaults, state only when overriding:
**Execution:** direct | subagent recommended | subagent required (default: direct)
**Depends on:** none
**Checkpoint after:** none | human-verify | decision | human-action (default: none)
**Checkpoint reason:** none
Include when useful:
**Touches:** [files, directories, or subsystems]
**Produces:** [specific artifact or state change]
**Detail:** [linked `slices/slice-NNN.md` file]
Rules:
Execution means direct. Use subagent recommended for broad, cross-subsystem, interface, schema, or review-risk work. Use subagent required only for user-requested multi-agent execution or security-critical, production-data, or irreversible-state changes.Depends on means none.Checkpoint after means none, so the next slice may start after verification passes.human-verify, decision, human-action) are defined once in .agent/.automaton/references/ARTIFACT-LIFECYCLE.md (Checkpoint Semantics). Assign a checkpoint only when its definition holds; default to none.slices/slice-NNN.md; split only for independent outcomes.Write the plan to .agent/work/<change>/PLAN.md.
Core sections (always present):
none or the slice groups.Conditional sections appear only when their trigger applies; omit or mark "n/a" otherwise:
Apply the Artifact Signal Discipline rules from .agent/.automaton/references/ARTIFACT-LIFECYCLE.md while writing: no mirror sections, index over transcript, append-replace not stack. Replace prior ## Review: sections on re-run for the same change. Do not stack reviews.
Write .agent/work/<change>/DESIGN.md only for non-trivial architecture or new patterns. Keep it under 200 lines; skip it when the approach is obvious from SPEC.
Do NOT write PLAN.md if:
product_review is descoped or needs_clarification.If any of these are true, recommend auto-frame and stop.
Run node .agent/.automaton/scripts/sync-status.mjs --canonical-plan ".agent/work/<change>/PLAN.md" --stage plan from the project root. Add --canonical-design ".agent/work/<change>/DESIGN.md" when DESIGN.md was written.
PLAN.md: written to .agent/work/<change>/PLAN.mdDESIGN.md: written to .agent/work/<change>/DESIGN.md (if needed).agent/.automaton/state/current.json: records canonical_design (when written), canonical_plan, and stage: plan through sync-status.mjsNext: auto-eng-review (optional review) or Next: auto-execute.