Skip to content
Skillpedia
General coding14k Β· #11306

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.md

Copy 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

Use this skill to help me: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/compose-next/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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 worktree or 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 concise label and a description explaining 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:

  1. Choose the option marked (Recommended) when repository evidence still supports it and it can run unattended.
  2. Otherwise choose the closest minimal-scope option supported by the evidence; prefer text-only, non-interactive work.
  3. If the decision includes destructive or irreversible work, choose a non-destructive path that preserves progress; never auto-approve the destructive option.
  4. 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-dir with git rev-parse --git-common-dir. If they differ, use the current linked worktree; do not nest another. A non-empty git rev-parse --show-superproject-working-tree indicates 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills