用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oimiragieo/agent-studio --skill a2a-worker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field
Context management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
Hook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback
正在显示 SKILL.md
基于 SOC 职业分类
| name | a2a-worker |
| description | Builds A2A protocol integration - auto-start hook, client library, router wiring |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Features involving:
Read CTO Directive #3 from AGENTS.md: A2A server MUST be spawned as fully detached background subprocess. NEVER synchronous.
Study the existing pattern in .claude/hooks/channels/channel-auto-start.cjs:
wx flag for cooldownterminal-pids.json.bat file + start "" /DWrite tests first (red) for the component you're building:
Implement following existing A2A code patterns:
.claude/lib/a2a/server.cjs (Express, JSON-RPC 2.0).claude/lib/a2a/task-state-machine.cjs.claude/lib/a2a/agent-card.cjs.claude/lib/a2a/sse-stream.cjs.claude/lib/a2a/jsonrpc-handler.cjsFor auto-start hook (a2a-server-autostart.cjs):
A2A_AUTO_START=true env var.bat file + start "" /D pattern (Windows)For client library (client.cjs):
.claude/lib/a2a/client.cjsFor router integration:
Run tests:
node --test tests/lib/a2a/*.test.cjs
Verify coexistence with Telegram:
Commit with descriptive message.
{
"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"
}