Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问许可证需确认审计未展示

dyad%3aswarm-to-plan双人%3aswarm 计划

Agent Skill

dyad%3aswarm-to-plan 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

517

周安装

22

GitHub Stars

20,191

下载量

181
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dyad%3aswarm-to-plan(双人%3aswarm 计划)
来源仓库:https://github.com/dyad-sh/dyad
仓库路径:skills/dyad%3Aswarm-to-plan
安装命令:
npx skills add https://github.com/dyad-sh/dyad --skill dyad:swarm-to-plan
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dyad-sh/dyad --skill dyad:swarm-to-plan

简介

dyad%3aswarm-to-plan 利用产品、UX 与工程专家团队协同讨论创意并产出详细计划。

  • 适用于新功能规划、需求澄清与范围界定的协作场景。
  • 通过多轮辩论识别模糊点并向人类提问以明确方向。
  • 需确认项目上下文与参与角色权限,避免脱离实际约束生成方案。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Swarm to Plan

This skill uses a team of specialized agents (Product Manager, UX Designer, Engineering Lead) to collaboratively debate an idea, identify ambiguities, clarify scope with the human, and produce a comprehensive plan.

Arguments

  • $ARGUMENTS: The idea or feature to plan (e.g., "add collaborative editing", "redesign the settings page")

Overview

  1. Create a planning team with PM, UX, and Eng agents
  2. Each agent analyzes the idea from their perspective
  3. Agents debate and challenge each other's assumptions
  4. Team lead synthesizes open questions and asks the human for clarification
  5. After clarification, agents refine their analysis
  6. Team lead compiles a final plan and writes it to plans/$plan-name.md

Workflow

Step 1: Set Up Context

Read the idea from $ARGUMENTS. Explore the codebase briefly to understand:

  • The current tech stack and architecture (check package.json, key config files)
  • Existing patterns relevant to the idea
  • Files and modules that may be affected

IMPORTANT: Read rules/product-principles.md and include the product design principles in the context summary shared with the team. All agents should use these principles to guide decisions autonomously — only flag a tension or trade-off to the user if it is genuinely unresolvable within the principles.

Prepare a brief context summary to share with the team.

Step 2: Create the Planning Team

Use TeamCreate to create the team:

TeamCreate:
  team_name: "plan-<slugified-idea-name>"
  description: "Planning session for: <idea>"

Step 3: Create Tasks

Create 4 tasks:

  1. "Analyze idea from product perspective" - Assigned to pm
  2. "Analyze idea from UX perspective" - Assigned to ux
  3. "Analyze idea from engineering perspective" - Assigned to eng
  4. "Debate and refine the plan" - Blocked by tasks 1-3, no owner

Step 4: Spawn Teammates

Spawn all 3 teammates in parallel using the Task tool with team_name set to the team name. Each teammate should be a general-purpose subagent.

IMPORTANT: Each teammate's prompt must include:

  1. Their role description (from the corresponding file in references/)
  2. The full idea description
  3. The codebase context summary you gathered in Step 1
  4. Instructions to send their analysis back via SendMessage

Teammate Prompt Template

For each teammate, the prompt should follow this structure:

You are the [ROLE NAME] on a product planning team. Read your role description carefully:

<role>
[Contents of references/<role>.md]
</role>

You are planning this idea: "<IDEA DESCRIPTION>"

<codebase_context>
[Brief summary of tech stack, relevant architecture, and existing patterns]
</codebase_context>

## Instructions

1. Read your role description carefully and analyze the idea from your expert perspective.
2. Produce a thorough analysis following the output format described in your role description.
3. Identify 2-5 **open questions** — things that are ambiguous, underspecified, or could go multiple ways. For each question, explain WHY the answer matters (what changes depending on the answer).
4. Send your analysis to the team lead using SendMessage.

After sending your initial analysis, wait for the team lead to share the other team members' analyses. When you receive them:

- **AGREE** with points you think are correct
- **CHALLENGE** points you disagree with, giving specific reasoning
- **BUILD ON** ideas from other roles that intersect with your expertise
- **FLAG** any new concerns that emerged from reading others' analyses

Focus on genuine trade-offs and real disagreements, not superficial consensus.

Step 5: Collect Initial Analyses

Wait for all 3 teammates to send their initial analyses.

Step 6: Facilitate Cross-Role Debate

Once all initial analyses are in:

  1. Send each teammate a message with ALL analyses from all three roles
  2. Ask them to debate: agree, challenge, build on, or flag new concerns
  3. Wait for debate responses

