prompts › Replant.Prompt
Run the replant routine: close out this repository's growth generation and spawn its successor. A replant is two halves of one operation — (a) compact this repo to a finished, seed-rebuildable state, and (b) plant the framework into a new repository for the next concept, carrying only the necessary context and files.
Read lifecycle.yml and the Concept Definition in seed.md first — everything is parameterized by them.
Preconditions¶
- Run the check-lifecycle skill. Proceed only if it reports phase
replant(generation_ticks ≥ replant_after_ticks), or the user passed--force. - Confirm push access and the ability to create repositories. In CI the ambient GitHub token is scoped to this repo only and cannot create repos — the PAT arrives as the
LIFECYCLE_PATenvironment variable; verify it is non-empty and run repo-creation/archival commands asGH_TOKEN="$LIFECYCLE_PAT" gh …. (Interactively: anyghcredential with repo-creation scope, or the GitHub MCPcreate_repositorytool.) If no such credential exists, stop and report — never half-replant.
Part A — Finalize this repo (compact in place)¶
- Settle structure — run the build-structure skill so all generated artifacts (indices, TIMELINE, INDEX, cross-refs) reflect final content.
- Compact the roadmap — collapse unfinished Now/Backlog items into Ideas with a note
deferred at replant; Done stays as the generation's record. - Sync the DNA — run the sync-seed skill; verify seed.md §7 Rebuild Procedure plus §1–6 genuinely suffice to reconstruct the repo (the necessary context IS the seed).
- Mark maturity — in
lifecycle.yml: setstate.status: matureand this repo's lineage entrystatus: mature. Add a short Status line at the top ofREADME.mdnoting the repo is mature and naming its successor (fill the link in after Part B). - Record — run the encode-seed prompt to append a
### Replant — <date>entry to seed.md §8 summarizing the generation (ticks run, content totals, successor subject). - Publish — via the publish-session skill (commit + push to
main).
Part B — Spawn the successor¶
- Derive the successor concept from
lifecycle.policy.succession.ruleapplied to the newest lineage member (e.g. "the year 2005" → "the year 2006"). If the user passed an explicit subject, use that instead. - Create the repository under the same owner, named by the successor's subject slug (e.g.
2006), public unless the lineage says otherwise. In CI:GH_TOKEN="$LIFECYCLE_PAT" gh repo create <owner>/<slug> --public. - Plant only the necessary context and files — nothing else:
.github/and.claude/layers, copied verbatim (they are concept-agnostic). Source them from the lineage's canonical driver (lineage[0])'s currentmain, not this repo's local tree, unless this repo is the driver: the driver is the deterministic forward-pollination source and holds the reconciled framework, whereas a non-first member may carry drift (per-member/learnembeddings that never flowed back). This stops a successor from inheriting one member's gaps. Fall back to this repo's copy only if the driver is unreachable, and note the fallback in the replant log..github/workflows/grow.ymlneeds the PAT to carryworkflowscope (classic) / Workflows: write (fine-grained) — if the push is rejected for that one file, plant everything else, record the omission in the replant log entry, and continue (the shepherd fallback in LIFECYCLE.md keeps the successor growing); never fail the replant over it;CLAUDE.mdand.gitignore;lifecycle.yml— samepolicy,state.status: growing,state.generation_ticks: 0, the full lineage carried forward with the new member appended (status: growing,spawned_from: <this repo>);- no content files, README knowledge table, ROADMAP, or seed inventories — the successor grows its own from genesis.
- Germinate — in the successor, run the genesis prompt with the successor subject (it writes the new seed.md, README, ROADMAP). If genesis cannot be run cross-repo from here, leave a bootstrap note: the successor's first scheduled
/growmust detect the missing seed and run/genesisitself (the grow workflow handles this). - Close the loop — fill the successor link into this repo's README Status line and
lifecycle.yml, amend/commit/push via publish-session. - Register with the driver — if this repo is not the lineage's first member, also append the successor (and this repo's
maturestatus) to the driver repo'slifecycle.ymllineage (clonelineage[0]viaGH_TOKEN="$LIFECYCLE_PAT", edit, pushchore: reconcile lineage registry). The driver's lineage is the registry its workflow's phase resolver reads — a stale registry delays distill/consolidate triggers.