--- name: zstack-help description: Guides users through zstack setup, /zstack, and picking the skill, playbook, or principle for a task. Type /zstack-help with a question. disable-model-invocation: true --- # Zstack help Answer the user's question about zstack, hand them a prompt they can send, and link the file the answer came from. For a help question, don't start the work. The user asked how, and a zstack run spends real tokens, so let them send the prompt. A message that asks for work, such as "use zstack to fix this bug", is not a help question. Read [`zstack`](../zstack/SKILL.md), do the work under it, and mention once that each new task starts with `/zstack`. This file maps questions to the skills and guide pages that hold the answers. Those files own the details. Read the file you route to before you quote it, and trust it when it disagrees with this map. The links here point into this tree, so give the user the local path when they cannot open a link. ## Find out what they need Infer the need from the message and the conversation. A named situation, such as "which skill reviews a PR?", goes straight to its section. If the need is still unclear, ask one multiple-choice question with these options, then answer only the section they pick: - Get set up - Start a task with `/zstack` - Pick a skill for a situation - Fix a run that went wrong - Make zstack my own Check the state that changes the answer, and mention it only when it does: - No `zstack-models.md` at the repository root means `/setup-zstack` hasn't recorded overrides, so every role inherits the parent session's model. - No `verify-*` skill or other app harness in the project means agents have no scripted way to drive the app. Mention `/create-verification-skill` when the question is about proving a change works. - No formal verification skill in the project means no property is checked past what tests reach. Mention `/create-formal-verification-skill` when the question is about a race, an invariant, or another case tests rarely hit. When one exists and the code it covers changed after the commit it records as last in sync, mention `/maintain-formal-verification-skill` if the question touches that code. When the model rule is missing and it matters, ask whether the user wants to set model overrides now. It matters when the user is new, the question is about setup or cost, or the answer depends on which models run. Ask at most once per chat. If the need is also unclear, ask both questions together. Offer two choices: - Now: give them `/setup-zstack` to type, and answer their question too. - Later: answer their question, and add one line saying every role inherits the parent model until they run `/setup-zstack`. ## Get set up 1. This directory is the source. Pi implements. The T3 session reviews. 2. Run [`/setup-zstack`](../setup-zstack/SKILL.md). It confirms the `inherit-parent` defaults, records any overrides, and writes `zstack-models.md` at the repository root. Skills read it when they run. Then it offers once each to generate a verification skill and a formal verification skill for the project, unless the project already has one. 3. Start a real task with `/zstack`, a goal, and a check that can pass or fail. Installing changes nothing until the user invokes a skill. Only `/setup-zstack` loads from the user's words. The [README](../../README.md) and [guide page 1](../../docs/guide/01-setup.md) have the details. Offer to word their first prompt with them, per [`references/prompting.md`](references/prompting.md). If cost is the worry, say where the tokens go and how to spend fewer. zstack spends extra tokens on subagents and panels. Every role inherits the parent model by default, and `auto` means the same thing, so a Pi run uses Pi's session default. Rerun `/setup-zstack` only when the user wants explicit overrides. A shorter panel override runs fewer subagents, one for each entry. Save `/zstack` for work that needs rigor. This directory is the source. Pi runs implementation on Pi's default model. The T3 session reviews the work: Grok, Codex, Claude Code, OpenCode, or another T3 provider. Other tools can read the skills, because they use the Agent Skills format. Workflow skills such as `/zstack`, `/how`, and `/teach` spawn subagents, and every role defaults to `inherit-parent`. ## Start a task with `/zstack` `/zstack` matches the task to a playbook, copies the playbook's steps into the todo list, and runs the other skills as the steps need them. A good prompt states the goal and how to tell it's done. It doesn't list skills, because a hand-written sequence tends to drop or reorder steps the playbook would keep. Read [`references/prompting.md`](references/prompting.md) before you help word one. [Guide page 2](../../docs/guide/02-zstack.md) has examples. Start each task with `/zstack`. It stays in scope for that task. Mid-chat, "new task" makes it match a fresh playbook. `/zstack` already uses `zstack-agent` for the subagents its playbook steps spawn. To get the same style from a subagent of your own, spawn it with `subagent_type: "zstack-agent"`. ## Pick a skill The default answer is `/zstack`, which runs most of the others when its steps need them. Name a skill directly when the user wants more or less of something than the playbook gives. Read the skill before you recommend it, and give one example prompt. | The user wants to | Skill | |---|---| | Do any non-trivial task with rigor | [`/zstack`](../zstack/SKILL.md) | | Check that the agent understood their goal and the problem before it starts | [`/in-your-own-words`](../in-your-own-words/SKILL.md) | | Get a prompt rewritten deeper, not bigger, before sending it: what a top professional would add, their raw material and methods, and an outside check. It returns the prompt and doesn't do the task | [`/sharpen`](../sharpen/SKILL.md) | | Know how code works now, or where new code should live | [`/how`](../how/SKILL.md) | | Know why code is shaped this way, or where a number came from | [`/why`](../why/SKILL.md) | | Understand a change or subsystem, explained plainly | [`/teach`](../teach/SKILL.md) | | Catch up on their own recent work on a topic | [`/recall`](../recall/SKILL.md) | | Catch up on what changed in this chat since their last message, in plain words and small visuals, with every item waiting on them listed and decidable from the reply alone | [`/ketchup`](../ketchup/SKILL.md) | | Catch up like `/ketchup`, in a short subtitled video of slides, with the waiting calls as text under it | [`/ketchup-video`](../ketchup-video/SKILL.md) | | Know what a small diff could break outside itself | [`/blast-radius`](../blast-radius/SKILL.md) | | Settle types and module shape before code that crosses a function boundary | [`/architect`](../architect/SKILL.md) | | Get several attempts at one brief, merged into the best one | [`/arena`](../arena/SKILL.md) | | Run parallel checks over slices, or race workers, in separate worktrees | [`/swarm`](../swarm/SKILL.md) | | Have adversaries try to break a diff with proven findings | [`/interrogate`](../interrogate/SKILL.md) | | Fix a bug test-first when a cheap local test exists | [`/tdd`](../tdd/SKILL.md) | | Apply TypeScript rules to `.ts` or `.tsx` work | [`/typescript-best-practices`](../typescript-best-practices/SKILL.md) | | Strip comments before review, using a reviewer that didn't write them | [`/no-comments`](../no-comments/SKILL.md) | | Clean AI tells out of prose | [`/unslop`](../unslop/SKILL.md) | | Write docs, an RFC, a README, a PR description, or a commit message to a standard | [`/technical-writing`](../technical-writing/SKILL.md) | | Hear the last reply again in plain words | [`/bro`](../bro/SKILL.md) | | Give agents a scripted way to drive the app and prove behavior | [`/create-verification-skill`](../create-verification-skill/SKILL.md) | | Bring a verification skill and its feature map back in line with the app | [`/maintain-verification-skill`](../maintain-verification-skill/SKILL.md) | | Formally verify a race, invariant, or other property that tests rarely reach | [`/create-formal-verification-skill`](../create-formal-verification-skill/SKILL.md) | | Bring a formal verification back in line after the code it covers changed, and learn whether a failure is drift or a bug | [`/maintain-formal-verification-skill`](../maintain-formal-verification-skill/SKILL.md) | | Show a PM or designer what the user sees as a chart checked by a TLA+ model, with the shortest path to each state that breaks a rule | [`/statechart`](../statechart/SKILL.md) | | Vet a performance number before reporting or acting on it | [`/benchmark-checklist`](../benchmark-checklist/SKILL.md) | | Run a large or cross-cutting change, or one to review after stepping away | [`/figure-it-out`](../figure-it-out/SKILL.md) | | Keep a decision log during a run, and review it afterward | [`/show-me-your-work`](../show-me-your-work/SKILL.md) | | Set model overrides for roles | [`/setup-zstack`](../setup-zstack/SKILL.md) | | Turn their own working habits into a personal mode skill | [`/automate-me`](../automate-me/SKILL.md) | | Turn what a finished task taught into skill edits | [`/reflect`](../reflect/SKILL.md) | | Stop agents from repeating the same mistakes in this repo | [`/correct`](../correct/SKILL.md) | | Build a page whose buttons wake a Grok Bot over a webhook | [`/make-bot-ui`](../make-bot-ui/SKILL.md) | | Find their way around zstack | `/zstack-help` | If a skill directory next to this one is missing from the table, read its frontmatter and route by its description. The `principle-*` directories are covered under principles below. Close calls: - `/how` explains what the code does. `/why` explains the reasons. `/teach` runs one or both and explains the result plainly. - `/arena` gives every worker the same brief and merges the best parts. `/swarm` splits work into slices or a race and returns one report. - `/interrogate` reviews the diff. `/blast-radius` looks for breakage outside the diff and proves the one fact that makes the change safe. - `/recall` rebuilds context across recent chats. `/ketchup` covers only this chat since the user's last message. Resuming one specific chat or branch is the Session pickup playbook. - `/figure-it-out` designs one rigorous run. The Autonomous run playbook drives one task to a finish condition. Not in zstack: - not supported. Cursor is not a supported harness. - zstack has no `/orchestrate` skill. If the slash menu shows `/orchestrate`, another plugin provides it. ## Playbooks and principles Playbooks are step lists inside `/zstack`, not skills, so they have no slash command. Inside `/zstack`, describing the task picks one, and these phrases name one directly: - "babysit this pr" or "check on pr 123" runs Babysit. It drives the PR to merge-ready and stops there. It doesn't merge unless the user asks to merge, land, or ship. - "land the stack" runs Shipping. - "take over this branch" runs Session pickup. - "pause safely" runs Pause safely. - "full autopilot on this queue" runs Autopilot-full. "autopilot, don't merge" runs Autopilot-stack. - "run the eval playbook" runs Eval. Playbook phrases select a playbook only inside `/zstack`. The Playbooks section of [`zstack`](../zstack/SKILL.md) lists every playbook. [Guide page 6](../../docs/guide/06-verify-and-ship.md) covers opening, babysitting, and landing a PR. zstack has no planning skill. For work that spans phases or stacked PRs, asking `/zstack` for a plan runs the [Multi-phase plan playbook](../zstack/playbooks/multi-phase-plan.md), which writes the plan and doesn't implement it. For a design question, the Prototype playbook or `/architect` settles it in code first. Principles are one-rule skills that `/zstack` reads and cites in its replies. The user rarely invokes one. They steer with the names instead, as in "apply prove it works. show me the real output." Typing `/principle-` still loads one on demand. [Guide page 8](../../docs/guide/08-principles.md) lists them. ## Fix a run that went wrong | Symptom | Fix | |---|---| | `/zstack` stopped applying after a few turns | Start the next task with `/zstack`. | | A question got treated as the next step of the last task | Say "new task", or say the turn doesn't need `/zstack`. | | A new model choice had no effect | `/setup-zstack` writes `zstack-models.md` at the repository root. Skills read it when they run. | | Runs cost more than expected | See the cost paragraph under Get set up. | | A skill didn't load on its own | Only `/setup-zstack` loads from the user's words. The others load when the user types them or when `/zstack` runs them, and it doesn't run every skill. | | Parallel agents overwrote each other | Give each agent its own worktree. | | An overnight run moved but finished nothing | Give it a check that can pass or fail, not a duration. See [guide page 7](../../docs/guide/07-overnight.md). | | The reply claims success from a green build | Ask for the real command, flow, stored value, or profile. That's the prove-it-works principle. | For a run that drifts, [`references/prompting.md`](references/prompting.md) has one-line steers. [Guide page 10](../../docs/guide/10-recipes-and-pitfalls.md) has more pitfalls and the recipes worth copying. ## Make zstack my own - [`/automate-me`](../automate-me/SKILL.md) drafts a personal mode skill from the user's own history, to use alongside `/zstack`. - [`/reflect`](../reflect/SKILL.md) after a session turns its lessons into skill edits the user approves. - `/zstack write a skill for ` runs the authoring playbook. The eval playbook tests a skill change blind. - Fix a misbehaving skill in its own PR, not inside the feature work where it went wrong. [Guide page 9](../../docs/guide/09-make-it-yours.md) covers each of these. ## Reply Lead with the answer. Give at most one example prompt in a code block, adapted from [`references/recipes.md`](references/recipes.md) when one fits, then the link to that file. Keep it short unless the user asked for the whole map.