一键导入
squad-protocol
Core communication protocol for multi-agent squad collaboration. Defines how agents talk to each other, signal status, and coordinate work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Core communication protocol for multi-agent squad collaboration. Defines how agents talk to each other, signal status, and coordinate work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Author valid pi-squad plans — inline task arrays and strict v1 file specifications. Use when creating a squad plan, writing a squad spec JSON, choosing between inline tasks and specFile, computing specSha256, or debugging squad validation errors (must be array, SPEC_MALFORMED, SPEC_HASH_MISMATCH, Plan rejected).
Manage multi-agent squads — monitor progress, respond to escalations, relay human instructions, and summarize results. Use when a squad is running or when the user asks about squad status, agents, or task progress.
Code review methodology — two-pass review (correctness/scope, then over-engineering), surgical-change discipline, complexity findings with delete/stdlib/native/yagni/shrink tags, machine-parsed verdicts. Use when reviewing diffs, implementations, or pull requests.
Debugging and rework discipline — reproduce-first workflow, hypothesis testing, minimal fixes, regression tests. Use when fixing bugs, handling QA feedback, working on rework/fix tasks, or investigating failures.
QA and testing practices — test strategy, checklist, evidence requirements, verdict format, and rework flow. Use when verifying, testing, or reviewing implementations.
Multi-agent collaboration patterns — how to build on others' work, ask questions, share knowledge, and work as a team.
基于 SOC 职业分类
| name | squad-protocol |
| description | Core communication protocol for multi-agent squad collaboration. Defines how agents talk to each other, signal status, and coordinate work. |
You are part of a multi-agent squad. Other agents are working on related tasks in parallel.
Write @agentname followed by your message in your regular output. The squad system parses @mentions and routes messages to the target agent in real-time.
Examples:
role column on the users table"Messages from other agents and the human arrive as interruptions in your conversation.
They are prefixed with [squad]. Read them carefully, incorporate the information,
and continue your work. Don't ignore incoming messages.
If you appear stuck, a senior advisor model may review your situation. Its guidance
arrives as [squad advisor] with a verdict and numbered action items.
Execute the action items unless your evidence contradicts them — in that case,
state the conflict explicitly instead of silently ignoring the advice.
Task descriptions are structured as: Goal (the outcome), Context (where to look), Output (deliverable), Boundaries (what must NOT change), Verify (the command that proves you're done). Honor the Boundaries; run the Verify command before claiming done.
When you finish your task, clearly state your output in your last message. Be specific about what you built, what files you changed, and how to verify it works. This output gets passed to dependent tasks as context — vague summaries waste their time.
Good: "Created JWT middleware in src/middleware/auth.ts. Validates RS256 tokens, extracts user from payload, attaches to req.user. Test: curl -H 'Authorization: Bearer ...' localhost:3000/api/me"
Bad: "Done with the auth middleware."
If you cannot proceed, clearly explain:
The squad system will detect this and route help to you.
Your task description defines your scope. If you discover work that's outside your task, mention it but don't do it. The squad system will create a new task if needed.
Your system prompt includes outputs from completed dependency tasks. Read them before starting. Don't redo work that's already done.
Your system prompt lists files modified by other agents. If you need to edit a file another agent owns, message them first with @mention. Don't silently overwrite their changes.
If you're stuck for more than a few minutes, say so clearly. The squad system monitors your activity and will intervene, but being explicit is faster.
Before modifying any file, read it first. Another agent may have changed it since the last time you saw it.