julio211916/tlanticad-studio-v0.1-alpha/a2a-worker

Claude Code and agent skill by julio211916/tlanticad-studio-v0.1-alpha

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Builds A2A protocol integration - auto-start hook, client library, router wiring

Install

npx vskill@latest install julio211916/tlanticad-studio-v0.1-alpha/a2a-worker

SKILL.md

The same SKILL.md was published earlier as julio211916/tlanticad-studio-v0.1-alpha/a2a-worker.

A2A Worker

NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.

When to Use This Skill

Features involving:

  • A2A server auto-start hook creation
  • A2A client library development
  • Router-to-A2A integration
  • Cross-session communication via A2A HTTP
  • A2A test suite development

Work Procedure

  1. Read CTO Directive #3 from AGENTS.md: A2A server MUST be spawned as fully detached background subprocess. NEVER synchronous.
  1. Study the existing pattern in .claude/hooks/channels/channel-auto-start.cjs:
  • How it checks env vars and prerequisites
  • How it uses lockfile with wx flag for cooldown
  • How it records PID in terminal-pids.json
  • How it spawns a detached process via .bat file + start "" /D
  • How it uses VBScript for auto-accept
  1. Write tests first (red) for the component you're building:
  • Auto-start hook: test lockfile creation, PID tracking, duplicate prevention
  • Client library: test discovery, send, get, cancel, subscribe
  • Router integration: test dispatch flow
  1. Implement following existing A2A code patterns:
  • Server code is in .claude/lib/a2a/server.cjs (Express, JSON-RPC 2.0)
  • Task state machine in .claude/lib/a2a/task-state-machine.cjs
  • Agent card in .claude/lib/a2a/agent-card.cjs
  • SSE in .claude/lib/a2a/sse-stream.cjs
  • JSON-RPC in .claude/lib/a2a/jsonrpc-handler.cjs
  1. For auto-start hook (`a2a-server-autostart.cjs`):
  • Register as UserPromptSubmit hook in settings.json
  • Check A2A_AUTO_START=true env var
  • Check not already inside A2A session
  • Use atomic lockfile with 2-min cooldown
  • Check terminal-pids.json for existing live PID
  • Spawn via .bat file + start "" /D pattern (Windows)
  • Record PID in terminal-pids.json with purpose: 'a2a-server'
  • Exit hook promptly (< 5 seconds)
  1. For client library (`client.cjs`):
  • Create at .claude/lib/a2a/client.cjs
  • Methods: discover(), sendTask(), getTask(), cancelTask(), sendSubscribe()
  • Uses standard http/https module (no external dependencies)
  • Handles JSON-RPC 2.0 request/response envelope
  • Handles SSE streaming for subscribe
  1. For router integration:
  • Wire A2A client into the routing/dispatch flow
  • Router can send tasks to channel session via A2A HTTP
  • Handle task results and failures
  1. Run tests:

`` node --test tests/lib/a2a/*.test.cjs ``

  1. Verify coexistence with Telegram:
  • Both auto-start hooks should work independently
  • Separate lockfiles, separate PID entries
  • No port conflicts
  1. Commit with descriptive message.

Example Handoff

json
{
"salientSummary": "Created a2a-server-autostart.cjs hook following channel-auto-start.cjs pattern. Spawns Express server on port 3100 as detached background process via .bat file. Uses independent lockfile and PID tracking. Created A2A client at .claude/lib/a2a/client.cjs with discover/send/get/cancel/subscribe methods. Both Telegram and A2A auto-start work independently.",
"whatWasImplemented": "Auto-start hook with env check, lockfile, PID tracking, detached spawn. Client library with full JSON-RPC 2.0 support and SSE streaming. Both registered in settings.json.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "node --test tests/lib/a2a/a2a-server.test.cjs",
"exitCode": 0,
"observation": "All server tests pass"
},
{
"command": "node --test tests/lib/a2a/a2a-client.test.cjs",
"exitCode": 0,
"observation": "All client tests pass"
},
{ "command": "pnpm test:framework", "exitCode": 0, "observation": "No regressions" }
],
"interactiveChecks": []
},
"tests": {
"added": [
{
"file": "tests/lib/a2a/a2a-client.test.cjs",
"cases": [
{ "name": "discovers remote agent card", "verifies": "client discovery" },
{ "name": "sends task via JSON-RPC", "verifies": "task creation" },
{ "name": "polls task status", "verifies": "status retrieval" }
]
}
],
"coverage": "A2A server, client, and autostart hook covered"
},
"discoveredIssues": []
}

When to Return to Orchestrator

  • Express server can't bind to port 3100 (port conflict)
  • Telegram auto-start interferes with A2A auto-start
  • Existing A2A server code has bugs that block integration
  • Windows-specific spawn pattern doesn't work as expected

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/julio211916/tlanticad-studio-v0.1-alpha/a2a-worker/badge)](https://verified-skill.com/skills/julio211916/tlanticad-studio-v0.1-alpha/a2a-worker)

Something wrong with this skill or its page? Tell us.