[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75WH2QXVBG126MREAJK1ATS":3,"skill-same:01M75WH2QXVBG126MREAJK1ATS":45},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":44},"01M75WH2QXVBG126MREAJK1ATS","swarm-inbox",null,"Read and send inter-agent messages within a swarm team","stevengonsalvez\u002Fainb-toolkit","stevengonsalvez","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9320602?v=4","01M75W59QRYZYANWY3XG8CJB1P","Steven Gonsalvez","01M75W59RD5YW1RT67BDV0EAZF",1,"MIT","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fswarm-inbox\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: swarm-inbox\ndescription: Read and send inter-agent messages within a swarm team\nuser-invocable: true\n---\n\n# \u002Fswarm-inbox\n\nRead your inbox or send messages to other team members.\n\n## Usage\n\n```bash\n# Read your messages\n\u002Fswarm-inbox\n\n# Read with options\n\u002Fswarm-inbox --last 10\n\n# Send a message\n\u002Fswarm-inbox --to \u003Cagent> --msg \"message\"\n\n# Broadcast to all\n\u002Fswarm-inbox --broadcast --msg \"message\"\n```\n\n## Arguments\n\n| Argument | Description |\n|----------|-------------|\n| (none) | Read all messages in your inbox |\n| `--last N` | Read only the last N messages |\n| `--to \u003Cagent>` | Send message to specific agent (leader, agent-1, etc.) |\n| `--msg \"text\"` | Message content |\n| `--type \u003Ctype>` | Message type (default: status) |\n| `--broadcast` | Send to all team members |\n\n## Message Types\n\n| Type | Usage |\n|------|-------|\n| `task` | Assign work to an agent |\n| `status` | Progress update |\n| `handoff` | Pass work to another agent |\n| `help` | Request assistance |\n| `complete` | Task completion notification |\n| `broadcast` | Message to all members |\n| `shutdown` | Graceful termination request |\n\n## Process\n\n### Reading Inbox\n\nWhen you receive `\u002Fswarm-inbox` (no send args):\n\n1. **Detect Current Context**\n   ```bash\n   # Find which team and agent you are\n   # This should be set in your session context\n   TEAM_ID=\"$CURRENT_SWARM_TEAM\"\n   AGENT_NAME=\"$CURRENT_SWARM_AGENT\"\n\n   # Or detect from environment\u002Fsession name\n   SESSION_NAME=$(tmux display-message -p '#S' 2>\u002Fdev\u002Fnull || echo \"\")\n   if [[ \"$SESSION_NAME\" =~ ^swarm-([0-9]+)-(.+)$ ]]; then\n     TEAM_ID=\"swarm-${BASH_REMATCH[1]}\"\n     AGENT_NAME=\"${BASH_REMATCH[2]}\"\n   fi\n   ```\n\n2. **Read Messages**\n   ```bash\n   source {{HOME_TOOL_DIR}}\u002Futils\u002Fswarm-lib.sh\n\n   MESSAGES=$(swarm_read_inbox \"$TEAM_ID\" \"$AGENT_NAME\" --last 20)\n\n   if [ \"$(echo \"$MESSAGES\" | jq 'length')\" -eq 0 ]; then\n     echo \"No messages in inbox\"\n   else\n     echo \"=== Inbox: $AGENT_NAME ===\"\n     echo \"$MESSAGES\" | jq -r '.[] | \"[\\(.ts | split(\"T\")[1] | split(\"+\")[0])] \\(.from) -> \\(.type): \\(.payload | tostring)\"'\n   fi\n   ```\n\n### Sending Messages\n\nWhen you receive `\u002Fswarm-inbox --to \u003Cagent> --msg \"text\"`:\n\n1. **Parse Arguments**\n   ```bash\n   TO_AGENT=\"agent-1\"  # from --to\n   MESSAGE=\"Task complete, ready for review\"  # from --msg\n   MSG_TYPE=\"${TYPE:-status}\"  # from --type or default\n   ```\n\n2. **Construct Payload**\n   ```bash\n   # For simple text messages\n   PAYLOAD=$(jq -n --arg msg \"$MESSAGE\" '{message: $msg}')\n\n   # For task assignments (if type is task)\n   # PAYLOAD='{\"task_id\": \"bd-123\", \"action\": \"start\", \"context\": \"...\"}'\n   ```\n\n3. **Send Message**\n   ```bash\n   swarm_send_message \"$TEAM_ID\" \"$AGENT_NAME\" \"$TO_AGENT\" \"$MSG_TYPE\" \"$PAYLOAD\"\n   echo \"Message sent to $TO_AGENT\"\n   ```\n\n### Broadcasting\n\nWhen you receive `\u002Fswarm-inbox --broadcast --msg \"text\"`:\n\n```bash\nPAYLOAD=$(jq -n --arg msg \"$MESSAGE\" '{message: $msg}')\nswarm_broadcast \"$TEAM_ID\" \"$AGENT_NAME\" \"broadcast\" \"$PAYLOAD\"\necho \"Broadcast sent to all team members\"\n```\n\n## Example Output\n\n### Reading Inbox\n```\n=== Inbox: agent-1 ===\n[11:30:15] leader -> task: {\"task_id\":\"bd-007\",\"action\":\"start\"}\n[11:45:22] agent-2 -> handoff: {\"task_id\":\"bd-007\",\"context\":\"Backend complete\"}\n[11:50:00] leader -> status: {\"message\":\"Keep up the good work!\"}\n```\n\n### Sending Messages\n```bash\n# Simple progress update\n\u002Fswarm-inbox --to leader --msg \"Task bd-007 at 50% progress\"\n\n# Request help\n\u002Fswarm-inbox --to leader --type help --msg \"Blocked on API auth issue\"\n\n# Task handoff\n\u002Fswarm-inbox --to agent-2 --type handoff --msg '{\"task_id\":\"bd-007\",\"context\":\"Frontend ready for integration\"}'\n\n# Broadcast announcement\n\u002Fswarm-inbox --broadcast --msg \"Taking 5 min break, will resume shortly\"\n```\n\n## Message Format\n\nMessages are stored as JSONL (one JSON object per line):\n\n```json\n{\n  \"ts\": \"2026-02-03T11:30:15+00:00\",\n  \"from\": \"leader\",\n  \"to\": \"agent-1\",\n  \"type\": \"task\",\n  \"payload\": {\n    \"task_id\": \"bd-007\",\n    \"action\": \"start\",\n    \"context\": \"Implement user authentication endpoint\"\n  }\n}\n```\n\n## Polling Workflow\n\nAgents should poll their inbox regularly:\n\n```bash\n# Poll loop (conceptual - implement in agent behavior)\nwhile true; do\n  NEW_MESSAGES=$(swarm_read_inbox \"$TEAM_ID\" \"$AGENT_NAME\" --last 5)\n\n  for msg in $(echo \"$NEW_MESSAGES\" | jq -c '.[]'); do\n    TYPE=$(echo \"$msg\" | jq -r '.type')\n    case $TYPE in\n      task)\n        # Handle task assignment\n        ;;\n      shutdown)\n        # Graceful shutdown\n        ;;\n      *)\n        # Log other messages\n        ;;\n    esac\n  done\n\n  sleep 5\ndone\n```\n\n## Files\n\n| File | Description |\n|------|-------------|\n| `{{HOME_TOOL_DIR}}\u002Fswarm\u002F{team-id}\u002Finbox\u002Fleader.jsonl` | Leader's inbox |\n| `{{HOME_TOOL_DIR}}\u002Fswarm\u002F{team-id}\u002Finbox\u002Fagent-1.jsonl` | Agent 1's inbox |\n| `{{HOME_TOOL_DIR}}\u002Fswarm\u002F{team-id}\u002Finbox\u002Fagent-N.jsonl` | Agent N's inbox |\n","# \u002Fswarm-inbox\n\nRead your inbox or send messages to other team members.\n\n## Usage\n\n```bash\n# Read your messages\n\u002Fswarm-inbox\n\n# Read with options\n\u002Fswarm-inbox --last 10\n\n# Send a message\n\u002Fswarm-inbox --to \u003Cagent> --msg \"message\"\n\n# Broadcast to all\n\u002Fswarm-inbox --broadcast --msg \"message\"\n```\n\n## Arguments\n\n| Argument | Description |\n|----------|-------------|\n| (none) | Read all messages in your inbox |\n| `--last N` | Read only the last N messages |\n| `--to \u003Cagent>` | Send message to specific agent (leader, agent-1, etc.) |\n| `--msg \"text\"` | Message content |\n| `--type \u003Ctype>` | Message type (default: status) |\n| `--broadcast` | Send to all team members |\n\n## Message Types\n\n| Type | Usage |\n|------|-------|\n| `task` | Assign work to an agent |\n| `status` | Progress update |\n| `handoff` | Pass work to another agent |\n| `help` | Request assistance |\n| `complete` | Task completion notification |\n| `broadcast` | Message to all members |\n| `shutdown` | Graceful termination request |\n\n## Process\n\n### Reading Inbox\n\nWhen you receive `\u002Fswarm-inbox` (no send args):\n\n1. **Detect Current Context**\n   ```bash\n   # Find which team and agent you are\n   # This should be set in your session context\n   TEAM_ID=\"$CURRENT_SWARM_TEAM\"\n   AGENT_NAME=\"$CURRENT_SWARM_AGENT\"\n\n   # Or detect from environment\u002Fsession name\n   SESSION_NAME=$(tmux display-message -p '#S' 2>\u002Fdev\u002Fnull || echo \"\")\n   if [[ \"$SESSION_NAME\" =~ ^swarm-([0-9]+)-(.+)$ ]]; then\n     TEAM_ID=\"swarm-${BASH_REMATCH[1]}\"\n     AGENT_NAME=\"${BASH_REMATCH[2]}\"\n   fi\n   ```\n\n2. **Read Messages**\n   ```bash\n   source {{HOME_TOOL_DIR}}\u002Futils\u002Fswarm-lib.sh\n\n   MESSAGES=$(swarm_read_inbox \"$TEAM_ID\" \"$AGENT_NAME\" --last 20)\n\n   if [ \"$(echo \"$MESSAGES\" | jq 'length')\" -eq 0 ]; then\n     echo \"No messages in inbox\"\n   else\n     echo \"=== Inbox: $AGENT_NAME ===\"\n     echo \"$MESSAGES\" | jq -r '.[] | \"[\\(.ts | split(\"T\")[1] | split(\"+\")[0])] \\(.from) -> \\(.type): \\(.payload | tostring)\"'\n   fi\n   ```\n\n### Sending Messages\n\nWhen you receive `\u002Fswarm-inbox --to \u003Cagent> --msg \"text\"`:\n\n1. **Parse Arguments**\n   ```bash\n   TO_AGENT=\"agent-1\"  # from --to\n   MESSAGE=\"Task complete, ready for review\"  # from --msg\n   MSG_TYPE=\"${TYPE:-status}\"  # from --type or default\n   ```\n\n2. **Construct Payload**\n   ```bash\n   # For simple text messages\n   PAYLOAD=$(jq -n --arg msg \"$MESSAGE\" '{message: $msg}')\n\n   # For task assignments (if type is task)\n   # PAYLOAD='{\"task_id\": \"bd-123\", \"action\": \"start\", \"context\": \"...\"}'\n   ```\n\n3. **Send Message**\n   ```bash\n   swarm_send_message \"$TEAM_ID\" \"$AGENT_NAME\" \"$TO_AGENT\" \"$MSG_TYPE\" \"$PAYLOAD\"\n   echo \"Message sent to $TO_AGENT\"\n   ```\n\n### Broadcasting\n\nWhen you receive `\u002Fswarm-inbox --broadcast --msg \"text\"`:\n\n```bash\nPAYLOAD=$(jq -n --arg msg \"$MESSAGE\" '{message: $msg}')\nswarm_broadcast \"$TEAM_ID\" \"$AGENT_NAME\" \"broadcast\" \"$PAYLOAD\"\necho \"Broadcast sent to all team members\"\n```\n\n## Example Output\n\n### Reading Inbox\n```\n=== Inbox: agent-1 ===\n[11:30:15] leader -> task: {\"task_id\":\"bd-007\",\"action\":\"start\"}\n[11:45:22] agent-2 -> handoff: {\"task_id\":\"bd-007\",\"context\":\"Backend complete\"}\n[11:50:00] leader -> status: {\"message\":\"Keep up the good work!\"}\n```\n\n### Sending Messages\n```bash\n# Simple progress update\n\u002Fswarm-inbox --to leader --msg \"Task bd-007 at 50% progress\"\n\n# Request help\n\u002Fswarm-inbox --to leader --type help --msg \"Blocked on API auth issue\"\n\n# Task handoff\n\u002Fswarm-inbox --to agent-2 --type handoff --msg '{\"task_id\":\"bd-007\",\"context\":\"Frontend ready for integration\"}'\n\n# Broadcast announcement\n\u002Fswarm-inbox --broadcast --msg \"Taking 5 min break, will resume shortly\"\n```\n\n## Message Format\n\nMessages are stored as JSONL (one JSON object per line):\n\n```json\n{\n  \"ts\": \"2026-02-03T11:30:15+00:00\",\n  \"from\": \"leader\",\n  \"to\": \"agent-1\",\n  \"type\": \"task\",\n  \"payload\": {\n    \"task_id\": \"bd-007\",\n    \"action\": \"start\",\n    \"context\": \"Implement user authentication endpoint\"\n  }\n}\n```\n\n## Polling Workflow\n\nAgents should poll their inbox regularly:\n\n```bash\n# Poll loop (conceptual - implement in agent behavior)\nwhile true; do\n  NEW_MESSAGES=$(swarm_read_inbox \"$TEAM_ID\" \"$AGENT_NAME\" --last 5)\n\n  for msg in $(echo \"$NEW_MESSAGES\" | jq -c '.[]'); do\n    TYPE=$(echo \"$msg\" | jq -r '.type')\n    case $TYPE in\n      task)\n        # Handle task assignment\n        ;;\n      shutdown)\n        # Graceful shutdown\n        ;;\n      *)\n        # Log other messages\n        ;;\n    esac\n  done\n\n  sleep 5\ndone\n```\n\n## Files\n\n| File | Description |\n|------|-------------|\n| `{{HOME_TOOL_DIR}}\u002Fswarm\u002F{team-id}\u002Finbox\u002Fleader.jsonl` | Leader's inbox |\n| `{{HOME_TOOL_DIR}}\u002Fswarm\u002F{team-id}\u002Finbox\u002Fagent-1.jsonl` | Agent 1's inbox |\n| `{{HOME_TOOL_DIR}}\u002Fswarm\u002F{team-id}\u002Finbox\u002Fagent-N.jsonl` | Agent N's inbox |\n",{"name":5,"description":7,"user-invocable":24},true,"main","9cf32d1e636db09530158af14ba301bfa5d401e9","skills\u002Fswarm-inbox","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez","stevengonsalvez.com","2026-11-12 00:50:59",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add stevengonsalvez\u002Fainb-toolkit --skill swarm-inbox",{"tool":38,"command":39},"bunx","bunx skills add stevengonsalvez\u002Fainb-toolkit --skill swarm-inbox",{"tool":41,"command":42},"pnpm","pnpm dlx skills add stevengonsalvez\u002Fainb-toolkit --skill swarm-inbox","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fswarm-inbox\u002FSKILL.md",[],[46,53,60,66,73,80],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M75WK9B8DKVJBJJ4CX2QMJMX","well-formed","Fixture skill that satisfies every mechanical rule, used to prove the conformance check passes a clean tree instead of failing everything.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fclean\u002Fwell-formed\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M75WK6ZGDXJJN8879K49QEYG","underscore-tools","Fixture skill that spells the tool allowlist key with an underscore instead of the hyphen the spec requires.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Funderscore-tools\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"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":63,"categories":64,"keywords":65,"publishedAt":19},"01M75WK524MVT2H9E27ZCEA3HR","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M75WJWZBMKR8R60PG3T3MCCC","long-description","Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Flong-description\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M75WJVRH3J22WKED7E5D01S8","some-other-name","Fixture skill whose frontmatter name does not match its parent directory name.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fdir-mismatch\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M75WJTC7H5FRP6S129VBSMZC","bad_Name","Fixture skill whose name uses an underscore and a capital letter, so it violates the agentskills.io name pattern.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fbad_Name\u002FSKILL.md",[],[]]