用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill plan-mode命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | plan-mode |
| description | Plan-before-execute — structured plan, approval, replanning. |
All dev-team-agents operate under a strict plan-before-execute discipline. No non-trivial task may be executed without a prior approved plan.
A plan is required whenever a task involves:
| Category | Examples |
|---|---|
| File operations | Creating, modifying, deleting, or moving any file |
| Commands with side effects | Installs, migrations, deploys, cache clears, git operations |
| Architecture or design decisions | Choosing tech stack, defining API contracts, schema design |
| Document generation | Backlog items, sprint plans, ADRs, code standards |
| Multi-step implementations | Any task with 2 or more sequential steps |
| Multi-agent delegations | Any task that spawns one or more subagents |
A plan is NOT required for:
When in doubt: write the plan.
Language: Plans are presented to the user for approval — they are conversation items, not documents. Present plans in the user's preferred language from .dev-team-agents/user-data/preferences.json → language (default: English).
Load .dev-team-agents/templates/plan-template.md and fill it in. That file is the canonical
plan format — this skill does not restate it, so the two cannot drift.
Two rules the template encodes, restated here only because they change how you execute:
--- means the step must wait for the previous one.Plans render as pure markdown — no box-drawing characters or decorative symbols, per
skills/shared/output-format/SKILL.md.
Formatting rule — the plan and the approval question are two separate messages, never one. First, output the filled plan-template.md as plain markdown chat text — headings, tables, and line breaks intact. Only after that, if using AskUserQuestion to collect approval, send the short "Plan approval gate" pattern from skills/shared/interaction-patterns/SKILL.md (question: "Plan ready. Do you approve?", options: Approved / Adjust first / Cancel). Never paste the plan body — or any part of the Steps table — into the question, header, or option description fields; those fields collapse line breaks and render the plan as an unreadable wall of text.
After presenting the plan:
On rejection: acknowledge the feedback, adjust the plan, re-present the full plan. Never partially execute before replanning.
On approval: execute steps in order (agents with Execution Strategy Gate enabled MUST present the gate before executing). Report progress after each step. If execution reveals a problem that changes the plan, stop and replan before continuing.
This optional gate applies between plan approval and execution. When an agent's configuration mandates it, the agent MUST present an interactive quiz after the user approves the plan and before executing any step.
After the user signals approval ("approved", "go ahead", "proceed", "yes", "looks good", "do it"), before executing step 1.
Read the worktree preferences from .dev-team-agents/user-data/preferences.json:
python3 -c "import json;d=json.load(open('.dev-team-agents/user-data/preferences.json'));print(json.dumps({k:d.get(k) for k in['worktree_active','worktree_base_branch','worktree_path','worktree_docker_isolate']}))" 2>/dev/null
If the file is unreadable or keys are absent, assume defaults: worktree_active=true, worktree_base_branch = auto-detected default, worktree_path=.worktrees, worktree_docker_isolate=true.
Determine the recommended option:
worktree_active == true → recommend Isolated worktree (first option)worktree_active == false → recommend New branch (second option)Present the quiz using the AskUserQuestion tool. Use the user's preferred language from preferences.json → language. The recommended option MUST be the first option with the label showing it is recommended.
Quiz structure (pt-BR example):
{
"questions": [
{
"question": "Como este plano deve ser executado?",
"header": "Estratégia",
"multiSelect": false,
"options": [
{ "label": "Worktree isolada (Recomendado)"
If you discover mid-execution that a step cannot be done as planned:
Do not silently improvise. If the plan changes, the user must know.
Every agent in dev-team-agents is responsible for applying this protocol independently. The plan-mode rule is not optional and is not enforced by an external system — it is part of each agent's operating discipline.
If a user asks an agent to "just do it" without a plan: explain that the plan takes less than a minute to write, protects against misunderstandings, and produces better results. Then write the plan. Never skip it.
After any response that involved reading many large files, producing long outputs, or running multiple tool calls in sequence, add a brief context advisory when appropriate:
⚡ Context advisory: this session has accumulated significant context. If responses start feeling less precise, run
/compactor start a fresh session before the next task.
Apply this judgment after: reading 5+ files, producing 3+ large tool outputs, or a long back-and-forth session. You cannot see the exact percentage — err toward mentioning it. This supplements the automated hook-based warning, which fires based on a transcript token estimate.
Translate to the user's language. Dynamically interpolate the actual worktree_base_branch, worktree_path, and worktree_docker_isolate values into the recommended option's description.
Options and corresponding actions:
| User choice | Action |
|---|---|
| Isolated worktree | Load skills/shared/worktree/SKILL.md and follow the full worktree setup flow. Use worktree_base_branch as the base, worktree_path for the worktree root, and worktree_docker_isolate to determine Docker isolation. |
| New branch | Ask for a branch name (suggest <context>/<brief-title>), then run git checkout -b <name>. Continue executing steps in the new branch. |
| Current branch | Proceed executing steps directly on the current branch with no git changes. |
| Other | Ask the user to describe their desired approach in free text, then adapt accordingly. |
Announce the chosen strategy before executing the first step so the user can verify the decision is correct.