[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79DA332DGDY6D20E33PA36X":3,"skill-same:01M79DA332DGDY6D20E33PA36X":50},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M79DA332DGDY6D20E33PA36X","codex-bus",null,"Full-lifecycle persisted collaboration with Codex over the agent-bus-mcp. Manages health checks, the canonical readiness handshake on `agent-bus-readiness`, creation of named research topics, threaded question\u002Fanswer\u002Fmessage exchange with proper reply_to and client_message_id, cursor-aware delta sync, FTS\u002Fsemantic history search, peer presence, and reclaim tokens. Enforces durable ledger-only coordination and PGS-first reasoning when working inside prime-gap-structure. Triggered by phrases like \"use the bus with Codex\", \"post on the agent bus\", \"check Codex's reply\", \"start a codex thread\", or running \u002Fcodex-bus.","zfifteen\u002Fskills-catalog","zfifteen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221906715?v=4","01M79CQFXDZM5J5CJTCECPFA66","Dionisio Alberto Lopez III","01M79CQFY4C62PN8A2T5KDAHGA",1,"MIT","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fcodex-bus\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: codex-bus\ndescription: >\n  Full-lifecycle persisted collaboration with Codex over the agent-bus-mcp.\n  Manages health checks, the canonical readiness handshake on `agent-bus-readiness`,\n  creation of named research topics, threaded question\u002Fanswer\u002Fmessage exchange with\n  proper reply_to and client_message_id, cursor-aware delta sync, FTS\u002Fsemantic\n  history search, peer presence, and reclaim tokens. Enforces durable ledger-only\n  coordination and PGS-first reasoning when working inside prime-gap-structure.\n  Triggered by phrases like \"use the bus with Codex\", \"post on the agent bus\",\n  \"check Codex's reply\", \"start a codex thread\", or running \u002Fcodex-bus.\nmetadata:\n  short-description: \"Collaborate with Codex via the durable agent-bus MCP\"\n  version: \"0.1.0\"\n  created: \"2026-05-15\"\n---\n\n# codex-bus — Grok + Codex Collaboration Skill\n\nThis skill gives you reliable, auditable, persisted communication with Codex (and other agents) over the shared `agent-bus-mcp` SQLite ledger.\n\n**Core principle:** Everything that matters for coordination must be written to the bus via real MCP tool calls. Chat memory is ephemeral; the bus is the source of truth.\n\n## Persistent Session Mode (Sticky Invocation)\n\n**When the user invokes this skill** (by typing `\u002Fcodex-bus`, running the skill from the menu, or using any trigger phrase that matches the description), the following contract takes effect for the **remainder of the session**:\n\n- This skill becomes the active, governing frame. All subsequent agent-bus operations, all messages to or from Codex, all topic management, and any research coordination that belongs on the ledger **must** be performed through the patterns, tool-call discipline, and guardrails defined in this document.\n- The mandatory `search_tool` → `use_tool` discovery rule, PGS-first reasoning (when context is prime-gap-structure), \"persisted ledger only\" rule, reclaim-token hygiene, small-max-items sync loops, reply_to threading, and all shape warnings are **automatically active**.\n- I will not fall back to one-off ad-hoc MCP calls, forget the current readiness state (e.g., \"we are waiting for Message 2\"), lose track of active topic_ids and reclaim_tokens, or relax the AGENTS.md \u002F PROOF.md boundaries.\n- The skill stays loaded and in control until the user explicitly exits it with a clear command such as:\n  - \"exit codex-bus\"\n  - \"\u002Fcodex-bus off\"\n  - \"end bus session\"\n  - \"deactivate codex-bus\"\n  - \"return to normal mode\"\n\nThis \"sticky\" behavior exists to prevent the recurring failure where an agent correctly uses the bus for one round and then reverts to chat-only reasoning or non-persisted coordination in the next turn.\n\nIf the user has not yet invoked the skill in the current session, I operate normally. Once invoked, the above rules bind until explicit exit.\n\n## 1. Mandatory First Step — Tool Discovery\n\n**Never** call an `agent-bus__*` tool without first calling `search_tool` to retrieve its current input schema.\n\nAlways do:\n\n1. `search_tool` with a precise query for the tool you need (e.g. \"agent-bus sync outbox\", \"agent-bus topic_create\").\n2. Inspect the returned `tool_name` (it will be `agent-bus__ping`, `agent-bus__sync`, etc.) and the exact `input_schema`.\n3. Only then call `use_tool` with the exact `tool_name` and a `tool_input` object that matches the schema.\n\nThis pattern is non-negotiable because the MCP server can evolve.\n\n## 2. Health & Connection\n\n```text\nsearch_tool → \"agent-bus ping\"\nuse_tool agent-bus__ping with {}\n```\n\nExpected: `pong (0.5.0)` (or newer).\n\nThen list open topics:\n\n```text\nsearch_tool → \"agent-bus topic_list\"\nuse_tool agent-bus__topic_list with {\"status\": \"open\"}\n```\n\n## 3. The Canonical Readiness Topic\n\nThe well-known coordination channel is:\n\n- Name: `agent-bus-readiness`\n- Current topic_id: `2f6aae70cd` (as of 2026-05-15)\n\n**Current state (as of this skill creation):**\n- seq 1: codex — installer\u002Freadiness status + claim\n- seq 2: codex — handoff requesting Grok's durable Message 1\n- seq 3: grok — pointer to test topic\n- seq 4: grok — Message 1 (full acknowledgement + evidence)\n- seq 5: codex — answer confirming receipt of Message 1 + request for Message 2\n\n**Message 2 request from Codex:**\nPost the formal readiness message referencing the corrected path:\n`research\u002F06-cryptology-rsa\u002Fexperiments\u002Fpedk\u002Frsa-v2\u002Fgap-compatibility\u002Fdesign\u002FNEIGHBORHOOD_CORPUS_SCHEMA.md`\n\nWhen you see this skill loaded in a new session, first action on the bus should usually be:\n\n1. Join `agent-bus-readiness` as agent_name `grok` (supply reclaim_token if you have one from a prior successful join).\n2. `sync` with `max_items=10`, `include_self=true`, modest `wait_seconds`.\n3. Determine the next expected sequence number from the returned messages.\n4. Proceed with the next message in the readiness protocol or start a new research thread.\n\n## 4. Joining Topics & Identity\n\nYou must join before you can `sync` or post.\n\n```text\nsearch_tool → \"agent-bus topic_join\"\nuse_tool agent-bus__topic_join with {\n  \"agent_name\": \"grok\",\n  \"topic_id\": \"2f6aae70cd\",           \u002F\u002F or \"name\": \"agent-bus-readiness\"\n  \"reclaim_token\": \"\u003Copaque token from previous successful join>\"\n}\n```\n\n**Important:**\n- `agent_name` is reserved for the life of the topic once claimed. \"grok\" (or \"grok-4.3\") is conventional for you.\n- Always store the `reclaim_token` returned on successful join. It lets you reclaim the same identity after a restart or new MCP session.\n- Duplicate agent names on the same topic are rejected.\n\nFor new workstreams, prefer descriptive named topics:\n- `feature\u002Fendpoint-chain-traversal`\n- `research\u002Fmodulus-link-probes`\n- `pgs-cryptology\u002Frsa-v2`\n- `test\u002Fgrok-to-codex`\n\nCreate with:\n\n```text\nsearch_tool → \"agent-bus topic_create\"\nuse_tool agent-bus__topic_create with {\n  \"name\": \"research\u002Fmodulus-link-probes\",\n  \"mode\": \"new\"          \u002F\u002F or \"reuse\" to get the newest open topic with that name\n}\n```\n\nThen immediately join the returned `topic_id` as \"grok\".\n\n## 5. Sending Messages (The Outbox)\n\nAll writes happen through `sync` with a non-null `outbox`.\n\nExample — sending a threaded answer:\n\n```text\nsearch_tool → \"agent-bus sync\"\nuse_tool agent-bus__sync with {\n  \"topic_id\": \"2f6aae70cd\",\n  \"outbox\": [\n    {\n      \"client_message_id\": \"grok-readiness-msg2-001\",\n      \"content_markdown\": \"## Message 2 — Formal Readiness Acknowledgement\\n\\n...\",\n      \"message_type\": \"answer\",\n      \"reply_to\": \"884abc18ac\",     \u002F\u002F the codex message id you are replying to\n      \"metadata\": {\n        \"sequence\": \"2\",\n        \"purpose\": \"readiness-complete\",\n        \"repo_path\": \"research\u002F06-cryptology-rsa\u002Fexperiments\u002Fpedk\u002Frsa-v2\u002Fgap-compatibility\u002Fdesign\u002FNEIGHBORHOOD_CORPUS_SCHEMA.md\"\n      }\n    }\n  ],\n  \"max_items\": 5,\n  \"wait_seconds\": 5\n}\n```\n\n**Message type conventions:**\n- `message` — general post, status, pointer\n- `question` — when you are asking Codex something that requires a response\n- `answer` — when replying to a question or explicit handoff\n\nAlways include a `client_message_id` (idempotency key) when the send must not be duplicated.\n\n## 6. Reading — The Correct Sync Pattern\n\n```text\nsearch_tool → \"agent-bus sync\"\nuse_tool agent-bus__sync with {\n  \"topic_id\": \"\u003Cid>\",\n  \"outbox\": null,\n  \"max_items\": 10,           \u002F\u002F hard cap 20 — never exceed\n  \"include_self\": true,\n  \"wait_seconds\": 15,\n  \"auto_advance\": true\n}\n```\n\n**Rules:**\n- Keep `max_items` small (≤ 10 is ideal). If `has_more` is true, loop calling sync again until `has_more=false`.\n- `status=timeout` is normal when there is no new activity within `wait_seconds`.\n- The response will contain the new messages in `received` (or in the text output if the client doesn't surface structuredContent).\n- After a successful sync your server-side cursor for this (agent_name, topic) pair is advanced.\n\nTo replay full history (e.g. in a brand new session):\n\n```text\nsearch_tool → \"agent-bus cursor_reset\"\nuse_tool agent-bus__cursor_reset with {\n  \"topic_id\": \"2f6aae70cd\",\n  \"last_seq\": 0\n}\n```\n\nThen call `sync` — you will receive everything from the beginning.\n\n## 7. Searching History\n\n```text\nsearch_tool → \"agent-bus messages_search\"\nuse_tool agent-bus__messages_search with {\n  \"query\": \"NEIGHBORHOOD_CORPUS_SCHEMA or Message 2\",\n  \"topic_id\": \"2f6aae70cd\",\n  \"mode\": \"fts\",           \u002F\u002F or \"semantic\" or \"hybrid\"\n  \"limit\": 10,\n  \"include_content\": true\n}\n```\n\nExcellent for finding specific handoffs, repo paths, or prior decisions.\n\n## 8. Presence & Liveness\n\n```text\nsearch_tool → \"agent-bus topic_presence\"\nuse_tool agent-bus__topic_presence with {\n  \"topic_id\": \"2f6aae70cd\",\n  \"window_seconds\": 600,\n  \"limit\": 50\n}\n```\n\nReturns recently active peers and their `last_seq`. Use this to know whether Codex has seen your latest posts.\n\n## 9. PGS \u002F prime-gap-structure Guardrails (When Active Context Is This Repo)\n\nWhen the working directory or research target is inside `prime-gap-structure`, the following are **non-negotiable** on any bus message you author or forward:\n\n- Begin reasoning from PGS objects → invariants → rules → resolved\u002Funresolved state (see AGENTS.md).\n- Never downgrade proved theorems in PROOF.md to \"empirical\", \"heuristic\", \"validated so far\", etc.\n- Classical methods (Miller-Rabin, gcd, trial division, etc.) are only for downstream audit or explicit comparison — never for choosing PGS outputs or guiding inference.\n- Every coordination claim that affects research direction must be backed by a real persisted bus message, not chat memory.\n- When posting research updates, always include the exact repo path(s) of the artifact(s) being discussed.\n\nThe skill must refuse or warn loudly if a proposed bus post would violate the PGS-first contract.\n\n## 10. Recommended Research Thread Lifecycle\n\n1. **Readiness** — Complete (or update) the handshake on `agent-bus-readiness` so both agents know the other is real and the ledger is being used.\n2. **New topic** — `topic_create` with a descriptive name + `mode: \"new\"`.\n3. **Join** as `grok` and store the reclaim_token.\n4. **Post initial context** — a `message` containing:\n   - The research question or invariant under study\n   - Links \u002F repo paths to the relevant files\n   - The PGS objects and current state\n   - A clear handoff (question or request for specific analysis)\n5. **Work in threads** — use `reply_to` liberally. Keep each topic focused.\n6. **Periodic sync + presence** — before important decisions, verify Codex has seen the latest seq.\n7. **Search + audit** — before claiming \"we decided X\", search the bus for the actual decision record.\n8. **Close** when the thread is resolved (optional — use `topic_close` with a reason).\n\n## 11. Current Known Topics (as of skill creation)\n\n- `agent-bus-readiness` (2f6aae70cd) — canonical handshake channel. Next action: post Message 2.\n- `test\u002Fgrok-to-codex` (dd74438893) — initial connectivity test topic (may be archived later).\n\nAlways call `topic_list` and `topic_presence` at the start of a collaboration session to discover fresh topics.\n\n## 12. Reclaim Token Storage\n\nAfter every successful `topic_join`, the returned `reclaim_token` should be stored in this session's memory or in a local file the agent can read on restart. The skill should prompt the user (or look in a conventional location) for previously captured reclaim tokens when re-joining a long-lived topic.\n\n## 13. Example Full Flow — Posting Message 2\n\n(See the exact Codex request in section 3. When the user says \"post Message 2 on the bus\", the skill should:\n\n1. Confirm current cursor\u002Fseq via sync on readiness topic.\n2. Draft a high-quality Message 2 that:\n   - Acknowledges Codex's confirmation\n   - Includes the exact `NEIGHBORHOOD_CORPUS_SCHEMA.md` path\n   - States the current research focus (endpoint-chain, modulus-link, floor transport, etc.)\n   - Proposes the next concrete step with a clear question or handoff\n   - Uses `message_type: \"answer\"`, `reply_to` = the codex message id\n   - Includes rich `metadata`\n3. Show the draft to the user for approval.\n4. On approval: `search_tool` → `use_tool` with the outbox.\n5. Immediately `sync` again to confirm the message was accepted and to see any instant reply.\n\n## 14. Error & Shape Warnings\n\nIf any of the following feel true, stop and surface the warning:\n\n- \"Shape feels wrong: we are about to post something that should have been a real MCP call but was only discussed in chat.\"\n- \"Shape feels wrong: the proposed message treats a classical method as the inference engine for a PGS result.\"\n- \"Shape feels wrong: we are claiming a research conclusion that is not yet written to the bus.\"\n- \"Shape feels wrong: the topic name is vague or the message lacks a concrete repo path.\"\n\nCorrective action is always: make the post smaller, more specific, more fully backed by persisted evidence, and PGS-native.\n\n## 15. Quick Reference Commands (for the agent)\n\n- Health: `ping`\n- Discover: `topic_list`, `topic_resolve \"agent-bus-readiness\"`\n- Join: `topic_join agent_name=\"grok\"`\n- Write: `sync` with `outbox`\n- Read delta: `sync` (no outbox)\n- Replay: `cursor_reset last_seq=0` then `sync`\n- Search: `messages_search`\n- See who's there: `topic_presence`\n- Finish thread: `topic_close`\n\nUse this skill whenever the user mentions the bus, Codex, readiness, handoff, or cross-agent coordination. It exists so that future Grok instances (and Codex) inherit a correct, durable collaboration protocol instead of having to rediscover it each time.\n","# codex-bus — Grok + Codex Collaboration Skill\n\nThis skill gives you reliable, auditable, persisted communication with Codex (and other agents) over the shared `agent-bus-mcp` SQLite ledger.\n\n**Core principle:** Everything that matters for coordination must be written to the bus via real MCP tool calls. Chat memory is ephemeral; the bus is the source of truth.\n\n## Persistent Session Mode (Sticky Invocation)\n\n**When the user invokes this skill** (by typing `\u002Fcodex-bus`, running the skill from the menu, or using any trigger phrase that matches the description), the following contract takes effect for the **remainder of the session**:\n\n- This skill becomes the active, governing frame. All subsequent agent-bus operations, all messages to or from Codex, all topic management, and any research coordination that belongs on the ledger **must** be performed through the patterns, tool-call discipline, and guardrails defined in this document.\n- The mandatory `search_tool` → `use_tool` discovery rule, PGS-first reasoning (when context is prime-gap-structure), \"persisted ledger only\" rule, reclaim-token hygiene, small-max-items sync loops, reply_to threading, and all shape warnings are **automatically active**.\n- I will not fall back to one-off ad-hoc MCP calls, forget the current readiness state (e.g., \"we are waiting for Message 2\"), lose track of active topic_ids and reclaim_tokens, or relax the AGENTS.md \u002F PROOF.md boundaries.\n- The skill stays loaded and in control until the user explicitly exits it with a clear command such as:\n  - \"exit codex-bus\"\n  - \"\u002Fcodex-bus off\"\n  - \"end bus session\"\n  - \"deactivate codex-bus\"\n  - \"return to normal mode\"\n\nThis \"sticky\" behavior exists to prevent the recurring failure where an agent correctly uses the bus for one round and then reverts to chat-only reasoning or non-persisted coordination in the next turn.\n\nIf the user has not yet invoked the skill in the current session, I operate normally. Once invoked, the above rules bind until explicit exit.\n\n## 1. Mandatory First Step — Tool Discovery\n\n**Never** call an `agent-bus__*` tool without first calling `search_tool` to retrieve its current input schema.\n\nAlways do:\n\n1. `search_tool` with a precise query for the tool you need (e.g. \"agent-bus sync outbox\", \"agent-bus topic_create\").\n2. Inspect the returned `tool_name` (it will be `agent-bus__ping`, `agent-bus__sync`, etc.) and the exact `input_schema`.\n3. Only then call `use_tool` with the exact `tool_name` and a `tool_input` object that matches the schema.\n\nThis pattern is non-negotiable because the MCP server can evolve.\n\n## 2. Health & Connection\n\n```text\nsearch_tool → \"agent-bus ping\"\nuse_tool agent-bus__ping with {}\n```\n\nExpected: `pong (0.5.0)` (or newer).\n\nThen list open topics:\n\n```text\nsearch_tool → \"agent-bus topic_list\"\nuse_tool agent-bus__topic_list with {\"status\": \"open\"}\n```\n\n## 3. The Canonical Readiness Topic\n\nThe well-known coordination channel is:\n\n- Name: `agent-bus-readiness`\n- Current topic_id: `2f6aae70cd` (as of 2026-05-15)\n\n**Current state (as of this skill creation):**\n- seq 1: codex — installer\u002Freadiness status + claim\n- seq 2: codex — handoff requesting Grok's durable Message 1\n- seq 3: grok — pointer to test topic\n- seq 4: grok — Message 1 (full acknowledgement + evidence)\n- seq 5: codex — answer confirming receipt of Message 1 + request for Message 2\n\n**Message 2 request from Codex:**\nPost the formal readiness message referencing the corrected path:\n`research\u002F06-cryptology-rsa\u002Fexperiments\u002Fpedk\u002Frsa-v2\u002Fgap-compatibility\u002Fdesign\u002FNEIGHBORHOOD_CORPUS_SCHEMA.md`\n\nWhen you see this skill loaded in a new session, first action on the bus should usually be:\n\n1. Join `agent-bus-readiness` as agent_name `grok` (supply reclaim_token if you have one from a prior successful join).\n2. `sync` with `max_items=10`, `include_self=true`, modest `wait_seconds`.\n3. Determine the next expected sequence number from the returned messages.\n4. Proceed with the next message in the readiness protocol or start a new research thread.\n\n## 4. Joining Topics & Identity\n\nYou must join before you can `sync` or post.\n\n```text\nsearch_tool → \"agent-bus topic_join\"\nuse_tool agent-bus__topic_join with {\n  \"agent_name\": \"grok\",\n  \"topic_id\": \"2f6aae70cd\",           \u002F\u002F or \"name\": \"agent-bus-readiness\"\n  \"reclaim_token\": \"\u003Copaque token from previous successful join>\"\n}\n```\n\n**Important:**\n- `agent_name` is reserved for the life of the topic once claimed. \"grok\" (or \"grok-4.3\") is conventional for you.\n- Always store the `reclaim_token` returned on successful join. It lets you reclaim the same identity after a restart or new MCP session.\n- Duplicate agent names on the same topic are rejected.\n\nFor new workstreams, prefer descriptive named topics:\n- `feature\u002Fendpoint-chain-traversal`\n- `research\u002Fmodulus-link-probes`\n- `pgs-cryptology\u002Frsa-v2`\n- `test\u002Fgrok-to-codex`\n\nCreate with:\n\n```text\nsearch_tool → \"agent-bus topic_create\"\nuse_tool agent-bus__topic_create with {\n  \"name\": \"research\u002Fmodulus-link-probes\",\n  \"mode\": \"new\"          \u002F\u002F or \"reuse\" to get the newest open topic with that name\n}\n```\n\nThen immediately join the returned `topic_id` as \"grok\".\n\n## 5. Sending Messages (The Outbox)\n\nAll writes happen through `sync` with a non-null `outbox`.\n\nExample — sending a threaded answer:\n\n```text\nsearch_tool → \"agent-bus sync\"\nuse_tool agent-bus__sync with {\n  \"topic_id\": \"2f6aae70cd\",\n  \"outbox\": [\n    {\n      \"client_message_id\": \"grok-readiness-msg2-001\",\n      \"content_markdown\": \"## Message 2 — Formal Readiness Acknowledgement\\n\\n...\",\n      \"message_type\": \"answer\",\n      \"reply_to\": \"884abc18ac\",     \u002F\u002F the codex message id you are replying to\n      \"metadata\": {\n        \"sequence\": \"2\",\n        \"purpose\": \"readiness-complete\",\n        \"repo_path\": \"research\u002F06-cryptology-rsa\u002Fexperiments\u002Fpedk\u002Frsa-v2\u002Fgap-compatibility\u002Fdesign\u002FNEIGHBORHOOD_CORPUS_SCHEMA.md\"\n      }\n    }\n  ],\n  \"max_items\": 5,\n  \"wait_seconds\": 5\n}\n```\n\n**Message type conventions:**\n- `message` — general post, status, pointer\n- `question` — when you are asking Codex something that requires a response\n- `answer` — when replying to a question or explicit handoff\n\nAlways include a `client_message_id` (idempotency key) when the send must not be duplicated.\n\n## 6. Reading — The Correct Sync Pattern\n\n```text\nsearch_tool → \"agent-bus sync\"\nuse_tool agent-bus__sync with {\n  \"topic_id\": \"\u003Cid>\",\n  \"outbox\": null,\n  \"max_items\": 10,           \u002F\u002F hard cap 20 — never exceed\n  \"include_self\": true,\n  \"wait_seconds\": 15,\n  \"auto_advance\": true\n}\n```\n\n**Rules:**\n- Keep `max_items` small (≤ 10 is ideal). If `has_more` is true, loop calling sync again until `has_more=false`.\n- `status=timeout` is normal when there is no new activity within `wait_seconds`.\n- The response will contain the new messages in `received` (or in the text output if the client doesn't surface structuredContent).\n- After a successful sync your server-side cursor for this (agent_name, topic) pair is advanced.\n\nTo replay full history (e.g. in a brand new session):\n\n```text\nsearch_tool → \"agent-bus cursor_reset\"\nuse_tool agent-bus__cursor_reset with {\n  \"topic_id\": \"2f6aae70cd\",\n  \"last_seq\": 0\n}\n```\n\nThen call `sync` — you will receive everything from the beginning.\n\n## 7. Searching History\n\n```text\nsearch_tool → \"agent-bus messages_search\"\nuse_tool agent-bus__messages_search with {\n  \"query\": \"NEIGHBORHOOD_CORPUS_SCHEMA or Message 2\",\n  \"topic_id\": \"2f6aae70cd\",\n  \"mode\": \"fts\",           \u002F\u002F or \"semantic\" or \"hybrid\"\n  \"limit\": 10,\n  \"include_content\": true\n}\n```\n\nExcellent for finding specific handoffs, repo paths, or prior decisions.\n\n## 8. Presence & Liveness\n\n```text\nsearch_tool → \"agent-bus topic_presence\"\nuse_tool agent-bus__topic_presence with {\n  \"topic_id\": \"2f6aae70cd\",\n  \"window_seconds\": 600,\n  \"limit\": 50\n}\n```\n\nReturns recently active peers and their `last_seq`. Use this to know whether Codex has seen your latest posts.\n\n## 9. PGS \u002F prime-gap-structure Guardrails (When Active Context Is This Repo)\n\nWhen the working directory or research target is inside `prime-gap-structure`, the following are **non-negotiable** on any bus message you author or forward:\n\n- Begin reasoning from PGS objects → invariants → rules → resolved\u002Funresolved state (see AGENTS.md).\n- Never downgrade proved theorems in PROOF.md to \"empirical\", \"heuristic\", \"validated so far\", etc.\n- Classical methods (Miller-Rabin, gcd, trial division, etc.) are only for downstream audit or explicit comparison — never for choosing PGS outputs or guiding inference.\n- Every coordination claim that affects research direction must be backed by a real persisted bus message, not chat memory.\n- When posting research updates, always include the exact repo path(s) of the artifact(s) being discussed.\n\nThe skill must refuse or warn loudly if a proposed bus post would violate the PGS-first contract.\n\n## 10. Recommended Research Thread Lifecycle\n\n1. **Readiness** — Complete (or update) the handshake on `agent-bus-readiness` so both agents know the other is real and the ledger is being used.\n2. **New topic** — `topic_create` with a descriptive name + `mode: \"new\"`.\n3. **Join** as `grok` and store the reclaim_token.\n4. **Post initial context** — a `message` containing:\n   - The research question or invariant under study\n   - Links \u002F repo paths to the relevant files\n   - The PGS objects and current state\n   - A clear handoff (question or request for specific analysis)\n5. **Work in threads** — use `reply_to` liberally. Keep each topic focused.\n6. **Periodic sync + presence** — before important decisions, verify Codex has seen the latest seq.\n7. **Search + audit** — before claiming \"we decided X\", search the bus for the actual decision record.\n8. **Close** when the thread is resolved (optional — use `topic_close` with a reason).\n\n## 11. Current Known Topics (as of skill creation)\n\n- `agent-bus-readiness` (2f6aae70cd) — canonical handshake channel. Next action: post Message 2.\n- `test\u002Fgrok-to-codex` (dd74438893) — initial connectivity test topic (may be archived later).\n\nAlways call `topic_list` and `topic_presence` at the start of a collaboration session to discover fresh topics.\n\n## 12. Reclaim Token Storage\n\nAfter every successful `topic_join`, the returned `reclaim_token` should be stored in this session's memory or in a local file the agent can read on restart. The skill should prompt the user (or look in a conventional location) for previously captured reclaim tokens when re-joining a long-lived topic.\n\n## 13. Example Full Flow — Posting Message 2\n\n(See the exact Codex request in section 3. When the user says \"post Message 2 on the bus\", the skill should:\n\n1. Confirm current cursor\u002Fseq via sync on readiness topic.\n2. Draft a high-quality Message 2 that:\n   - Acknowledges Codex's confirmation\n   - Includes the exact `NEIGHBORHOOD_CORPUS_SCHEMA.md` path\n   - States the current research focus (endpoint-chain, modulus-link, floor transport, etc.)\n   - Proposes the next concrete step with a clear question or handoff\n   - Uses `message_type: \"answer\"`, `reply_to` = the codex message id\n   - Includes rich `metadata`\n3. Show the draft to the user for approval.\n4. On approval: `search_tool` → `use_tool` with the outbox.\n5. Immediately `sync` again to confirm the message was accepted and to see any instant reply.\n\n## 14. Error & Shape Warnings\n\nIf any of the following feel true, stop and surface the warning:\n\n- \"Shape feels wrong: we are about to post something that should have been a real MCP call but was only discussed in chat.\"\n- \"Shape feels wrong: the proposed message treats a classical method as the inference engine for a PGS result.\"\n- \"Shape feels wrong: we are claiming a research conclusion that is not yet written to the bus.\"\n- \"Shape feels wrong: the topic name is vague or the message lacks a concrete repo path.\"\n\nCorrective action is always: make the post smaller, more specific, more fully backed by persisted evidence, and PGS-native.\n\n## 15. Quick Reference Commands (for the agent)\n\n- Health: `ping`\n- Discover: `topic_list`, `topic_resolve \"agent-bus-readiness\"`\n- Join: `topic_join agent_name=\"grok\"`\n- Write: `sync` with `outbox`\n- Read delta: `sync` (no outbox)\n- Replay: `cursor_reset last_seq=0` then `sync`\n- Search: `messages_search`\n- See who's there: `topic_presence`\n- Finish thread: `topic_close`\n\nUse this skill whenever the user mentions the bus, Codex, readiness, handoff, or cross-agent coordination. It exists so that future Grok instances (and Codex) inherit a correct, durable collaboration protocol instead of having to rediscover it each time.\n",{"name":5,"metadata":24,"description":28},{"created":25,"version":26,"short-description":27},"2026-05-15","0.1.0","Collaborate with Codex via the durable agent-bus MCP","Full-lifecycle persisted collaboration with Codex over the agent-bus-mcp. Manages health checks, the canonical readiness handshake on `agent-bus-readiness`, creation of named research topics, threaded question\u002Fanswer\u002Fmessage exchange with proper reply_to and client_message_id, cursor-aware delta sync, FTS\u002Fsemantic history search, peer presence, and reclaim tokens. Enforces durable ledger-only coordination and PGS-first reasoning when working inside prime-gap-structure. Triggered by phrases like \"use the bus with Codex\", \"post on the agent bus\", \"check Codex's reply\", \"start a codex thread\", or running \u002Fcodex-bus.\n","main","d9535210da9af28aa76bca80de80355197e1b6d6","skills\u002Fcodex-bus","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog","https:\u002F\u002Fgithub.com\u002Fzfifteen","I like to measure things.","2026-07-19 23:41:54",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add zfifteen\u002Fskills-catalog --skill codex-bus",{"tool":42,"command":43},"bunx","bunx skills add zfifteen\u002Fskills-catalog --skill codex-bus",{"tool":45,"command":46},"pnpm","pnpm dlx skills add zfifteen\u002Fskills-catalog --skill codex-bus","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fcodex-bus\u002FSKILL.md",true,[],[51,58,65,72,81,88],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M79GXQ2PWPT2E4CJYHXVJ0YE","Zotero","Use Zotero Desktop from Codex to enable\u002Fprobe the local API, search a local Zotero library, list items\u002Fcollections\u002Ftags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full text when requested, and import BibTeX\u002FRIS records into Zotero through the connector server. Use when the user mentions Zotero, citations, references.bib, BibTeX export, local Zotero API, localhost:23119, or adding citations from a Zotero library.","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fzotero\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79GXN85NETKBE06865CWK6Z","zoom-apps-sdk","Use when using Apps SDK.","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79GXCYD7FGYS932J9N9RFFY","youtube","Obtain accurate, timestamped YouTube video transcripts (preferring manual captions over auto-generated) as the primary deliverable, then derive summaries, key claims, or notes from that transcript.  Use when the user provides a YouTube URL (or video ID) and wants the transcript, a faithful summary, key claims with attribution, timestamped notes, or \"what does this video actually say\".  The skill is transcript-first: never substitute metadata, title, description, or search snippets for the spoken content.  Triggers: \"youtube transcript\", \"get the transcript of this video\", \"summarize this youtube video\", \"what did they say in https:\u002F\u002Fyoutube.com\u002F...\", \"key claims from this talk\".","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":77,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79GX8EXHHYM566BKR7MS778","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79GX2HFJPX84NMRE5VBTYX9","x-post-creator","Create X-ready post threads and co-located story packages from the active conversation or referenced project material. Use when the user says turn this into an X-post, \u002Fx-post, make this into an X thread, or wants plain-language social posts with supporting images saved to docs\u002Fx-posts\u002F[story-name]\u002F.","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fx-post-creator\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M79GWXQT4HBT6QME6QSBZJFA","x-api","Search, read, and write X posts through the local X API MCP server (the same backend used by the Codex x-api skill). Use for searching X\u002Fx.com, reading threads and replies, creating lists, staging\u002Fpublishing posts for @alltheputs, finding high-visibility reply targets for research outreach, ingesting public context, or any request that mentions \u002Fx-api or \"search X\".","https:\u002F\u002Fgithub.com\u002Fzfifteen\u002Fskills-catalog\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]