compose-next
What it does
This skill is a step-by-step workflow for larger feature work, bug fixes, and refactors. It is for developers who want requirements settled, a written spec, and an independent review before merging.
When to use it
- βWhen you ask for a multi-step feature that needs a written design and tasks.
- βWhen a refactor or bug fix deserves a review before it is merged.
- βWhen requirements are unclear and need to be settled before coding.
Skill link
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/compose-next/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to use the compose workflow to build an export feature and get it reviewed before merging.β
5 new skills a week. 1 minute to read.
How it works
The agent inspects the repo first, then moves through the phases in order: clarify, set up a workspace, write the spec, implement, verify, review, and finish. It runs only when you clearly ask for this workflow.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Does it start automatically for big tasks?
No. It runs only when you clearly ask for this workflow, not because a task looks large.
What does it check before asking me questions?
It inspects the repository and its instructions first, so it does not ask for facts the environment already shows.
Does it need a separate branch?
The skill mentions workspaces and worktrees, and it follows any no-worktree instruction you give.
Details
Original description by the author
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
Popularity
- GitHub stars
- 14k
- Ranking position
- #11306
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
effect
14kHelps your agent answer questions about the Effect TypeScript framework by checking its source code and docs instead of relying on memory.
arxiv
14kHelps your agent search, read, cite, and track academic papers on arXiv, including abstracts, BibTeX citations, PDF downloads, and citation links.
claude-code
14kHelps your agent hand a coding task to the Claude Code command line tool, as a one-shot run, an interactive session, or a background job.
codex
14kHelps your agent run the OpenAI Codex command line tool without a chat window, for coding tasks, scripts, and automated pipelines.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.