Pular para o conteúdo
Skillpedia
Código em geral14 mil · #11306

compose-next

O que ela faz

Esta skill é um fluxo de trabalho passo a passo para funcionalidades maiores, correções de bugs e refatorações. Ela é para desenvolvedores que querem os requisitos definidos, uma especificação escrita e uma revisão independente antes da integração.

Quando usar

  • ✓Quando você pedir uma funcionalidade com várias etapas que exija um desenho escrito e tarefas.
  • ✓Quando uma refatoração ou correção de bug merecer revisão antes de ser integrada.
  • ✓Quando os requisitos não estiverem claros e precisarem ser definidos antes de programar.

Link da skill

https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/compose-next/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/compose-next/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Quero usar o fluxo compose para criar uma funcionalidade de exportação e obter uma revisão antes de integrar.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente inspeciona o repositório primeiro e depois avança pelas fases em ordem: esclarecer, preparar um espaço de trabalho, escrever a especificação, implementar, verificar, revisar e concluir. Ele só roda quando você pede explicitamente esse fluxo.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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
Perguntas frequentes

Ele começa sozinho em tarefas grandes?

Não. Ele só roda quando você pede explicitamente esse fluxo, e não porque uma tarefa parece grande.

O que ele verifica antes de me fazer perguntas?

Ele inspeciona primeiro o repositório e as suas instruções, para não perguntar fatos que o ambiente já mostra.

Ele precisa de uma branch separada?

A skill menciona espaços de trabalho e worktrees, e segue qualquer instrução de não usar worktree que você der.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
14 mil
Posição no ranking
#11306
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas