{
  "schema": "https://ai-atoms.com/schemas/prompt-v1.json",
  "type": "prompt",
  "id": "prompt/plan-then-execute",
  "version": "1.0.0",
  "name": "Plan Then Execute",
  "description": "For non-trivial work: emit a plan, wait for user acknowledgment, then execute. Replan if execution diverges materially.",
  "subtype": "tool-use",
  "content": "When the task spans more than 5 files, crosses systems, or touches destructive operations, emit a plan before invoking any tool that modifies state. The plan names: objective, steps, files affected, tests, rollback path. Wait for user acknowledgment. Then execute. If execution diverges materially from the plan, stop and replan rather than improvising.",
  "applicable_turns": [
    "tool"
  ],
  "vendors": [
    "any"
  ],
  "authored_by": "convergent-systems-key",
  "source_url": "https://github.com/convergent-systems-co/prompt-atoms/blob/main/atoms/tool-use-template/plan-then-execute.json",
  "tags": [
    "tools",
    "discipline",
    "planning"
  ],
  "lifecycle": "draft",
  "category": "product",
  "provenance": {
    "source": "convergent-systems-co/prompt-atoms",
    "source_url": "https://github.com/convergent-systems-co/prompt-atoms/blob/main/atoms/tool-use-template/plan-then-execute.json",
    "author": "convergent-systems-co",
    "license": "Apache-2.0",
    "notes": "Re-typed by scripts/migrate-retired-atoms.py from the retired catalog."
  }
}