con un clic
multi-agent-collab
Multi-Agent Collaboration Skill
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Multi-Agent Collaboration Skill
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Safe, deny-by-default intake workflow for the T3MP3ST offensive-security capability candidate.
Security audit and vulnerability scanning workflow. Use when reviewing code for security issues, checking configurations, or validating hardening measures.
Context Efficiency Skill
System Dev Skill — NixOS-Dev-Quick-Deploy Harness
Query structured wiki sections in .understand-anything/wiki/ for subsystem overviews, architecture, and function discovery — before reading raw files
Agent Tool Map Skill
| name | multi-agent-collab |
| description | Multi-Agent Collaboration Skill |
orchestrator, multi-agent, review, handoff, delegation, RESUME, PULSE, role, slice
Designing a review cycle; handing off between architect/implementer/reviewer; coordinating parallel agents; signaling task completion; structuring RESUME.json for cross-agent continuity.
| Role | Can do | Cannot do |
|---|---|---|
orchestrator | Assign slices, accept work, commit integration, open/close sessions | Implement code itself without reviewer |
architect | Draft architecture, write PRDs, flag risks | Commit without orchestrator review |
implementer | Edit files within assigned slice, validate, propose commit | Self-promote to reviewer, re-scope |
reviewer | Issue pass/fail verdict against slice criteria | Review own work |
Sub-agent non-orchestrator rule: sub-agents execute only assigned slices. Do not re-scope, do not route other agents, do not finalize acceptance.
Orchestrator (Claude)
├─ 1. Write PRD + assign slice to implementer
├─ 2. delegate-to-gemini --role implementer --prompt-file /tmp/slice.txt
├─ 3. delegate-to-gemini --role reviewer --prompt "Review commit X per criteria Y"
└─ 4. Accept or REQUEST_REVISION; commit final integration
Single-agent multi-role (when team not needed):
└─ Single agent handles all roles sequentially, marks each role switch explicitly
Pass implementer exactly the slice context. Do NOT pass full HANDOFF.md — pass only:
CORRECT pattern (supersedes assigning a DIFFERENT role per agent — that conflates angle-diversity with model-diversity and under-covers each angle):
Every agent plays the SAME expert-team baseline per PASS. Run MULTIPLE passes to cover the different angles.
Mechanism (per pass, via aq-collaborate):
aq-collaborate review <angle-item> --agent <model>-<baseline> --verdict approve|reject --score S --feedback "..."aq-collaborate decide <angle-item> → weighted consensus for that angle.ANTI-PATTERN (do NOT): one pass where each agent gets a different role. You then cannot tell a role artifact from a real disagreement, and only one model sees each angle.
Every phase — grounding, research, PRD, plans, collaborations, integrations, validations — engages ALL available agents, not just the orchestrator. The roster is dynamic (the local model changes; currently Qwen). Invocation paths:
delegate-to-local --mode agent (headless, live).delegate-to-codex --prompt (headless CLI, live).aq-collaborate +
PULSE.log, the Antigravity IDE agent reads + submits its vote/contribution async.Aggregation point = aq-collaborate (each agent submits a review per pass; decide
computes consensus once all available agents have voted). Do not proceed on a partial
roster unless an agent is genuinely unavailable — record which agents participated.
{
"current_objective": "One sentence: what are we building right now",
"phase": "Phase 86",
"todo_snapshot": [
"done: slice 1 — attention_queue.py",
"in-progress: slice 2 — aq-alerts CLI",
"pending: slice 3 — dashboard endpoint",
"pending: slice 4 — NixOS shell hook"
],
"uncommitted_changes": [
"scripts/ai/lib/attention_queue.py",
"scripts/ai/aq-alerts"
],
"resume_hint": "Next: implement dashboard /api/aistack/alerts/status route in aistack.py"
}
Write RESUME.json: when starting a new user task AND after each completed todo item. This is the compaction anchor — it must survive a 401 summarization failure.
When transferring work to another agent:
1. Update RESUME.json with current state
2. Append to PULSE.log: [ISO-timestamp] [agent] [handoff]: scope — target agent + objective
3. Write HANDOFF.md entry with:
- What was completed (with commit hash)
- What's in-progress (file + line)
- What's pending (next slice)
- Any blockers discovered
4. Pass HANDOFF.md path to receiving agent (not content — they read it)
Task completion signal (from sub-agent to orchestrator):
1. Update PULSE.log: [timestamp] [agent] [complete]: slice-name — outcome
2. Update RESUME.json: mark todo item as done, update resume_hint
3. If committing: run tier0 gate first
4. Output summary: "VERDICT: PASS|FAIL — [brief outcome]" as last line
Drop file format for async task queuing:
# .agents/drops/<id>.drop.yaml
title: "Task title (no injection chars)"
body: "Task description — no $(), backticks, or && allowed"
severity: medium # critical|high|medium|low
agent: gemini # optional: preferred agent
human_gate: false # true = require human approval before execution
rebuild_required: false # true = task requires nixos-rebuild after completion
Security: DropSpec rejects $(, `, && in title/body. Use plain text only.
Rule: Sub-agents get slice-relevant context only. Never pass full session history.
What to include per slice:
- slice_objective (1-2 sentences)
- relevant_files (paths only, not content — agent reads them)
- acceptance_criteria (explicit pass/fail conditions)
- constraints (ports, security rules, existing patterns to follow)
- reference_skills (list skill names to load, e.g., ["apparmor-rules", "nixos-system"])
What NOT to include:
When parallel implementers produce conflicting output:
fact_type: "conflict_resolution"