compose-next
Skill này làm gì
Skill này là quy trình từng bước cho các công việc tính năng lớn hơn, sửa lỗi và tái cấu trúc. Skill dành cho lập trình viên muốn yêu cầu được chốt, có đặc tả bằng văn bản và được review độc lập trước khi merge.
Khi nào nên dùng
- ✓Khi bạn yêu cầu một tính năng nhiều bước cần thiết kế và danh sách việc bằng văn bản.
- ✓Khi một đợt tái cấu trúc hoặc sửa lỗi đáng được review trước khi merge.
- ✓Khi yêu cầu chưa rõ và cần được chốt trước khi viết mã.
Liên kết skill
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/compose-next/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn dùng quy trình compose để xây tính năng xuất dữ liệu và được review trước khi merge.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra kho mã (repo) trước, rồi đi qua các giai đoạn theo thứ tự: làm rõ, thiết lập không gian làm việc, viết đặc tả, triển khai, xác minh, review và hoàn tất. Skill chỉ chạy khi bạn yêu cầu rõ ràng quy trình này.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có tự bắt đầu với các tác vụ lớn không?
Không. Nó chỉ chạy khi bạn yêu cầu rõ ràng quy trình này, không phải vì tác vụ trông lớn.
Nó kiểm tra gì trước khi hỏi tôi?
Nó kiểm tra kho mã và các hướng dẫn của nó trước, nên không hỏi những điều môi trường đã cho thấy.
Có cần nhánh riêng không?
Skill đề cập đến không gian làm việc và worktree, và nó tuân theo bất kỳ chỉ dẫn không dùng worktree nào bạn đưa ra.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11306
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
effect
14kGiúp agent của bạn trả lời câu hỏi về framework TypeScript Effect bằng cách kiểm tra mã nguồn và tài liệu, thay vì dựa vào trí nhớ.
arxiv
14kGiúp agent của bạn tìm, đọc, trích dẫn và theo dõi các bài báo học thuật trên arXiv, gồm tóm tắt, trích dẫn BibTeX, tải PDF và liên kết trích dẫn.
claude-code
14kGiúp agent của bạn giao một tác vụ lập trình cho công cụ dòng lệnh Claude Code, dưới dạng chạy một lần, phiên tương tác hoặc tác vụ nền.
codex
14kGiúp agent của bạn chạy công cụ dòng lệnh OpenAI Codex mà không cần cửa sổ chat, cho tác vụ lập trình, tập lệnh và quy trình tự động.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.