plan-stream-emit
Before touching files on a non-trivial task, emit a structured plan and surface to the user for early course-correction. USE WHEN: non-trivial task…
от MiniMax-AI★ 30 звёзд на GitHub
Установить plan-stream-emit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Plan Stream Emit
For any non-trivial task, emit a structured plan first and let the user see it before you start changing files. A plan is a list of small, ordered, named steps with explicit pass conditions — not prose, not a single "I'll do X" line.
When to use
Activate when any of these is true:
- The user request is multi-step (more than 3 distinct actions).
- The task is ambiguous in any way: which file, which API, which framework, which version.
- The user request is large enough that getting it wrong would cost more than 2 minutes of re-work.
- The user said "plan first" / "before you start" / "let me see your approach".
- The task crosses a trust boundary (production code, public repo, irreversible action).
When NOT to use
- A single one-shot question or one-line edit.
- The user already gave a numbered list of steps ("do 1, 2, 3, 4 in order").
- The task is trivially reversible and the cost of a wrong move is near zero.
Process
Stop and think before any tool call. Do not start
bash,read, orwriteuntil the plan is on the page.Write the plan as a
todowritelist, in this exact shape:## Plan — <short task name> - [ ] **Step 1**: <verb-first sentence, names the file/action> Pass: <one-line checkable condition> - [ ] **Step 2**: <verb-first sentence, names the file/action> Pass: <one-line checkable condition> - [ ] **Step 3**: <verb-first sentence, names the file/action> Pass: <one-line checkable condition> - [ ] **Step 4** (optional, only if needed): <...> - [ ] **Step N** (always): Verify — <how you confirm the whole task is done>Add an "Open questions" section if any step has un-resolved ambiguity:
## Open questions - <question that, if answered, would change the plan> - <another question>Surface the plan to the user with a one-sentence preamble: "Here is my plan — I will start with Step 1 once you confirm or correct it." Do not begin executing until the user acks, unless the user has previously said "just go" or "no need to check in for this".
Update the plan as you go. When a step is done, mark it complete and emit the next step's status. If reality diverges from the plan, stop and re-plan rather than silently re-routing.
Final step is always a Verify — how the agent will confirm the whole task is done (test pass, manual smoke, file existence check, etc.).
Output contract
The user sees, in this order:
- One-sentence preamble acknowledging the plan is coming.
- The
## Planblock. - (Optional) The
## Open questionsblock. - A clear stop point: "I'll start Step 1 once you confirm" (or, if pre-authorised, "Starting Step 1.").
After execution, the user sees the same plan with [x] checks updating live, and a final
Verify line that names what was actually checked.
Example
I'll plan the migration before touching files.
## Plan — Migrate auth to OIDC alongside SAML
- [ ] **Step 1**: Read src/auth/idp.rs and src/auth/callback.rs to map the current interface.
Pass: I can name every public function and its caller in one sentence.
- [ ] **Step 2**: Sketch the OidcProvider trait and one stub impl in a new file
src/auth/oidc/mod.rs.
Pass: `cargo check` passes with the new module imported.
- [ ] **Step 3**: Wire the new provider into the login/callback dispatch in src/auth/mod.rs,
gated on a config flag `auth.oidc_enabled`.
Pass: existing SAML tests still pass; `auth.oidc_enabled = false` is the default.
- [ ] **Step 4**: Add one happy-path test for OIDC login with a mock IdP.
Pass: `cargo test auth::oidc` is green.
- [ ] **Step 5**: Document the new config flag in docs/auth.md.
Pass: docs/auth.md lists `oidc_enabled`, `oidc_issuer`, `oidc_client_id`.
- [ ] **Verify**: Run the full test suite + a manual smoke against the dev OIDC sandbox.
## Open questions
- Do you have a preferred OIDC library (openidconnect crate vs oauth2 + manual JWKS)?
- Should the OIDC path share the session store with SAML, or own its own?
Common pitfalls
- Do not emit a plan and then ignore it. Every tool call should map to a step. If reality diverges, stop and re-plan, do not silently re-route.
- Do not write prose plans. "I'll look at the code and then maybe refactor" is not a plan. Every step names an action and a pass condition.
- Do not skip the Verify step. The user must be able to trust the agent to confirm the whole task is done, not just the last file edit.
- Do not over-plan trivial work. A 3-line bug fix is one step. Save the structure for work that needs it.
- Do not surface a plan and immediately barrel into Step 1. The user must have a chance to redirect cheaply, before you have committed to a path.
- Do not re-plan without telling the user. "I am going to re-plan because Step 2 hit a wall" is a
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл plan-stream-emit?
Before touching files on a non-trivial task, emit a structured plan and surface to the user for early course-correction. USE WHEN: non-trivial task, multi-step task, ambiguous requirement, would take > 3 tool calls, user has not approved an approach yet, user said "plan first" / "before you start" / "let me see your approach" / "先出计划" / "出方案", crossing trust boundary (production, public repo, irreversible action). TRIGGER PHRASES: "plan first", "先出计划", "let me see", "出方案", "确认一下", "先别动手", "想清楚再开始", "before you start", "我看看方案", "出 plan", "出计划". SKIP WHEN: single one-shot question, user already gave numbered list of steps, trivially reversible, "do X" with X being one line.
Как установить скилл plan-stream-emit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plan-stream-emit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
patterns
AnthropicFind patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
copilot-cli-quickstart
GitHubUse this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
vardoger-analyze
GitHubUse when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
policy-lookup
AnthropicFind and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…