Agent Skill
2/7/2026

synapse-a2a

This skill provides comprehensive guidance for inter-agent communication using the Synapse A2A framework. Use this skill when sending messages to other agents via synapse send/reply commands, understanding priority levels, handling A2A protocol operations, managing task history, configuring settings, or using File Safety features for multi-agent coordination. Automatically triggered when agent communication, A2A protocol tasks, history operations, or file safety operations are detected.

S
s
0GitHub Stars
1Views
npx skills add s-hiraoku/synapse-a2a

SKILL.md

Namesynapse-a2a
DescriptionThis skill provides comprehensive guidance for inter-agent communication using the Synapse A2A framework. Use this skill when sending messages to other agents via synapse send/reply commands, understanding priority levels, handling A2A protocol operations, managing task history, configuring settings, or using File Safety features for multi-agent coordination. Automatically triggered when agent communication, A2A protocol tasks, history operations, or file safety operations are detected.

name: synapse-a2a description: >- Synapse A2A agent communication — sending messages, spawning agents, delegating tasks, sharing memory, and coordinating file edits. Use this skill when: running synapse send/reply/broadcast/interrupt, spawning agents with synapse spawn or synapse team start, managing the task board with synapse tasks, sharing knowledge with synapse memory, locking files with synapse file-safety, checking agent status with synapse list/status, or orchestrating any multi-agent workflow.

Synapse A2A Communication

Inter-agent communication framework via Google A2A Protocol.

Quick Reference

TaskCommand
List agentssynapse list (auto-refresh, interactive: arrows/1-9 select, Enter jump, k kill, / filter)
Agent detailsynapse status <target> [--json]
Send messagesynapse send <target> "<msg>" (default: --notify; --from auto-detected)
Broadcastsynapse broadcast "<msg>"
Wait for replysynapse send <target> "<msg>" --wait
Fire-and-forgetsynapse send <target> "<msg>" --silent
Replysynapse reply "<response>"
Reply to specificsynapse reply "<response>" --to <sender_id>
Interrupt (priority 4)synapse interrupt <target> "<msg>"
Spawn agentsynapse spawn <type> --name <n> --role "<r>"
Spawn with worktreesynapse spawn <type> --worktree --name <n> --role "<r>"
Team startsynapse team start claude gemini [--worktree]
Create tasksynapse tasks create "<subject>" -d "<desc>" --priority <n>
Assign tasksynapse tasks assign <id> <agent>
Complete tasksynapse tasks complete <id>
Approve plansynapse approve <id>
Reject plansynapse reject <id> --reason "<feedback>"
Save knowledgesynapse memory save <key> "<content>" --tags <t> --notify
Search knowledgesynapse memory search "<query>"
Lock filesynapse file-safety lock <file> <agent_id> --intent "..."
Check lockssynapse file-safety locks
Task historysynapse history list --agent <name>
Kill agentsynapse kill <name> -f
Attach filessynapse send <target> "<msg>" --attach <file> --wait
Saved agentssynapse agents list / synapse spawn <agent_id>

Collaboration Decision Framework

Evaluate collaboration opportunities before starting work:

SituationAction
Small task within your roleDo it yourself
Task outside your role, READY agent existsDelegate: synapse send --notify or --silent
No suitable agent existsSpawn: synapse spawn <type> --name <n> --role "<r>"
Stuck or need expertiseAsk: synapse send <target> "<question>" --wait
Completed a milestoneReport: synapse send <manager> "<summary>" --silent
Discovered a patternShare: synapse memory save <key> "<pattern>" --tags ... --notify

Mandatory Collaboration Gate (3+ phases OR 10+ file changes):

  1. synapse list — check available agents
  2. synapse memory search "<topic>" — check shared knowledge
  3. synapse tasks create — register work on the task board
  4. Build Agent Assignment Plan (Phase / Agent / Rationale)
  5. Spawn specialists if needed (prefer different model types for diversity)

Use Synapse Features Actively

