Token导航 LogoToken导航

Agent Skill · 研究检索

synapse-a2a(突触 a2a)

synapse-a2a 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

synapse-a2a 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 15,679。

总安装 7,668周安装 326GitHub Stars 4下载 2,686核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:synapse-a2a(突触 a2a)
来源仓库:https://github.com/s-hiraoku/synapse-a2a
仓库路径:skills/synapse-a2a
安装命令:
npx skills add https://github.com/s-hiraoku/synapse-a2a --skill synapse-a2a
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/s-hiraoku/synapse-a2a --skill synapse-a2a

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

synapse-a2a 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。适用于知识图谱构建、语义关联发现或智能体协同等研究检索类任务场景。通过关键词、任务描述或来源线索触发检索,返回结构化候选信息供进一步核验。

安装命令为 npx skills add https://github.com/s-hiraoku/synapse-a2a --skill synapse-a2a。使用前建议确认权限范围、维护状态,以及是否会触发联网或文件读写操作。

来源仓库内路径:skills/synapse-a2a

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/s-hiraoku/synapse-a2a --skill synapse-a2a;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

synapse-a2a 怎么安装?

在终端执行 npx skills add https://github.com/s-hiraoku/synapse-a2a --skill synapse-a2a。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

synapse-a2a 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

synapse-a2a 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

synapse-a2a 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

synapse-a2a 用的人多吗?

公开数据是累计安装 7,668 次,近一周安装 326 次,下载 2,686 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

synapse-a2a 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
synapse-a2a

突触 a2a · 本页

7,6684操作浏览器MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Synapse A2A Communication

Inter-agent communication framework via Google A2A Protocol.

Worktree Discipline (subagents, read this first)

NEVER cd into .synapse/worktrees/<name>/ directories. Subagents (Claude Code Agent tool, Codex subprocess, and any other sub-process driven by the parent session) inherit a persistent shell from the parent. A stray cd into a worktree leaks out of the subagent turn and silently corrupts the parent's working directory — git status, git diff, and even git commit then land on the wrong worktree, which wastes debugging time and can put commits on the wrong branch. Rules for working with .synapse/worktrees/: - Do not cd into a worktree, ever. Stay in the original working directory for the entire session. - Read and write files inside a worktree using absolute paths only (for example Read /Volumes/.../.synapse/worktrees/foo/src/bar.py, not cd.synapse/worktrees/foo && cat src/bar.py). - Run git against a worktree with git -C /abs/path/to/worktree... instead of changing directory. - Worktrees are managed by Synapse (synapse spawn --worktree, synapse team start --worktree). Treat them as read/write data surfaces, not as places to live. If you need to operate from inside a worktree (e.g. running pytest there), spawn a dedicated agent for it with synapse spawn --worktree rather than changing the parent shell's directory.

Quick Reference