The message to each teammate should look like:

All initial analyses are in. Here are the perspectives from all three roles:

## Product Manager Analysis:
[PM's full analysis]

## UX Designer Analysis:
[UX's full analysis]

## Engineering Lead Analysis:
[Eng's full analysis]

Please review the other team members' analyses from YOUR expert perspective:

- AGREE with points that are well-reasoned (say "AGREE: <point> — <why>")
- CHALLENGE points you disagree with (say "CHALLENGE: <point> — <your counter-argument>")
- BUILD ON ideas that intersect with your expertise (say "BUILD: <point> — <your addition>")
- FLAG new concerns that emerged (say "FLAG: <concern> — <why this matters>")

Focus on genuine disagreements and real trade-offs. Don't agree with everything just to be nice.

Step 7: Synthesize Questions for the Human

After the debate, compile all open questions and unresolved disagreements. Group them into themes and prioritize by impact.

Use AskUserQuestion to ask the human clarifying questions. Structure the questions to resolve the highest-impact ambiguities. You can ask up to 4 questions at a time using the multi-question format. Key things to ask about:

  • Scope decisions (MVP vs. full feature)
  • UX trade-offs where the team disagreed
  • Technical approach choices with meaningful trade-offs
  • Priority and constraints (timeline, performance requirements, etc.)

If there are more than 4 questions, ask the most critical ones first, then follow up with additional rounds if needed.

Step 8: Share Clarifications and Gather Final Input

Send the human's answers back to all teammates and ask each to provide their final refined take given the clarifications. This should be brief — just adjustments to their original analysis based on the new information.

Step 9: Compile the Final Plan

After receiving final input from all teammates, compile a comprehensive plan document. The plan should synthesize all three perspectives into a coherent spec.

Step 10: Write the Plan

Create the plans/ directory if it doesn't exist, then write the plan to plans/<plan-name>.md:

mkdir -p plans

The plan file should follow this format:

# <Plan Title>

> Generated by swarm planning session on <date>

## Summary

<2-3 sentence overview of what we're building and why>

## Problem Statement

<Clear articulation of the user problem, from PM>

## Scope

### In Scope (MVP)

- <feature 1>
- <feature 2>

### Out of Scope (Follow-up)

- <deferred feature 1>
- <deferred feature 2>

## User Stories

- As a <user>, I want <goal> so that <reason>
- ...

## UX Design

### User Flow

<Step-by-step walkthrough of the primary interaction>

### Key States

- **Default**: <description>
- **Loading**: <description>
- **Empty**: <description>
- **Error**: <description>

### Interaction Details

<Specific interactions, gestures, feedback mechanisms>

### Accessibility

<Keyboard nav, screen readers, contrast, motion considerations>

## Technical Design

### Architecture

<How this fits into the existing system>

### Components Affected

- `path/to/file.ts` — <what changes>
- ...

### Data Model Changes

<New or modified schemas, storage, state>

### API Changes

<New or modified interfaces>

## Implementation Plan

### Phase 1: <name>

- [ ] <Task 1>
- [ ] <Task 2>

### Phase 2: <name>

- [ ] <Task 3>
- [ ] <Task 4>

## Testing Strategy

- [ ] <What to test and how>

## Risks & Mitigations

| Risk   | Likelihood | Impact  | Mitigation |
| ------ | ---------- | ------- | ---------- |
| <risk> | <H/M/L>    | <H/M/L> | <strategy> |

## Open Questions

<Any remaining questions that should be resolved during implementation>

## Decision Log

<Key decisions made during planning and the reasoning behind them>

---

_Generated by dyad:swarm-to-plan_

Step 11: Shutdown Team

After writing the plan:

  1. Send shutdown requests to all teammates
  2. Wait for shutdown confirmations
  3. Delete the team with TeamDelete
  4. Tell the user the plan location: plans/<plan-name>.md

Error Handling

  • If a teammate fails to respond, proceed with the other agents' input
  • If the human declines to answer questions, proceed with the team's best assumptions and note them in the plan
  • Always write the plan file, even if some perspectives are incomplete
  • Always shut down the team when done, even if there were errors

File Structure

references/
  pm.md   - Role description for the Product Manager
  ux.md   - Role description for the UX Designer
  eng.md  - Role description for the Engineering Lead

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.43%
按下载量换算64

Claude

30.02%
按下载量换算54

Cursor

19.73%
按下载量换算36

Gemini CLI

8.71%
按下载量换算16

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/dyad-sh/dyad --skill dyad:swarm-to-plan 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills