agent-protocols
Skill157 starsChanged 3 months agoMITView on GitHub
Shared protocols for all agents in the multi-agent pipeline: recursive nesting, pre-implementation restatement, agent spawn protocol, parallel dispatch format, completion reporting, and sovereign subagent awareness. Load this skill instead of inlining these protocols in every agent file.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- fmind/dottheir own version, first seen Oct 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- fmind/dot★ 10same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- github-pages/agents.mdAGENTS.md
- adrSkill
- angular-idiomsSkill
- api-documentationSkill
- axum-idiomsSkill
- browser-automationSkill
- chaos-testingSkill
- ci-cdSkill
- cli-developmentSkill
- code-auditSkill
- code-reviewSkill
- cpp-idiomsSkill
- csharp-idiomsSkill
- data-engineeringSkill
- debugging-protocolSkill
- django-idiomsSkill
- dotnet-idiomsSkill
- elixir-idiomsSkill
- embedded-systemsSkill
- feature-flagsSkill
- flutter-idiomsSkill
- frontend-designSkill
- git-commit-integritySkill
- go-idiomsSkill
- guardrailsSkill
- hono-idiomsSkill
- incident-responseSkill
- java-idiomsSkill
- javascript-idiomsSkill
- kotlin-idiomsSkill
- laravel-idiomsSkill
- logging-implementationSkill
- ml-engineeringSkill
- mobile-designSkill
- mobile-testingSkill
- nextjs-idiomsSkill
- parallel-dispatchSkill
- payment-integrationSkill
- perf-optimizationSkill
- php-idiomsSkill
- postgres-idiomsSkill
- python-idiomsSkill
- rails-idiomsSkill
- react-idiomsSkill
- refactoring-patternsSkill
- research-methodologySkill
- ruby-idiomsSkill
- rust-idiomsSkill
- security-auditSkill
- sequential-thinkingSkill
- spring-boot-idiomsSkill
- sql-idiomsSkill
- structured-specSkill
- supply-chain-securitySkill
- swift-idiomsSkill
- testability-patternsSkill
- testing-strategySkill
- typescript-idiomsSkill
- vue-idiomsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
When your scope card is too broad for a single context:
- Very specific: line 22
Write .agentwork/handoff.md for your parent coordinator
- Distinctive: line 32
Before writing code, restate in your own words:
- Distinctive: line 37
If any assumption is uncertain, document it in your handoff and proceed with the conservative interpretation.
- Very specific: line 43
When spawning ANY agent type with a role file in .agents/agents/:
- Very specific: line 76
Write .agentwork/handoff.md with status and file manifest
- Distinctive: line 81
Write your deliverable file (findings, verdict, etc.)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Protocols
Shared behavioral protocols for all agents in the workflow-team pipeline.
1. Recursive Nesting Protocol
When your scope card is too broad for a single context:
- Further decompose using
parallel-dispatchskill (§1 Decomposition, §5 Hierarchical Decomposition) - Spawn sub-agents with narrower scope cards using
TypeName="self"with dedicatedRoledesignations (see §3 Agent Spawn Protocol) - Your scope becomes the ceiling — children cannot operate outside it
- Track sub-agent progress; merge results when all complete
- Write
.agentwork/handoff.mdfor your parent coordinator
Triggers for nesting:
- Task edits >3 unrelated files
- Scope card contains >2 features
- Context approaching 50% capacity
- Secondary expertise needed (delegate to specialist)
2. Pre-Implementation Restatement
Before writing code, restate in your own words:
- What the
.agentwork/brief.md/ scope card asks you to build - What files you will create or modify
- What assumptions you are making
If any assumption is uncertain, document it in your handoff and proceed with the conservative interpretation.
3. Agent Spawn Protocol (Universal TypeName="self" Pattern)
In the Antigravity subagent platform, TypeName="self" is the universal spawn mechanism that ensures subagents inherit their parent's full tool capabilities (file modification, command execution, and subagent dispatch for multi-tier nesting). Discovered named types default to read-only tool sets.
When spawning ANY agent type with a role file in .agents/agents/:
- Always use
TypeName="self"ininvoke_subagentcalls. This guarantees the subagent inherits write, execution, and subagent tools from the parent. - Differentiate roles via the
Rolefield (e.g.,Role: "Tech-Lead (Auth API)",Role: "Backend Engineer (Payments)",Role: "Test Automation Engineer"). - Reference the role file in the system prompt — never paraphrase:
"Your role, domain, skills, boundaries, and protocols are defined in file://{workspace}/.agents/agents/{agent-type}.md. Read this file FIRST before beginning any work." - The child agent MUST read the role file as its first action. Boundaries, domain rules, and workflow expectations are strictly defined by the role file.
- Propagate this protocol recursively — Tech-Leads spawn specialized builders using
TypeName="self"with builder role files, enabling deep parallel execution. - Subagent Monitoring & Reactivity: Parents receive automatic notifications when subagents send messages. Wait reactively or use
manage_subagentsto list active subagents. Do NOT usemanage_task(which is exclusively for background commands/processes) for subagent lifecycle operations.
4. Parallel Dispatch Format
Each agent file contains a ## Parallel Dispatch section with role-specific values. The standard fields are:
| Field | Purpose |
| Scope Axis | The dimension used to partition work (feature, concern, domain) |
| Write Scope | Glob pattern for exclusive write access |
| Shared Reads | Glob patterns for read-only access |
| Constraint | Key limitation on parallel instances |
| Integration | How parallel results are reconciled (if applicable) |
For read-only agents, Write Scope becomes Read Scope and scoping is for coverage guarantee, not conflict prevention.
5. Completion Reporting Protocol
Every agent MUST report completion to its parent. This is non-negotiable.
For code-writing agents (builders, specialists):
- Write
.agentwork/handoff.mdwith status and file manifest - Message your parent (the conversation that dispatched you):
".agentwork/handoff.md ready — [scope-card-id] [COMPLETE|BLOCKED]"
For read-only agents (scouts, reviewers, red team members):
- Write your deliverable file (findings, verdict, etc.)
- Message your parent:
".agentwork/[deliverable-file] ready — [1-line summary]"
Critical: Reply-To Address
Your parent's conversation ID is the conversation that sent you your initial task. This is the conversation you received your first message from. Always reply to THIS conversation ID — never to any other ID mentioned in your task description or context.
6. Sovereign Subagent Awareness
Coordinators and tech-leads MUST proactively delegate to specialized builders when the work warrants it. This protocol ensures maximum parallelism, speed, and quality across the pipeline.
[!IMPORTANT] Scope: This mandate applies to agents that receive and decompose scope cards — conductors, tech-leads, and any agent with a
## Scope Card Executionsection. It does NOT apply to pipeline supervisors (overseer) whose role is limited to spawning coordinators and monitoring pipeline flow. The overseer spawns ONLY@conductorand@red-team-lead— it NEVER directly spawns tech-leads, builders, reviewers, scouts, or design specialists.
When to spawn sovereign subagents:
- Your scope card spans multiple domains (e.g., backend + frontend + tests)
- Your task contains independently parallelizable sub-deliverables
- A sub-task requires secondary expertise (e.g., you are a tech-lead but the work is pure frontend — delegate to
@frontend-engineer) - The
parallel-dispatchskill's nesting triggers fire (>3 files, >2 features, >50% context)
When NOT to spawn (do the work yourself):
- The task is trivially small (<3 files, single concern, <50 lines of integration code)
- You ARE the specialist for this domain (e.g., you are
@backend-engineerand it's a backend task) - Spawning would create more overhead than value (single-file fix, quick config change)
- You are a pipeline supervisor (overseer) — delegate to your conductor, not to builders
Sovereignty principle:
Each spawned subagent operates autonomously within its scope card boundaries. It reads its role file, loads its skills, makes implementation decisions, runs its own quality checks, and reports completion. The parent does NOT micromanage — it decomposes, dispatches, and validates results.
Anti-pattern: A Tech-Lead implementing all backend + frontend + test code itself instead of dispatching
@backend-engineer,@frontend-engineer, and@test-automation-engineerin parallel. This defeats the purpose of the multi-agent hierarchy and serializes work that could run concurrently.
Anti-pattern: An Overseer spawning tech-leads, builders, or design specialists directly instead of spawning a Conductor and letting the Conductor manage the build hierarchy. This flattens the pipeline and removes orchestration control.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