FeatureWhy It MattersCommands
Task BoardTransparent work tracking prevents duplicationsynapse tasks create/assign/complete/fail/reopen
Shared MemoryCollective knowledge survives agent restartssynapse memory save/search/list
File SafetyLocking prevents data loss when two agents edit the same filesynapse file-safety lock/unlock/locks
WorktreeFile isolation eliminates merge conflicts in parallel editingsynapse spawn --worktree
BroadcastTeam-wide announcements reach all agents instantlysynapse broadcast "<msg>"
HistoryAudit trail tracks what happened and whensynapse history list/show/stats
Plan ApprovalGated execution ensures quality before actionsynapse approve/reject

Spawning Decision Table

ConditionAction
Existing READY agent can handle itsynapse send — reuse is faster (avoids startup overhead)
Need parallel executionsynapse spawn with --worktree for file isolation
Task needs a different model's strengthsSpawn a different type (Claude spawns Gemini, etc.)
User specified agent countFollow exactly
Single focused subtaskSpawn 1 agent
N independent subtasksSpawn N agents

Spawn lifecycle: spawn → confirm in synapse list → wait for READY → send task → evaluate result → kill → confirm cleanup in synapse list

Killing spawned agents after completion frees ports, memory, and PTY sessions, and prevents orphaned agents from accidentally accepting future tasks.

# Spawn, delegate, verify, cleanup
synapse spawn gemini --name Tester --role "test writer"
synapse list                              # Verify agent appears
# Wait for readiness (or rely on server-side Readiness Gate)
synapse send Tester "Write tests for src/auth.py" --wait
# Evaluate result, then cleanup
synapse kill Tester -f
synapse list                              # Verify cleanup

If synapse kill fails or the agent still appears in synapse list, retry with -f, check the agent status/logs, and report the cleanup failure instead of leaving an orphaned agent behind.

Response Mode Guide

Choose based on whether you need the result:

ModeFlagUse When
Wait--waitYou need the answer before continuing (questions, reviews)
Notify--notify (default)Async — you'll be notified on completion
Silent--silentFire-and-forget delegation (no response needed)

Worker Agent Guide

When you receive a task from a manager or pick one from the task board:

On Task Receipt

  1. Start work immediately ([REPLY EXPECTED] requires a reply; otherwise no reply needed)
  2. Check shared knowledge: synapse memory search "<task topic>"
  3. Lock files before editing: synapse file-safety lock <file> $SYNAPSE_AGENT_ID

During Work

  • Report progress if task takes >5 minutes: synapse send <manager> "Progress: <update>" --silent
  • Report blockers immediately: synapse send <manager> "<question>" --wait
  • Save findings: synapse memory save <key> "<finding>" --tags <topic>
  • You can delegate subtasks too — spawn helpers (prefer different model types)
  • Always clean up agents you spawn: synapse kill <name> -f

On Completion

  1. Update task board: synapse tasks complete <task_id>
  2. Report to manager: synapse send <manager> "Done: <summary>" --silent

On Failure

  1. Update task board: synapse tasks fail <task_id> --reason "<reason>"
  2. Report details: synapse send <manager> "Failed: <error details>" --silent

Related Skills

SkillPurpose
synapse-managerMulti-agent orchestration workflow (delegation, monitoring, verification)
synapse-reinstRe-inject instructions after /clear or context reset

References

For detailed information, consult these reference files:

ReferenceContents
references/commands.mdFull CLI command documentation with all options
references/api.mdA2A endpoints, readiness gate, error handling
references/examples.mdMulti-agent workflow examples and patterns
references/file-safety.mdFile locking workflow and commands
references/messaging.mdSending, replying, priorities, status states, interactive controls
references/spawning.mdSpawn lifecycle, patterns, worktree, permissions, API
references/collaboration.mdAgent naming, external agents, auth, resume, path overrides
references/features.mdSessions, workflows, saved agents, tokens, skills, settings
Skills Info
Original Name:synapse-a2aAuthor:s