alivecontext/alive/demo
Claude Code and agent skill by alivecontext/alive
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Generate a believable, lived-in ALIVE world from a free-text persona description (custom path) or a deterministic sandbox preset. Routes the create/list/activate/deactivate/delete/status surface and orchestrates the 5-stage subagent generation pipeline.
Install
npx vskill@latest install alivecontext/alive/demoSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as alivecontext/alive/demo.
alive:demo -- generative demo-world skill
This is the router. Route on $ARGUMENTS[0] to a sibling .md file (when present) or to the interactive create flow. Six subcommands + an interactive default:
$ARGUMENTS[0] | Routes to | Status | |
|---|---|---|---|
_empty_ / create | Interactive: preset vs. custom; create.md for the custom path | wired | |
list | list.md | wired | |
activate <ref> | activate.md | wired | |
deactivate | deactivate.md | wired | |
delete <ref> | delete.md | wired | |
status | status.md | wired | |
reset | rebuilds demo-state.json (recovery from schema mismatch) | wired | |
spike-test | retired (fn-2-2zz.1 spike) | removed below |
All five non-create sibling .md files (list.md, activate.md, deactivate.md, delete.md, status.md) invoke their CLI subcommand under $ALIVE_PLUGIN_ROOT/bin/alive demo <name> and print the CLI's rendered_block field verbatim. create.md is the custom-path orchestrator: it walks Stage 0 -> Stage 1 hand-off -> Stage 2/3/4/5 driver chain end-to-end. The interactive default below routes the human into either the preset path or create.md based on their pick.
The router emits quote blocks INLINE as markdown — matches the convention in plugins/alive/skills/world/SKILL.md and plugins/alive/skills/save/SKILL.md. There is no Python render_block bridge: the LLM emits its own markdown; only the CLI uses lib.format_block (per the codex review which rejected forcing LLM formatting from Python).
User choices use AskUserQuestion, never inline 1. / 2. / 3. answer text. Numbered options inside a quote block are advisory; the actual decision flows through the question tool.
State + paths (canonical)
| Concern | Path | Override? | |
|---|---|---|---|
| Demo state file | ~/.config/alive/demo-state.json | NO. Tests set HOME to tmp_path. | |
| Demo state lock | ~/.config/alive/.demo-state.lock | NO. | |
| World-root pointer | ~/.config/alive/world-root | NO — owned by _world_root_io.write_world_root_file (#64). | |
| Demo worlds + partials | ~/.alive-demos/ | YES via $ALIVE_DEMO_BASE_DIR. |
$ALIVE_DEMO_BASE_DIR is the only env override the demo skill reads. It controls where promoted worlds (<base>/wld_<ulid>/) and in-flight partials (<base>/wld_<ulid>.partial/) live. The state file and the world-root pointer stay canonical so the existing system-wide readers (_common.py, alive-common.sh, world/SKILL.md) keep working unchanged.
Router — interactive default (/alive:demo with no args)
When invoked with no subcommand, render this block inline and dispatch via AskUserQuestion:
Then:
AskUserQuestionwith optionsPreset (sandbox-testing),Custom (persona-driven),Cancel.- On
Preset-> the "Preset path (sandbox testing)" section below; the squirrel callsalive demo preset run --preset realistic-seededafter the activation pre-check confirmation. - On
Custom-> jump intocreate.md(sibling of this file).create.mdowns the persona intake, partial-dir mint, Stage 0 driver loop, Stage 1 hand-off toanchor_confirm.md, and the Stage 2/3/4/5 driver chain end-to-end. - On
Cancel-> render the cancellation block and stop:
When routing to create.md, render this one-line cue inline before jumping in so the human sees the routing decision:
Subcommand routing
The CLI is the only path that touches demo-state.json and the world-root pointer. Each subcommand below shells out to $ALIVE_PLUGIN_ROOT/bin/alive demo <name> and prints the CLI's rendered_block field verbatim. Sibling .md files carry the per-subcommand UX detail; SKILL.md keeps the per-subcommand entry points short.
list
Routes to list.md. Prints a 6-column bordered-block table of every promoted demo world plus partial generations. Active world is flagged with *active in the STATUS column.
See list.md for envelope shape and error handling.
activate <ref>
Routes to activate.md. Resolves <ref> via 3-step fallback (exact label, ULID prefix, ambiguous-match envelope), runs the activation pre-check, and (with --confirm) runs the tail of the Stage 5 transaction (build-log refresh + step 10 demo-state staging + step 11 world-root commit) against the existing world.
<ref> is the lowercase derived label (e.g. alex-boring-angel-investor) OR a ULID prefix of at least 3 characters (e.g. 01j5hk7y or wld_01j5hk7y).
The squirrel drives the picker on error.code == "ambiguous_ref": render the picker block from the envelope, dispatch AskUserQuestion, re-run with the picked ULID.
The squirrel drives confirmation on error.code == "needs_confirmation": render the warning block, dispatch AskUserQuestion (Activate anyway, Cancel), re-run with --confirm.
See activate.md for full flow and resolution rules.
deactivate
Routes to deactivate.md. Restores the world-root pointer to the cached previous_world_root value, then clears active_world and previous_world_root in demo-state.json.
Three result branches: ok (pointer flipped, restart Claude Code), no_demo_active (nothing to do), and no_previous_world (cold demo; user must create another or set the pointer manually).
See deactivate.md for the cold-demo case and atomicity contract.
delete <ref>
Routes to delete.md. Resolves <ref> (same rules as activate), refuses on the currently-active world, and (with --confirm) calls shutil.rmtree. Without --confirm, the CLI returns error.code == "needs_confirmation" carrying an irreversibility surface so the squirrel dispatches AskUserQuestion before the destructive call.
Active worlds raise error.code == "refused_active"; the user must /alive:demo deactivate first.
See delete.md for the irreversibility contract.
status
Routes to status.md. Prints a 5-7 line bordered block summarising the active demo world, the cached previous world-root, and the next-step hint.
The CLI runs state.load_state() which executes the world-root self-heal -- demo-state converges to whatever ~/.config/alive/world-root actually points at. The status envelope is the canonical "what does the system think is active?" surface.
See status.md for output shapes and the self-heal contract.
reset
This subcommand is router-owned, not a CLI handler. When the human runs /alive:demo reset:
- Read
~/.config/alive/world-rootvia_world_root_io.read_world_root_file()to learn the live pointer (if any). - Atomically write a fresh
demo-state.jsonmatchingstate.default_state(). If the pointer names a directory previously promoted by the demo skill (recognizable by<world>/.alive/_demo-build-log.md), populateactive_worldfrom the build log. Otherwise leave it null. - Render this block:
Reset is the documented escape hatch when alive demo status raises schema_version_mismatch — the CLI's hint points here.
Schema-version mismatch UX
When alive demo status (or any other CLI handler) returns:
surface this exactly:
Then AskUserQuestion with Run reset now, Show file path, Cancel. On Run reset now → invoke the reset flow above. On Show file path → render the canonical state path inline.
Dispatch primitives (consumed by fn-2-2zz.4 → .9)
The following primitives lived in this file's fn-2-2zz.1 stub and survive into the full router. fn-2-2zz.4–.9 stage bodies reference them by name; do not rename without bumping every consumer.
Both primitives use the runtime's subagent dispatch tool (named Task in the runtime tool surface, "the Agent tool" in skill prose throughout this codebase — plugins/alive/skills/session-history/heavy-revive.md:9, plugins/alive/skills/system-cleanup/SKILL.md:63, etc.). The parameter that selects subagent class is subagent_type:
"general-purpose"— write-capable; used for stages 0, 2, 3, 4 (every stage that emits JSON to disk)."Explore"— read-only; not used by demo stages but documented for future audits.
Prompt-rendering wrapper (mandatory)
Per plugins/alive/rules/squirrels.md:335-340, brief injection is manual and the wrapper is non-negotiable. Before every dispatch:
- Read
plugins/alive/templates/subagent-brief.mdonce per session and cache the content asbrief_content. - Substitute
{WORLD_ROOT}(active world root, or partial dir if no live world) and{PLUGIN_ROOT}(resolved plugin root via_common.resolve_plugin_root). - Wrap every per-stage prompt body as the literal string:
This exact CONTEXT: / TASK: wrapper is what every dispatched subagent receives. Do not improvise: subagents that don't see the brief in this shape will not know walnut/bundle/tasks.py conventions and will make mistakes.
Primitive A — single-subagent dispatch (stages 0, 3, 4)
Render a single Task tool call with:
subagent_type: "general-purpose"description: one-line label, e.g."alive-demo stage 0 spine"prompt: the wrapper above, where{actual_task}is the stage-specific body. Stage 0's body lives atplugins/alive/templates/demo/stage_0_spine.v1.md(created by fn-2-2zz.4). All bodies use{PARTIAL_DIR}for the partial directory (<$ALIVE_DEMO_BASE_DIR>/wld_<ulid>.partial/) and substitute it before dispatch.
The dispatching squirrel reads the on-disk file the subagent writes; the one-line return is acknowledgement only, never the artifact.
Slug rules (enforced by stage emissions and re-validated by validate.py in fn-2-2zz.10): ^[a-z0-9]+(-[a-z0-9]+)*$. No leading hyphen, no double hyphens, no unicode, no path separators.
Primitive B — parallel-subagent dispatch (stage 2)
In a single assistant turn, emit one Task tool call per Stage 2 descriptor returned by stages/stage2.py:prepare_dispatches. The descriptor list spans every spine entity: walnut_roster[*] walnuts, people_roster[*] persons, AND bundle_distribution[*] bundles (bundles use a compound <walnut_slug>__<bundle_slug> directory key so the same bundle name under two walnuts never collides). Each call:
subagent_type: "general-purpose"description: the descriptor'sdescriptionfield, e.g."alive-demo stage 2 walnut marcos-clothings","alive-demo stage 2 person john-park", or"alive-demo stage 2 bundle marcos-clothings__seed-round".prompt: the descriptor'spromptfield — the per-entity body wrapped in the canonicalCONTEXT:/TASK:envelope. The body has{{entity_type}},{{entity_data}},{{anchor_moment_refs}}, and{{output_dir}}already substituted; the parent does not modify the prompt.
The output for each subagent is a directory at:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/alive/skills/demo/SKILL.md
Popularity
- Repository stars
- 96
- Repository forks
- 5
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 May 2026, 6 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alivecontext/alive/demo)