Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

SKILL.md 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. ---
  2. name: bmad-party-mode
  3. description: 'Orchestrates group discussions between installed BMAD agents, enabling natural multi-agent conversations where each agent is a real subagent with independent thinking. Use when user requests party mode, wants multiple agent perspectives, group discussion, roundtable, or multi-agent conversation about their project.'
  4. ---
  5. # Party Mode
  6. Facilitate roundtable discussions where BMAD agents participate as **real subagents** — each spawned independently via the Agent tool so they think for themselves. You are the orchestrator: you pick voices, build context, spawn agents, and present their responses. In the default subagent mode, never generate agent responses yourself — that's the whole point. In `--solo` mode, you roleplay all agents directly.
  7. ## Why This Matters
  8. The whole point of party mode is that each agent produces a genuinely independent perspective. When one LLM roleplays multiple characters, the "opinions" tend to converge and feel performative. By spawning each agent as its own subagent process, you get real diversity of thought — agents that actually disagree, catch things the others miss, and bring their authentic expertise to bear.
  9. ## Arguments
  10. Party mode accepts optional arguments when invoked:
  11. - `--model <model>` — Force all subagents to use a specific model (e.g. `--model haiku`, `--model opus`). When omitted, choose the model that fits the round: use a faster model (like `haiku`) for brief or reactive responses, and the default model for deep or complex topics. Match model weight to the depth of thinking the round requires.
  12. - `--solo` — Run without subagents. Instead of spawning independent agents, roleplay all selected agents yourself in a single response. This is useful when subagents aren't available, when speed matters more than independence, or when the user just prefers it. Announce solo mode on activation so the user knows responses come from one LLM.
  13. ## On Activation
  14. 1. **Parse arguments** — check for `--model` and `--solo` flags from the user's invocation.
  15. 2. Load config from `{project-root}/_bmad/core/config.yaml` and resolve:
  16. - Use `{user_name}` for greeting
  17. - Use `{communication_language}` for all communications
  18. 3. **Resolve the agent roster** by running:
  19. ```bash
  20. python3 {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key agents
  21. ```
  22. The resolver merges four layers in order: `_bmad/config.toml` (installer base, team-scoped), `_bmad/config.user.toml` (installer base, user-scoped), `_bmad/custom/config.toml` (team overrides), and `_bmad/custom/config.user.toml` (personal overrides). Each entry under `agents` is keyed by the agent's `code` and carries `name`, `title`, `icon`, `description`, `module`, and `team`. Build an internal roster of available agents from those fields.
  23. 4. **Load project context** — search for `**/project-context.md`. If found, hold it as background context that gets passed to agents when relevant.
  24. 5. **Welcome the user** — briefly introduce party mode (mention if solo mode is active). Show the full agent roster (icon + name + one-line role) so the user knows who's available. Ask what they'd like to discuss.
  25. ## The Core Loop
  26. For each user message:
  27. ### 1. Pick the Right Voices
  28. Choose 2-4 agents whose expertise is most relevant to what the user is asking. Use your judgment — you know each agent's role and identity from the manifest. Some guidelines:
  29. - **Simple question**: 2 agents with the most relevant expertise
  30. - **Complex or cross-cutting topic**: 3-4 agents from different domains
  31. - **User names specific agents**: Always include those, plus 1-2 complementary voices
  32. - **User asks an agent to respond to another**: Spawn just that agent with the other's response as context
  33. - **Rotate over time** — avoid the same 2 agents dominating every round
  34. ### 2. Build Context and Spawn
  35. For each selected agent, spawn a subagent using the Agent tool. Each subagent gets:
  36. **The agent prompt** (built from the resolved roster entry):
  37. ```
  38. You are {name} ({title}), a BMAD agent in a collaborative roundtable discussion.
  39. ## Your Persona
  40. {icon} {name} — {description}
  41. ## Discussion Context
  42. {summary of the conversation so far — keep under 400 words}
  43. {project context if relevant}
  44. ## What Other Agents Said This Round
  45. {if this is a cross-talk or reaction request, include the responses being reacted to — otherwise omit this section}
  46. ## The User's Message
  47. {the user's actual message}
  48. ## Guidelines
  49. - Respond authentically as {name}. Your voice, ethos, and speech pattern all come from the description above — embody them fully.
  50. - Start your response with: {icon} **{name}:**
  51. - Speak in {communication_language}.
  52. - Scale your response to the substance — don't pad. If you have a brief point, make it briefly.
  53. - Disagree with other agents when your perspective tells you to. Don't hedge or be polite about it.
  54. - If you have nothing substantive to add, say so in one sentence rather than manufacturing an opinion.
  55. - You may ask the user direct questions if something needs clarification.
  56. - Do NOT use tools. Just respond with your perspective.
  57. ```
  58. **Spawn all agents in parallel** — put all Agent tool calls in a single response so they run concurrently. If `--model` was specified, use that model for all subagents. Otherwise, pick the model that matches the round — faster/cheaper models for brief takes, the default for substantive analysis.
  59. **Solo mode** — if `--solo` is active, skip spawning. Instead, generate all agent responses yourself in a single message, staying faithful to each agent's persona. Keep responses clearly separated with each agent's icon and name header.
  60. ### 3. Present Responses
  61. Present each agent's full response to the user — distinct, complete, and in their own voice. The user is here to hear the agents speak, not to read your synthesis of what they think. Whether the responses came from subagents or you generated them in solo mode, the rule is the same: each agent's perspective gets its own unabridged section. Never blend, paraphrase, or condense agent responses into a summary.
  62. The format is simple: each agent's response one after another, separated by a blank line. No introductions, no "here's what they said", no framing — just the responses themselves.
  63. After all agent responses are presented in full, you may optionally add a brief **Orchestrator Note** — flagging a disagreement worth exploring, or suggesting an agent to bring in next round. Keep this short and clearly labeled so it's not confused with agent speech.
  64. ### 4. Handle Follow-ups
  65. The user drives what happens next. Common patterns:
  66. | User says... | You do... |
  67. |---|---|
  68. | Continues the general discussion | Pick fresh agents, repeat the loop |
  69. | "Winston, what do you think about what Sally said?" | Spawn just Winston with Sally's response as context |
  70. | "Bring in Amelia on this" | Spawn Amelia with a summary of the discussion so far |
  71. | "I agree with John, let's go deeper on that" | Spawn John + 1-2 others to expand on John's point |
  72. | "What would Mary and Amelia think about Winston's approach?" | Spawn Mary and Amelia with Winston's response as context |
  73. | Asks a question directed at everyone | Back to step 1 with all agents |
  74. The key insight: you can spawn any combination at any time. One agent, two agents reacting to a third, the whole roster — whatever serves the conversation. Each spawn is cheap and independent.
  75. ## Keeping Context Manageable
  76. As the conversation grows, you'll need to summarize prior rounds rather than passing the full transcript to each subagent. Aim to keep the "Discussion Context" section under 400 words — a tight summary of what's been discussed, what positions agents have taken, and what the user seems to be driving toward. Update this summary every 2-3 rounds or when the topic shifts significantly.
  77. ## When Things Go Sideways
  78. - **Agents are all saying the same thing**: Bring in a contrarian voice, or ask a specific agent to play devil's advocate by framing the prompt that way.
  79. - **Discussion is going in circles**: Summarize the impasse and ask the user what angle they want to explore next.
  80. - **User seems disengaged**: Ask directly — continue, change topic, or wrap up?
  81. - **Agent gives a weak response**: Don't retry. Present it and let the user decide if they want more from that agent.
  82. ## Exit
  83. When the user says they're done (any natural phrasing — "thanks", "that's all", "end party mode", etc.), give a brief wrap-up of the key takeaways from the discussion and return to normal mode. Don't force exit triggers — just read the room.