TaskCommand
List agentssynapse list for humans (auto-refresh, interactive: arrows/1-9 select, Enter jump, k kill, / filter). For AI/scripts use synapse list --json, synapse list --plain, or MCP list_agents
Agent detailsynapse status <target> [--json]
Stuck-agent watchdog (Stage 1)synapse watchdog check [--alarm-only] [--json] (one-shot heuristic scan; #646)
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>
Reply with failuresynapse reply --fail "<reason>"
Interrupt (priority 4)synapse interrupt <target> "<msg>"
Send keys to PTY (escape hatch for TUI dialogs; #695)synapse send-keys <target> <keys> (e.g. a for codex "don't ask again", \r for Enter; bypasses A2A — use when an agent is stuck on an interactive dialog without synapse jump)
Spawn agentsynapse spawn <type> --name <n> --role "<r>" -- <tool-specific-automation-args>
Spawn + send first task (preferred for delegation)synapse spawn <type> --name <n> --role "<r>" --task-file <path> --task-timeout 600 --notify
Spawn with worktreesynapse spawn <type> --worktree --name <n> --role "<r>" -- <tool-specific-automation-args>
Team startsynapse team start <homogeneous-profiles...> [--worktree] -- <tool-specific-automation-args>
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
Cleanup orphanssynapse cleanup --dry-run (list); synapse cleanup -f (kill all orphans whose parent crashed/cleared)
Attach filessynapse send <target> "<msg>" --attach <file> --wait
Saved agentssynapse agents list / synapse spawn <agent_id>
Post to Canvassynapse canvas post <format> "<body>" --title "<title>"
Link previewsynapse canvas link "<url>" --title "<title>"
Post templatesynapse canvas briefing '<json>' --title "<title>"
Post plan cardsynapse canvas plan '<json>' --title "<title>" (Mermaid DAG + step list with status tracking)
Open Canvassynapse canvas open (auto-starts server, opens browser)
Restart Canvassynapse canvas restart (stop + start; use when canvas status reports ⚠ STALE after upgrade)
Sync workflow skillssynapse workflow sync (regenerate skills from workflow YAMLs, remove orphans)
Run workflow (auto-spawn)synapse workflow run <name> --auto-spawn (spawn missing agents on the fly)
Multi-agent patternssynapse map init/list/show/run/status/stop (built-in: generator-verifier, orchestrator-subagent, agent-teams, message-bus, shared-state)
Wiki ingest`synapse wiki ingest <source> [--scope project\global]` (ingest a source file into the wiki)
Wiki query`synapse wiki query "<question>" [--scope project\global]` (search wiki pages)
Wiki lint`synapse wiki lint [--scope project\global]` (validate wiki consistency)
Wiki status`synapse wiki status [--scope project\global]` (show wiki index stats)

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 exists, need to delegate a taskSpawn + task in one command: synapse spawn <type> --name <n> --role "<r>" --task-file <spec.md> --task-timeout 600 --notify. This spawns, waits for READY, and sends the first task — no manual readiness polling needed.
Need a bare agent (no initial task)synapse spawn <type> --name <n> --role "<r>" (send tasks later via synapse send)
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

Recommended Collaboration Gate (3+ phases OR 10+ file changes): Consider these steps before diving into large work:

  1. synapse list --json or MCP list_agents — check available agents
  2. synapse memory search "<topic>" — check if someone already solved this
  3. Build Agent Assignment Plan (Phase / Agent / Rationale) when delegation is beneficial
  4. Spawn specialists if needed (prefer different model types for diversity)

Skip this gate for small/medium tasks where the overhead exceeds the benefit.

Use Synapse Features Actively

FeatureWhy It MattersCommands
Shared MemoryCollective knowledge survives agent restartssynapse memory save/search/list
File SafetyLocking prevents data loss when two agents edit the same file -- skip inside worktrees (SYNAPSE_WORKTREE_PATH)synapse 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
CanvasVisual dashboard for sharing rich cards and templates (briefing, comparison, dashboard, steps, slides, plan); cards downloadable as Markdown, JSON, CSV, or native format via browser button or GET /api/cards/{card_id}/downloadsynapse canvas post/link/briefing/plan/open/list/restart
Agent ControlBrowser-based agent management via Canvas #/admin view (select agents, send messages, view responses, double-click agent row to jump to terminal)synapse canvas open → navigate to #/admin
Workflow ViewBrowser-based workflow management via Canvas #/workflow view (list workflows, inspect steps, trigger runs, monitor progress with live SSE updates; run history persisted to SQLite across restarts)synapse canvas open → navigate to #/workflow
Harnesses ViewBrowser-based browser for agent harness resources at Canvas #/harnesses — sub-views #/harnesses/skills (SKILL.md inventory across user/project/synapse/plugin scopes, scanned per active project root) and #/harnesses/mcp (MCP server configs from project .mcp.json per active root, plus user-scope: Claude Code ~/.claude.json, Codex ~/.codex/config.toml, Gemini ~/.gemini/settings.json, OpenCode ~/.config/opencode/opencode.json, and Claude Desktop config)synapse canvas open → navigate to #/harnesses
Plan CardsMermaid DAG + step list with dependency visualizationsynapse canvas plan
LLM WikiStructured knowledge base for ingesting, querying, and validating project/global docssynapse wiki ingest/query/lint/status
Smart SuggestMCP tool that analyzes prompts and suggests team/task splits for large workMCP tool: analyze_task
Proactive ModeTask-size-based feature usage guide (SYNAPSE_PROACTIVE_MODE_ENABLED=true)See references/features.md
MCP BootstrapDistribute instructions via MCP resources for compatible clients (opt-in, including Copilot via tools-only). MCP tools: bootstrap_agent, list_agents, analyze_tasksynapse mcp serve / python -m synapse.mcp

When to Use Canvas

Use Canvas when the output benefits from visual structure or will be referenced later:

  • Use Canvas for: diagrams, comparison tables, multi-step plans, design docs, results with rich formatting
  • Skip Canvas for: simple completion reports, single-file changes, quick status updates (use broadcast or reply instead)

Template selection guide:

  • briefing — structured reports, status updates, release summaries
  • comparison — before/after, option trade-offs, review diffs
  • steps — plans, migration sequences, execution checklists
  • slides — walkthroughs, demos, page-by-page narratives
  • dashboard — multi-widget operational snapshots, compact status boards
  • plan — task DAGs with Mermaid visualization and step tracking

Use raw synapse canvas post <format> for single blocks; templates for multi-section content.

Spawning Decision Table

⚠️ Same-model rule — try subagents first. When a Claude Code agent needs another claude (or a codex agent needs another codex), use the in-process subagent (Agent / Task tool for Claude, subprocess for Codex) before reaching for synapse spawn. Spawning the same model on the same account shares the rate-limit window — it doubles consumption against the same quota instead of distributing it. Reserve same-model synapse spawn for cases where the helper must outlive the parent session, needs file isolation that subagents can't provide, or holds a distinct long-running role. synapse spawn is the right tool for cross-model delegation (Claude → codex / gemini), agents that lack subagent support (Gemini / OpenCode / Copilot), or persistent multi-task helpers.

Default spawn policy: When using synapse spawn, pass the underlying CLI's tool-specific automation args after -- so spawned agents can run unattended. For most CLIs this is an approval-skip / auto-approve flag; for OpenCode use --agent build to select the build agent profile and rely on OpenCode's permission config for approval behavior.

Apply the same rule to synapse team start: include the appropriate forwarded CLI args by default, and keep teams homogeneous when those args are CLI-specific.

Common defaults (Synapse already injects these automatically — pass --no-auto-approve to opt out):

  • Claude Code: synapse spawn claude --name <n> --role "<r>" -- --permission-mode=auto
  • Gemini CLI: synapse spawn gemini --name <n> --role "<r>" -- --approval-mode=yolo
  • Codex CLI: synapse spawn codex --name <n> --role "<r>" (synapse injects -cdefault_permissions=":workspace"; Codex 0.128+ removed --full-auto)
  • OpenCode: synapse spawn opencode --name <n> --role "<r>" -- --agent build (selects the build agent profile; not a skip-approval flag)
  • Copilot CLI: synapse spawn copilot --name <n> --role "<r>" -- --allow-all
  • Claude team: synapse team start claude claude -- --permission-mode=auto
  • Gemini team: synapse team start gemini gemini -- --approval-mode=yolo
  • Codex team: synapse team start codex codex (synapse injects -cdefault_permissions=":workspace")
  • OpenCode team: synapse team start opencode opencode -- --agent build (selects the build agent profile; permission prompts still depend on OpenCode config)
  • Copilot team: synapse team start copilot copilot -- --allow-all
2026-04 migration: Anthropic deprecated --dangerously-skip-permissions in favor of --permission-mode=auto (safety classifier instead of disabling all checks). Gemini similarly recommends --approval-mode=yolo over the legacy --yolo / -y short forms. Synapse now injects the new flags by default; the legacy forms still work and remain in each profile's alternative_flags.
ConditionAction
Existing READY agent can handle itsynapse send — reuse is faster (avoids startup overhead)
Same-model helper needed (Claude → claude, Codex → codex)Use the in-process subagent first (Agent/Task tool for Claude, subprocess for Codex). synapse spawn same-model shares the rate-limit window.
Need parallel executionsynapse spawn with --worktree -- <tool-specific-automation-args> for file isolation (cross-model preferred)
Task needs a different model's strengthssynapse spawn a different type (Claude spawns Gemini / Codex, etc.)
User specified agent countFollow exactly
Single focused subtaskSubagent (same model) or synapse spawn (cross model)
N independent subtasksSubagents for same-model fan-out, synapse spawn for cross-model

Spawn lifecycle (preferred, one-command): synapse spawn --task-file... --task-timeout 600 --notify → wait for A2A completion notification → evaluate result → synapse kill <name> -f → confirm in synapse list --json

Legacy lifecycle (only when you need control between spawn and first task): spawn → poll synapse list --json or synapse status <target> --json for READY (allow several minutes; default 30s timeout is too short for most profiles) → synapse send --notify → evaluate → synapse kill -f → confirm cleanup.

⚠️ Common pitfall: sending to an agent that is not yet READY either hangs at the HTTP layer or blocks on the internal readiness wait. Either use synapse spawn --task-file (preferred — it handles readiness for you), or explicitly confirm "status": "READY" before calling synapse send. Do not assume 30 seconds is enough — most profiles take 1-5 minutes.

Agent status set (synapse list --json .status):

StatusMeaningAction
READYIdle, can accept new worksynapse send
SENDING_REPLYTemporarily sending an outbound A2A send/reply POSTWait; previous status is restored after the POST finishes
PROCESSINGActively working a taskWait, or synapse interrupt if stuck
WAITINGAwaiting a permission/approval promptsynapse approve / synapse reject
WAITING_FOR_INPUTTask is paused asking for non-permission input (#538)synapse reply <task_id> with the answer
RATE_LIMITEDLast task failed due to LLM provider rate limit (#561)Wait for the provider window to reset, then re-send
DONETask complete; demotes to READY after ~10sRead result, then proceed
SHUTTING_DOWNAgent is exitingDo not send
Stuck on a CLI dialog (not A2A WAITING)? When an agent looks idle but is blocked on its own TUI prompt (codex edit-confirmation, model picker, rate-limit dialog), use synapse send-keys <target> <keys> to write directly to the PTY without synapse jump. Example: synapse send-keys Impl a sends the codex "don't ask again" shortcut. (#695)

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

# Preferred: one-command spawn + delegate (handles readiness wait internally)
synapse spawn gemini \
    --name Tester \
    --role "test writer" \
    --task-file /tmp/test-spec.md \
    --task-timeout 600 \
    --notify
# (do other work; receive async A2A notification when Tester finishes)
# Evaluate result, then cleanup
synapse kill Tester -f
synapse list --json                       # Verify cleanup (AI-safe)

If synapse kill fails or the agent still appears in synapse list --json, 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; sender history still updates best-effort on completion)

Worker Agent Guide

When you receive a task from a manager:

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 (skip if SYNAPSE_WORKTREE_PATH is set): 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. Report to manager: synapse send <manager> "Done: <summary>" --silent

On Failure

  1. 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, Canvas

平台分布

Claude Code

27.18%
按下载量换算730

OpenCode

23.38%
按下载量换算628

Codex

19.04%
按下载量换算511

Gemini CLI

12%
按下载量换算322

github-copilot

8.07%
按下载量换算217

windsurf

3.44%
按下载量换算92

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills