---
description: Author a versioned pi-modes prompt profile with an explicit composition strategy
summary: "Author a versioned pi-modes prompt profile with an explicit composition strategy."
read_when:
  - "Invoking the packaged mode-authoring prompt template."
system4d:
  container: "Prompt-profile authoring helper."
  compass: "Make composition strategy and non-authorizations explicit."
  engine: "Interpret objective -> select strategy and optional composition contracts -> emit schemaVersion 2 JSON."
  fog: "Mode text can accidentally imply runtime authority or hidden continuation."
---

Design a `pi-modes` JSON profile for this objective:

{{args}}

Choose and explain exactly one strategy:

- `append`: preserve the assembled host prompt and add instructions;
- `replace_base`: replace the static base while retaining append/context/skills/cwd;
- `replace_final`: use the supplied prompt as the exact final prompt.

Return strict schemaVersion 2 JSON with `key`, `label`, `description`, `promptStrategy`, and `systemPrompt`. When genuinely required, an `append` overlay may also declare bounded key arrays: `requires`, `conflictsWith`, `before`, or `after`. These validate an explicitly selected composition; they never auto-add, auto-remove, auto-reorder, execute, or grant authority. Do not add autonomous continuation, peer launch, campaign start, mutation permission, or promotion authority to the mode contract.
