haiku-reset-stage
Wipe a single stage of an intent (its units, outputs, artifacts, elaboration, feedback, and stage branch) so the agent can re-run it from scratch. Other stages stay untouched. For wiping the whole intent, use /reset-intent.
- License 许可
- Apache-2.0
- 最近更新
- 2026-05-30
- Stars
- ★ 29
- Forks
- 11
01 前言 Front Matter
- name
- haiku-reset-stage
- description
- Wipe a single stage of an intent (its units, outputs, artifacts, elaboration, feedback, and stage branch) so the agent can re-run it from scratch. Other stages stay untouched. For wiping the whole intent, use /reset-intent.
02 资源文件 14
- 参考文档_meta.json145 B
- 参考文档package-lock.json36.9 KB
- 参考文档package.json691 B
- 参考文档README.md6.7 KB
- 参考文档references/chains.md1.3 KB
- 参考文档references/sdk-reference.md1.4 KB
- 脚本scripts/feedback.mjs2.6 KB
- 脚本scripts/register.mjs16.4 KB
- 脚本scripts/search.mjs1.7 KB
- 脚本scripts/setup.sh1006 B
- 脚本scripts/update.mjs3.3 KB
- 参考文档skill-card.md2.4 KB
- 参考文档SOURCE.md282 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Reset Stage
Wipe ONE stage of an intent and let the engine re-enter it at the elaborate phase on the next tick. The intent's other stages, their approvals, and intent main's history all stay put.
When to use this skill
The intent is fine, but a specific stage produced output that no longer matches what the user wants — usually because the studio's hat instructions, review-agents, or stage config were updated after the stage ran, and the user wants the agent to redo just that stage with the new instructions.
Not the right tool when:
- The intent's whole premise was wrong from the start — that's
/reset-intent. - The stage's output has a few specific problems the user wants flagged — that's a feedback revisit, not a reset.
- The user wants to roll back intent main's git history — that's a manual
git revert/git reset, not in scope for this skill.
How to drive it
When the user says "reset the product stage" (or names one stage):
- Identify the intent. If no intent slug is known from context, call
haiku_intent_listfirst. If multiple are active and the user didn't name one, ask which intent before proceeding — the same discovery preflight/haiku:haiku-reset-intentdoes. - Call
haiku_stage_reset { intent: "<slug>", stage: "<stage-name>" }. The tool confirms via the SPA picker and lists what's about to be deleted. - After the user confirms, the tool performs the wipe (details below).
- The tool returns a message saying to call
haiku_run_next— the next tick re-enters the stage at its elaborate phase. The agent picks up the conversation and re-runs the stage's hat sequence.
What gets wiped
stages/<stage>/units/*.mdstages/<stage>/outputs/,artifacts/,decisions.jsonlstages/<stage>/elaboration.mdstages/<stage>/feedback/*.mdstages/<stage>/discovery/contents (the studio's template files are kept; the agent's produced outputs are wiped)- The stage's git branch (
haiku/<slug>/<stage>). The nexthaiku_run_nextforks it from intent main as needed.
What stays
intent.md(the whole intent's identity, including approval stamps that belong to OTHER stages).- Intent main's commits — the stage's prior merge into main stays in history. The stage's new work supersedes via the normal merge path; the next merge from stage → intent main reconciles the two views.
- Other stages' state: units, outputs, approvals, branches — all untouched.
- The stage's declaration in the intent's
stages:list. The stage still exists as a workflow phase; it just starts over.
04 同仓库更多 Skills
haiku-zap
Zero-ceremony single-unit execution — run one task directly through a stage's hat loop without intent or workflow scaffolding
haiku-version
Show the running H·AI·K·U MCP binary version, plugin version, and whether the engine is the dev source build or the compiled bundle
haiku-unarchive
Unarchive an intent — restore a previously archived intent to default lists
haiku-triggers
Poll configured providers for events that should create intents or advance gates
haiku-studios
Browse available H·AI·K·U studios grouped by category with help links into each studio definition
haiku-statusline
Install, remove, or preview the H·AI·K·U custom Claude Code status line — a one-line stage/phase indicator for the active intent