[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D42TBQJ8W9E426TPQGDYSX":3,"skill-same:01M6D42TBQJ8W9E426TPQGDYSX":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6D42TBQJ8W9E426TPQGDYSX","a2a-skill",null,"Use this skill when agents need to communicate peer-to-peer via the a2a shared SQLite bus. Register agents, send\u002Freceive messages, broadcast announcements, search conversation history, and monitor bus stats — all without a central orchestrator.","javimosch\u002Fsupercli","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M6D3F2EBNWNJ358Q90P5YQR1",57,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fa2a-skill\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"a2a","a2a skill","monitor","search","stats","messages","peer-to-peer","sqlite","history","orchestrator","use","peer","conversation","shared","2026-11-10 10:12:30",false,"---\nname: a2a-skill\ndescription: Use this skill when agents need to communicate peer-to-peer via the a2a shared SQLite bus. Register agents, send\u002Freceive messages, broadcast announcements, search conversation history, and monitor bus stats — all without a central orchestrator.\n---\n\n# a2a-skill Plugin — Quickstart Guide\n\nThe **a2a-skill** plugin wraps the [a2a](https:\u002F\u002Fgithub.com\u002Fjavier-arancibia\u002Fa2a-skill) agent-to-agent messaging system for SuperCLI. It lets any number of AI coding agents (Claude Code, OpenCode, pi, ...) share messages over a local SQLite bus.\n\n## Commands\n- `a2a-skill \u003Cresource> \u003Caction>` — Execute a2a-skill commands\n- `a2a-skill self version` — Show a2a-skill help\u002Fversion info\n- `a2a-skill self learn` — Teach the agent the a2a-skill quickstart guide (run: sc skills teach a2a-skill:quickstart)\n- `a2a-skill project init` — Create a new a2a project database at ~\u002F.a2a\u002F{project}\u002Fdatabase.db. Project resolves from A2A_PROJECT env or basename($PWD).\n- `a2a-skill project info` — Show resolved project info (name, db path, exists). Project resolves from A2A_PROJECT env or basename($PWD).\n- `a2a-skill agent register` — Register a new agent on the bus (or upsert if already registered). Set A2A_PROJECT for custom project.\n- `a2a-skill agent unregister` — Remove an agent from the bus\n- `a2a-skill agent list` — List all registered agents with their role, CLI, status, and PID\n- `a2a-skill agent status` — Update an agent's status (active, idle, done, blocked)\n- `a2a-skill message send` — Send a message to an agent or broadcast to all ('all' = broadcast to everyone)\n- `a2a-skill message recv` — Receive messages addressed to an agent (blocks with --wait)\n- `a2a-skill message peek` — Peek at recent messages without marking them read (observable by all)\n- `a2a-skill message thread` — Show all messages in a thread\n- `a2a-skill message search` — Search messages by content (FTS5 with LIKE fallback)\n- `a2a-skill message wait` — Block until N unread messages arrive for an agent, or timeout\n- `a2a-skill stats show` — Show bus statistics: message count, agent counts, top senders\n- `a2a-skill clear run` — Delete the project database (requires --yes confirmation). Set A2A_PROJECT for custom project.\n- `a2a-skill _ _` — Passthrough: run any raw a2a command. Useful when you need --project flag. Example: a2a-skill _ _ list --project myapp\n\n## Architecture\n\n```\nAgent A (Claude) ──┐\n                   ├──► ~\u002F.a2a\u002F{project}\u002Fdatabase.db (WAL mode)\nAgent B (OpenCode) ─┘      ▲\n                            │\nAgent C (pi) ──────────────┘\n```\n\n- **No central orchestrator** — agents write to and read from the same SQLite database\n- **Per-agent read tracking** — each agent sees messages independently\n- **Broadcast support** — send a message to `all` \u002F `*` to reach every registered agent\n- **Thread support** — group messages under a `--thread` ID for topic-based conversations\n- **TTL support** — messages auto-expire after N seconds\n- **WAL mode** — safe for concurrent writers from different processes\n\n## Prerequisites\n\n```bash\n# 1. Install a2a\ngit clone https:\u002F\u002Fgithub.com\u002Fjavier-arancibia\u002Fa2a-skill.git\ncd a2a-skill\nchmod +x install.sh && .\u002Finstall.sh\n\n# 2. Verify\na2a init\na2a list\n\n# 3. Install the SuperCLI plugin (if not already)\nsupercli plugins install .\u002Fplugins\u002Fa2a-skill --on-conflict replace --json\n```\n\n## Available Commands\n\nAll commands are invoked via `sc a2a-skill \u003Cresource> \u003Caction>`.\n\n### Self\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill self version` | Show a2a help\u002Finfo |\n| `sc a2a-skill self learn` | Teach the agent this quickstart guide |\n\n### Project Management\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill project init --project my-team` | Create a new project database |\n| `sc a2a-skill project info --project my-team` | Show project info (path, exists) |\n\n### Agent Management\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill agent register alice --role researcher --cli claude` | Register an agent |\n| `sc a2a-skill agent register bob --role critic --cli opencode --upsert` | Register or update |\n| `sc a2a-skill agent list` | List all registered agents (JSON) |\n| `sc a2a-skill agent status done --as alice` | Update agent state (active\u002Fidle\u002Fdone\u002Fblocked) |\n| `sc a2a-skill agent unregister bob` | Remove an agent from the bus |\n\n### Messaging\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill message send alice \"hello\" --from bob` | Send a direct message |\n| `sc a2a-skill message send all \"status check\" --from alice` | Broadcast to all agents |\n| `sc a2a-skill message recv --as alice` | Fetch unread messages |\n| `sc a2a-skill message recv --as alice --wait 10` | Block 10s waiting for messages |\n| `sc a2a-skill message peek --limit 10` | Peek at recent bus activity |\n| `sc a2a-skill message thread T-42 --json` | Show all messages in a thread |\n| `sc a2a-skill message search \"bug AND critical\" --json` | Full-text search |\n| `sc a2a-skill message wait --as alice --count 3 --timeout 30` | Wait for N messages |\n\n### Bus Management\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill stats show` | Show bus statistics |\n| `sc a2a-skill clear run --yes` | Delete the project database |\n\n### Passthrough (any raw a2a command)\n```\nsc a2a-skill _ _ init\nsc a2a-skill _ _ list --json\nsc a2a-skill _ _ send all \"hello world\" --from alice --project my-team\n```\n\n## Quickstart Workflow\n\n```bash\n# 1. Initialize the project\nsc a2a-skill project init --project my-sprint\n\n# 2. Register agents\nsc a2a-skill agent register alice --role researcher --cli claude\nsc a2a-skill agent register bob --role critic --cli opencode\n\n# 3. Alice sends a message to Bob\nsc a2a-skill message send bob \"Review this plan: ...\" --from alice --thread PLANNING\n\n# 4. Bob receives\nsc a2a-skill message recv --as bob\n\n# 5. Bob replies\nsc a2a-skill message send alice \"Looks good, one concern: ...\" --from bob --thread PLANNING\n\n# 6. Alice checks for replies (blocks 15s)\nsc a2a-skill message recv --as alice --wait 15\n\n# 7. Broadcast update to everyone\nsc a2a-skill message send all \"Sprint planning complete\" --from alice --thread PLANNING\n\n# 8. Check bus stats\nsc a2a-skill stats show\n\n# 9. Search conversation history\nsc a2a-skill message search \"planning\" --json\n```\n\n## Agent-to-Agent Coordination Patterns\n\n### Task Claim Protocol\nUse broadcast messages for coordination:\n```bash\n# Agent claims a task\nsc a2a-skill message send all \"CLAIM: fix login bug — alice\" --from alice\n\n# Other agent backs off\nsc a2a-skill message send all \"ACK-CLAIM: alice backing off from login bug — bob\" --from bob\n```\n\n### Status Updates\n```bash\n# Mark yourself done when finished\nsc a2a-skill agent status done --as alice\n\n# Check who's still active\nsc a2a-skill agent list --json\n```\n\n### Role-Based Workflows\n```bash\n# Register with roles\nsc a2a-skill agent register reviewer --role code-reviewer --cli claude --upsert\nsc a2a-skill agent register tester --role qa-engineer --cli opencode --upsert\n\n# Reviewer asks tester to verify\nsc a2a-skill message send tester \"PR #42 needs QA verification\" --from reviewer --thread PR-42\n```\n\n## Best Practices\n\n1. **Always register before sending** — `a2a send` and `a2a recv` verify the agent exists\n2. **Use `--upsert` for re-registration** — avoids \"already registered\" errors\n3. **Use `--wait` for blocking recv** — agents that poll in a loop will spin\n4. **Use `--thread` for topic grouping** — makes `a2a thread \u003Cid>` and `a2a search` more useful\n5. **Set `--ttl` for ephemeral messages** — CLAIM status updates can expire after 5 minutes\n6. **Use `--json` for programmatic consumption** — all major commands support JSON output\n7. **Use `--peek` to inspect without marking read** — useful for monitoring agents\n8. **Use project-level isolation** — different teams\u002Fprojects get different databases\n\n## Key Concepts\n\n- **The bus is the source of truth** — anything not on the bus didn't happen\n- **Read-tracking is per-agent** — a broadcast is \"seen\" once by each agent, individually\n- **No locking** — coordination is by convention (use the Task Claim protocol)\n- **WAL mode** — safe for concurrent writers from different processes\n- **Zero external dependencies** — only Python stdlib + sqlite3\n\n## Further Reading\n\n- [a2a-skill GitHub Repository](https:\u002F\u002Fgithub.com\u002Fjavier-arancibia\u002Fa2a-skill)\n- `sc a2a-skill self version` — CLI reference\n- `a2a --help` — all commands and flags\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| `a2a: no python3 with sqlite3` | Set `A2A_PYTHON=\u002Fpath\u002Fto\u002Fpython3` or install sqlite3 module |\n| `no a2a project at...` | Run `a2a init` or `sc a2a-skill project init` first |\n| `unknown sender` | Register the agent first: `a2a register \u003Cid>` |\n| `already registered` | Use `--upsert` flag when re-registering |\n| Bus is empty | Make sure agents are registered and messages were sent with correct sender IDs |\n| Concurrent writer issues | Check WAL mode: `a2a exec \"PRAGMA journal_mode\"` should return `wal` |\n| Agents don't see each other's messages | Likely a project mismatch. All agents must use the same `--project` or `A2A_PROJECT`. See \"Common pitfalls\" below. |\n| Empty log files from spawned agents | Normal — CLIs buffer stdout. Check `a2a peek` or `ps aux` instead. |\n| `--project` flag doesn't work | The Go binary expects `--project` AFTER the subcommand (`a2a peek --project X`). The Python script expects it BEFORE (`a2a.py --project X peek`). Use `A2A_PROJECT` env var for safest results. |\n\n## Common pitfalls\n\nThese were discovered while smoke-testing a2a with spawned agents. Future\nagents should review this before using the CLI.\n\n### `A2A_PROJECT` must be exported, not just set\n\nWhen spawning background agents (Pattern 3), the spawned process inherits the\nparent's environment. Writing `A2A_PROJECT=myproject` without `export` means\nthe spawned agent won't see it. It falls back to `basename($PWD)`, which may\nresolve to the wrong project.\n\n```bash\n# WRONG — not exported, spawned agents won't see it\nA2A_PROJECT=myteam\na2a-spawn --cli claude --id alice ...\n\n# RIGHT — export before spawning\nexport A2A_PROJECT=myteam\na2a-spawn --cli claude --id alice ...\n\n# ALSO RIGHT — use --project explicitly in every a2a command\na2a send bob \"hello\" --from alice --project myteam\n```\n\n### `--project` flag position: Go binary vs Python\n\nThe installed `a2a` at `~\u002F.local\u002Fbin\u002Fa2a` may be a Go binary (check with\n`file $(which a2a)`). The Go binary and the Python `a2a.py` expect `--project`\nin different positions:\n\n| Binary | Correct syntax | Wrong syntax |\n|--------|---------------|--------------|\n| **Go** (`~\u002F.local\u002Fbin\u002Fa2a`) | `a2a peek --project X` | `a2a --project X peek` ✗ |\n| **Python** (`a2a.py`) | `python3 a2a.py --project X peek` | `python3 a2a.py peek --project X` ✗ |\n\n**Safest:** Use the `A2A_PROJECT` env var — it works identically for both.\n\n```bash\nexport A2A_PROJECT=myteam\na2a peek --limit 10    # works for Go AND Python\n```\n\n### Empty agent logs ≠ stuck agent\n\nWhen spawning via `a2a-spawn`, log files (`--log FILE`) may appear empty for\nminutes. CLIs like `claude` buffer stdout and flush only on exit. Don't assume\nthe agent is stuck.\n\n**Check progress via the bus instead:**\n\n```bash\nps aux | grep claude              # verify process is running\nsc a2a-skill agent list           # check agent status (active? done?)\nsc a2a-skill message peek         # see if any messages were sent\n```\n\n### Cross-project contamination is invisible\n\nIf agents end up on different projects (each resolves `basename($PWD)` to a\ndifferent name), they silently write to different databases. No error, no\nwarning — they just never see each other.\n\n**Fix:** Always verify:\n\n```bash\nsc a2a-skill project info    # check which project you're on\nsc a2a-skill agent list      # verify all expected agents are visible\n```\n\n### Kit prompts must be project-aware\n\nWhen writing kit prompts for spawned agents, never assume `A2A_PROJECT` is\nset in the spawned environment. Either export it before spawning, or include\n`--project $PROJECT` in every `a2a` command within the kit.\n\n### Register PIDs with the right project\n\nRunning `a2a register alice --pid 1234 --upsert` uses the *current* project.\nIf `A2A_PROJECT` isn't set correctly, the PID is registered on the wrong bus.\nPass `--project` or verify `A2A_PROJECT` before running.\n","# a2a-skill Plugin — Quickstart Guide\n\nThe **a2a-skill** plugin wraps the [a2a](https:\u002F\u002Fgithub.com\u002Fjavier-arancibia\u002Fa2a-skill) agent-to-agent messaging system for SuperCLI. It lets any number of AI coding agents (Claude Code, OpenCode, pi, ...) share messages over a local SQLite bus.\n\n## Commands\n- `a2a-skill \u003Cresource> \u003Caction>` — Execute a2a-skill commands\n- `a2a-skill self version` — Show a2a-skill help\u002Fversion info\n- `a2a-skill self learn` — Teach the agent the a2a-skill quickstart guide (run: sc skills teach a2a-skill:quickstart)\n- `a2a-skill project init` — Create a new a2a project database at ~\u002F.a2a\u002F{project}\u002Fdatabase.db. Project resolves from A2A_PROJECT env or basename($PWD).\n- `a2a-skill project info` — Show resolved project info (name, db path, exists). Project resolves from A2A_PROJECT env or basename($PWD).\n- `a2a-skill agent register` — Register a new agent on the bus (or upsert if already registered). Set A2A_PROJECT for custom project.\n- `a2a-skill agent unregister` — Remove an agent from the bus\n- `a2a-skill agent list` — List all registered agents with their role, CLI, status, and PID\n- `a2a-skill agent status` — Update an agent's status (active, idle, done, blocked)\n- `a2a-skill message send` — Send a message to an agent or broadcast to all ('all' = broadcast to everyone)\n- `a2a-skill message recv` — Receive messages addressed to an agent (blocks with --wait)\n- `a2a-skill message peek` — Peek at recent messages without marking them read (observable by all)\n- `a2a-skill message thread` — Show all messages in a thread\n- `a2a-skill message search` — Search messages by content (FTS5 with LIKE fallback)\n- `a2a-skill message wait` — Block until N unread messages arrive for an agent, or timeout\n- `a2a-skill stats show` — Show bus statistics: message count, agent counts, top senders\n- `a2a-skill clear run` — Delete the project database (requires --yes confirmation). Set A2A_PROJECT for custom project.\n- `a2a-skill _ _` — Passthrough: run any raw a2a command. Useful when you need --project flag. Example: a2a-skill _ _ list --project myapp\n\n## Architecture\n\n```\nAgent A (Claude) ──┐\n                   ├──► ~\u002F.a2a\u002F{project}\u002Fdatabase.db (WAL mode)\nAgent B (OpenCode) ─┘      ▲\n                            │\nAgent C (pi) ──────────────┘\n```\n\n- **No central orchestrator** — agents write to and read from the same SQLite database\n- **Per-agent read tracking** — each agent sees messages independently\n- **Broadcast support** — send a message to `all` \u002F `*` to reach every registered agent\n- **Thread support** — group messages under a `--thread` ID for topic-based conversations\n- **TTL support** — messages auto-expire after N seconds\n- **WAL mode** — safe for concurrent writers from different processes\n\n## Prerequisites\n\n```bash\n# 1. Install a2a\ngit clone https:\u002F\u002Fgithub.com\u002Fjavier-arancibia\u002Fa2a-skill.git\ncd a2a-skill\nchmod +x install.sh && .\u002Finstall.sh\n\n# 2. Verify\na2a init\na2a list\n\n# 3. Install the SuperCLI plugin (if not already)\nsupercli plugins install .\u002Fplugins\u002Fa2a-skill --on-conflict replace --json\n```\n\n## Available Commands\n\nAll commands are invoked via `sc a2a-skill \u003Cresource> \u003Caction>`.\n\n### Self\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill self version` | Show a2a help\u002Finfo |\n| `sc a2a-skill self learn` | Teach the agent this quickstart guide |\n\n### Project Management\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill project init --project my-team` | Create a new project database |\n| `sc a2a-skill project info --project my-team` | Show project info (path, exists) |\n\n### Agent Management\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill agent register alice --role researcher --cli claude` | Register an agent |\n| `sc a2a-skill agent register bob --role critic --cli opencode --upsert` | Register or update |\n| `sc a2a-skill agent list` | List all registered agents (JSON) |\n| `sc a2a-skill agent status done --as alice` | Update agent state (active\u002Fidle\u002Fdone\u002Fblocked) |\n| `sc a2a-skill agent unregister bob` | Remove an agent from the bus |\n\n### Messaging\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill message send alice \"hello\" --from bob` | Send a direct message |\n| `sc a2a-skill message send all \"status check\" --from alice` | Broadcast to all agents |\n| `sc a2a-skill message recv --as alice` | Fetch unread messages |\n| `sc a2a-skill message recv --as alice --wait 10` | Block 10s waiting for messages |\n| `sc a2a-skill message peek --limit 10` | Peek at recent bus activity |\n| `sc a2a-skill message thread T-42 --json` | Show all messages in a thread |\n| `sc a2a-skill message search \"bug AND critical\" --json` | Full-text search |\n| `sc a2a-skill message wait --as alice --count 3 --timeout 30` | Wait for N messages |\n\n### Bus Management\n| Command | Description |\n|---------|-------------|\n| `sc a2a-skill stats show` | Show bus statistics |\n| `sc a2a-skill clear run --yes` | Delete the project database |\n\n### Passthrough (any raw a2a command)\n```\nsc a2a-skill _ _ init\nsc a2a-skill _ _ list --json\nsc a2a-skill _ _ send all \"hello world\" --from alice --project my-team\n```\n\n## Quickstart Workflow\n\n```bash\n# 1. Initialize the project\nsc a2a-skill project init --project my-sprint\n\n# 2. Register agents\nsc a2a-skill agent register alice --role researcher --cli claude\nsc a2a-skill agent register bob --role critic --cli opencode\n\n# 3. Alice sends a message to Bob\nsc a2a-skill message send bob \"Review this plan: ...\" --from alice --thread PLANNING\n\n# 4. Bob receives\nsc a2a-skill message recv --as bob\n\n# 5. Bob replies\nsc a2a-skill message send alice \"Looks good, one concern: ...\" --from bob --thread PLANNING\n\n# 6. Alice checks for replies (blocks 15s)\nsc a2a-skill message recv --as alice --wait 15\n\n# 7. Broadcast update to everyone\nsc a2a-skill message send all \"Sprint planning complete\" --from alice --thread PLANNING\n\n# 8. Check bus stats\nsc a2a-skill stats show\n\n# 9. Search conversation history\nsc a2a-skill message search \"planning\" --json\n```\n\n## Agent-to-Agent Coordination Patterns\n\n### Task Claim Protocol\nUse broadcast messages for coordination:\n```bash\n# Agent claims a task\nsc a2a-skill message send all \"CLAIM: fix login bug — alice\" --from alice\n\n# Other agent backs off\nsc a2a-skill message send all \"ACK-CLAIM: alice backing off from login bug — bob\" --from bob\n```\n\n### Status Updates\n```bash\n# Mark yourself done when finished\nsc a2a-skill agent status done --as alice\n\n# Check who's still active\nsc a2a-skill agent list --json\n```\n\n### Role-Based Workflows\n```bash\n# Register with roles\nsc a2a-skill agent register reviewer --role code-reviewer --cli claude --upsert\nsc a2a-skill agent register tester --role qa-engineer --cli opencode --upsert\n\n# Reviewer asks tester to verify\nsc a2a-skill message send tester \"PR #42 needs QA verification\" --from reviewer --thread PR-42\n```\n\n## Best Practices\n\n1. **Always register before sending** — `a2a send` and `a2a recv` verify the agent exists\n2. **Use `--upsert` for re-registration** — avoids \"already registered\" errors\n3. **Use `--wait` for blocking recv** — agents that poll in a loop will spin\n4. **Use `--thread` for topic grouping** — makes `a2a thread \u003Cid>` and `a2a search` more useful\n5. **Set `--ttl` for ephemeral messages** — CLAIM status updates can expire after 5 minutes\n6. **Use `--json` for programmatic consumption** — all major commands support JSON output\n7. **Use `--peek` to inspect without marking read** — useful for monitoring agents\n8. **Use project-level isolation** — different teams\u002Fprojects get different databases\n\n## Key Concepts\n\n- **The bus is the source of truth** — anything not on the bus didn't happen\n- **Read-tracking is per-agent** — a broadcast is \"seen\" once by each agent, individually\n- **No locking** — coordination is by convention (use the Task Claim protocol)\n- **WAL mode** — safe for concurrent writers from different processes\n- **Zero external dependencies** — only Python stdlib + sqlite3\n\n## Further Reading\n\n- [a2a-skill GitHub Repository](https:\u002F\u002Fgithub.com\u002Fjavier-arancibia\u002Fa2a-skill)\n- `sc a2a-skill self version` — CLI reference\n- `a2a --help` — all commands and flags\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| `a2a: no python3 with sqlite3` | Set `A2A_PYTHON=\u002Fpath\u002Fto\u002Fpython3` or install sqlite3 module |\n| `no a2a project at...` | Run `a2a init` or `sc a2a-skill project init` first |\n| `unknown sender` | Register the agent first: `a2a register \u003Cid>` |\n| `already registered` | Use `--upsert` flag when re-registering |\n| Bus is empty | Make sure agents are registered and messages were sent with correct sender IDs |\n| Concurrent writer issues | Check WAL mode: `a2a exec \"PRAGMA journal_mode\"` should return `wal` |\n| Agents don't see each other's messages | Likely a project mismatch. All agents must use the same `--project` or `A2A_PROJECT`. See \"Common pitfalls\" below. |\n| Empty log files from spawned agents | Normal — CLIs buffer stdout. Check `a2a peek` or `ps aux` instead. |\n| `--project` flag doesn't work | The Go binary expects `--project` AFTER the subcommand (`a2a peek --project X`). The Python script expects it BEFORE (`a2a.py --project X peek`). Use `A2A_PROJECT` env var for safest results. |\n\n## Common pitfalls\n\nThese were discovered while smoke-testing a2a with spawned agents. Future\nagents should review this before using the CLI.\n\n### `A2A_PROJECT` must be exported, not just set\n\nWhen spawning background agents (Pattern 3), the spawned process inherits the\nparent's environment. Writing `A2A_PROJECT=myproject` without `export` means\nthe spawned agent won't see it. It falls back to `basename($PWD)`, which may\nresolve to the wrong project.\n\n```bash\n# WRONG — not exported, spawned agents won't see it\nA2A_PROJECT=myteam\na2a-spawn --cli claude --id alice ...\n\n# RIGHT — export before spawning\nexport A2A_PROJECT=myteam\na2a-spawn --cli claude --id alice ...\n\n# ALSO RIGHT — use --project explicitly in every a2a command\na2a send bob \"hello\" --from alice --project myteam\n```\n\n### `--project` flag position: Go binary vs Python\n\nThe installed `a2a` at `~\u002F.local\u002Fbin\u002Fa2a` may be a Go binary (check with\n`file $(which a2a)`). The Go binary and the Python `a2a.py` expect `--project`\nin different positions:\n\n| Binary | Correct syntax | Wrong syntax |\n|--------|---------------|--------------|\n| **Go** (`~\u002F.local\u002Fbin\u002Fa2a`) | `a2a peek --project X` | `a2a --project X peek` ✗ |\n| **Python** (`a2a.py`) | `python3 a2a.py --project X peek` | `python3 a2a.py peek --project X` ✗ |\n\n**Safest:** Use the `A2A_PROJECT` env var — it works identically for both.\n\n```bash\nexport A2A_PROJECT=myteam\na2a peek --limit 10    # works for Go AND Python\n```\n\n### Empty agent logs ≠ stuck agent\n\nWhen spawning via `a2a-spawn`, log files (`--log FILE`) may appear empty for\nminutes. CLIs like `claude` buffer stdout and flush only on exit. Don't assume\nthe agent is stuck.\n\n**Check progress via the bus instead:**\n\n```bash\nps aux | grep claude              # verify process is running\nsc a2a-skill agent list           # check agent status (active? done?)\nsc a2a-skill message peek         # see if any messages were sent\n```\n\n### Cross-project contamination is invisible\n\nIf agents end up on different projects (each resolves `basename($PWD)` to a\ndifferent name), they silently write to different databases. No error, no\nwarning — they just never see each other.\n\n**Fix:** Always verify:\n\n```bash\nsc a2a-skill project info    # check which project you're on\nsc a2a-skill agent list      # verify all expected agents are visible\n```\n\n### Kit prompts must be project-aware\n\nWhen writing kit prompts for spawned agents, never assume `A2A_PROJECT` is\nset in the spawned environment. Either export it before spawning, or include\n`--project $PROJECT` in every `a2a` command within the kit.\n\n### Register PIDs with the right project\n\nRunning `a2a register alice --pid 1234 --upsert` uses the *current* project.\nIf `A2A_PROJECT` isn't set correctly, the PID is registered on the wrong bus.\nPass `--project` or verify `A2A_PROJECT` before running.\n",{"name":5,"description":7},"master","d362369a98edfcc6356f3bb152db470c34f08a46","plugins\u002Fa2a-skill\u002Fskills\u002Fquickstart",5,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli","https:\u002F\u002Fjavimosch.github.io\u002Fsupercli\u002F","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-11-02 18:24:17",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add javimosch\u002Fsupercli --skill a2a-skill",{"tool":54,"command":55},"bunx","bunx skills add javimosch\u002Fsupercli --skill a2a-skill",{"tool":57,"command":58},"pnpm","pnpm dlx skills add javimosch\u002Fsupercli --skill a2a-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fa2a-skill\u002Fskills\u002Fquickstart\u002FSKILL.md",true,[],[63,71,90,102,115,123],{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":33},"01M6G7YFZVHRYAY51J0YG9SDNJ","sc-machin-mcp","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fsupercli-machin-cli\u002Fskills\u002Fsc-machin-mcp\u002FSKILL.md",[],[69,70],"sc machin mcp","MCP",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":33},"01M6G7YB179MQMSHZBJDC8TZA8","supercli.quickstart","SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fskills\u002Fsupercli\u002FSKILL.md",[],[78,79,80,81,82,83,84,85,86,87,88,89],"supercli quickstart","quickstart","cli","capability router","plugin","discovery","execute","router","discover","commands","interface","supercli,cli,plugin,capability,discovery,agent",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":33},"01M6G7Y734QS3793YMS5PR146J","zzdoc","Use this skill to compile scdoc manpages with a fast Zig-based compiler.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzzdoc\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[92,97,29,98,99,100,101],"with","zig","fast","compiler","compile",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":33},"01M6G7Y2WX56K2QJQ9RV2ZKEV7","zx","Use this skill when the user wants to a tool for writing better scripts using node.js.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzx\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[104,109,29,110,111,112,113,114],"scripts","user","node","tool","js","writing",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":33},"01M6G7Y0M792DGW31HN4TEQT10","zvm","Use this skill when the user wants to manage multiple Zig compiler versions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzvm\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[117,98,122,29,110,100],"manage",{"skillNo":124,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":33},"01M6G7XX51W5HJW09DYXBK92TJ","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzstdmt\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[79]]