compose-next
它能做什么
这项技能是处理较大功能开发、错误修复和重构的分步工作流。适合希望在合并前明确需求、撰写规格并进行独立审查的开发者。
适用场景
- ✓当你要求一个需要书面设计和任务的多步骤功能的时候。
- ✓当某个重构或错误修复在合并之前值得进行审查的时候。
- ✓当需求不明确,需要在编码前先确定下来的时候。
技能链接
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/compose-next/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请使用 compose 工作流构建一个导出功能,并在合并前进行审查。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先检查代码仓库,然后按顺序推进各个阶段:明确需求、设置工作区、撰写规格、实现、验证、审查,最后完成。只有在你明确要求使用此工作流时才会运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Compose Next
Compact end-to-end contract for grill → workspace → spec → implement → verify → review → finalize → finish. One skill load, no internal skill hand-offs.
When writing a checkpoint or compacting context, preserve this recovery instruction in the checkpoint or compacted summary: on resumption, if the Compose Next instructions are absent, reload the compose-next skill before continuing.
Enter this workflow only on an explicit user request. Any clear natural-language instruction to use this workflow counts just like /compose-next; the user does not need to know or name the skill. If the user has not clearly requested the workflow, do the work directly and run none of the phases below; do not infer consent merely because the task is large or resembles a Compose task.
Step 0 — Orient
Inspect the repository, its instructions (AGENTS.md, README, existing spec files), and recent changes before asking anything. Do not ask the user for facts the environment already answers.
Decide the shape of the work:
- Fully constrained mechanical change with no durable design surface → skip Grill and Spec, go to Workspace then Implement.
- Requirements or design ambiguous → Grill first.
- Requirements clear, feature deserves a durable document → Workspace then Spec.
User gates and project overrides:
- If the user explicitly requests
without worktreeor specifies a worktree or workspace path, use that workspace choice and skip the default worktree gate. Do not ask again for worktree consent. - If the user explicitly says
without spec, "no spec needed", "this is a small fix", or gives an equivalent instruction, skip the durable feature document and its spec gate. Keep verification and review when the task still warrants them. - An explicit project instruction,
AGENTS.md, or user-provided agent/worktree configuration may define a project-specific worktree path, branch convention, spec path, or spec format. Use that configuration instead of the defaults in this skill. Record the override in the feature document or final report when it changes the normal artifact location.
Every path passes through Workspace before Spec or Implement; no branch skips it.
Grill — resolve decisions
Resolve one decision axis at a time. A single decision may bundle multiple dependent fields in one structured question; unrelated decisions require separate turns.
Use the Question tool for every user decision:
- Put known choices in
options. Each option gets a conciselabeland adescriptionexplaining the consequence. List the recommendation first and mark its label(Recommended). - For consequential choices, include 2–3 viable alternatives.
- When choices cannot be enumerated, still call Question with
options: []for free-text. - Do not ask for permission to continue when no decision remains.
Split requests spanning independent subsystems before refining each part. Do not begin implementation until requirements and scope are settled.
When user input is unavailable
If user input cannot be obtained — the Question tool is absent, a question gets no reply, or the run cannot stop and wait (for example a goal that keeps running) — and the decision is not a dangerous action that requires explicit user consent, resolve this one decision yourself and continue:
- Choose the option marked
(Recommended)when repository evidence still supports it and it can run unattended. - Otherwise choose the closest minimal-scope option supported by the evidence; prefer text-only, non-interactive work.
- If the decision includes destructive or irreversible work, choose a non-destructive path that preserves progress; never auto-approve the destructive option.
- State the option selected and the reason in the response.
Workspace — worktree ownership
Never begin implementation on main or master without explicit user consent. If the active workspace is already chosen, skip creation below and continue with toolchain setup.
- Compare
git rev-parse --git-dirwithgit rev-parse --git-common-dir. If they differ, use the current linked worktree; do not nest another. A non-emptygit rev-parse --show-superproject-working-treeindicates a submodule, not a linked worktree. - Create a linked worktree at
.worktrees/{{slug}}by default. Base the new branch on the latest mainline (e.g.origin/main). If the current checkout makes the base unclear (detached HEAD, an unrelated feature branch, unknown default
常见问题
遇到大型任务时它会自动启动吗?
不会。只有在你明确要求使用此工作流时才会运行,而不是因为任务看起来很大。
在提问之前它会检查什么?
它会先检查代码仓库及其说明,因此不会询问环境中已经显示的信息。
它需要单独的分支吗?
这项技能提到了工作区和 worktree,并会遵循你给出的不使用 worktree 的指示。
详情
作者的原始描述
Use for multi-step feature work, bug fixes, or refactors where requirements need to settle, a feature document should carry design + tasks + delivery evidence, and the change deserves independent review before merge. Use it only when the user explicitly requests this workflow, whether with `/compose-next`, by name, or in any other clear natural language; do not infer the request from task complexity alone. Not for one-shot edits, single-file tweaks, or answering questions — those need no orchestration overhead.
repo: XiaomiMiMo/MiMo-Code
热度
- GitHub 星标
- 14k
- 排名
- #11306
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
effect
14k帮你的智能体通过查看源代码和文档来回答关于 Effect TypeScript 框架的问题,而不是依赖记忆。
arxiv
14k帮你的智能体在 arXiv 上搜索、阅读、引用和跟踪学术论文,包括摘要、BibTeX 引用、PDF 下载和引用关系。
claude-code
14k帮你的智能体把编程任务交给 Claude Code 命令行工具,可以是一次性运行、交互式会话或后台任务。
codex
14k帮你的智能体在没有聊天窗口的情况下运行 OpenAI Codex 命令行工具,用于编程任务、脚本和自动化流程。