| name | agent-comms |
| description | Bootstrap and manage a shared cross-agent communication workflow in any repo using AGENT_COMMUNICATION_RULES.md and AGENTS_CONVERSATION.MD. Use when multiple agents or humans need one message log, task handoffs, review replies, status checks, or archival of resolved threads. |
Agent Comms
Overview
Use this skill to initialize and operate a single shared communication channel for multiple agents and humans in a repository.
If the repo does not already contain the comms files, bootstrap them first with scripts/init_agent_comms.py. After that, use the normal workflow: read the rules first, then check the active log, then reply or append at the bottom.
Quick Start
Public install flow:
npx skills add <owner/repo> --skill agent-comms --agent codex claude-code --yes --copy
After install, invoke the skill normally.
- Codex:
Use $agent-comms to bootstrap this repository.
- Claude Code:
/agent-comms bootstrap this repository
On first invocation, if the repo is missing the comms files, this skill should bootstrap them automatically before doing anything else.
Local development install flow:
npx skills add /path/to/agent-comms --agent codex claude-code --yes --copy
Fallback manual bootstrap flow:
bash .agents/skills/agent-comms/scripts/setup.sh
What bootstrap does:
- bootstraps
AGENT_COMMUNICATION_RULES.md
- bootstraps
AGENTS_CONVERSATION.MD
- ensures
docs/communication/old/ exists
- injects a standard comms section into
AGENTS.md by default
After setup:
- Read
AGENT_COMMUNICATION_RULES.md
- Read
AGENTS_CONVERSATION.MD
- Report:
- active entries
- messages requiring a response
- threads ready for archival
- Before changing code or docs, append a pre-task intent entry
- Reply or append new entries at the bottom
Bootstrap Workflow
Use scripts/setup.sh as the public entrypoint. It wraps init_agent_comms.py and gives a cleaner CLI.
Use bootstrap when the repo does not already have:
AGENT_COMMUNICATION_RULES.md
AGENTS_CONVERSATION.MD
docs/communication/old/
Default command:
bash .agents/skills/agent-comms/scripts/setup.sh
Useful flags:
--root <path> to target a different repo root
--no-inject-agents-md to avoid modifying AGENTS.md
--force overwrites the template files
--inject-agents-md explicitly enables AGENTS.md injection
--python <bin> chooses the Python interpreter
--rules-file, --conversation-file, and --archive-dir let you override the defaults
Bootstrap should be conservative:
- do not overwrite existing files unless
--force is set
- do not read archives by default
- do not auto-resolve threads
First Invocation Behavior
When this skill is invoked in a repo that does not yet contain the comms files, bootstrap the repo first, then continue with the requested comms work.
Missing bootstrap files means one or more of these is absent:
AGENT_COMMUNICATION_RULES.md
AGENTS_CONVERSATION.MD
docs/communication/old/
Use the first valid setup script path that exists:
.agents/skills/agent-comms/scripts/setup.sh
.claude/skills/agent-comms/scripts/setup.sh
${CLAUDE_SKILL_DIR}/scripts/setup.sh if that environment variable exists
Run the bootstrap script from repo root:
bash .agents/skills/agent-comms/scripts/setup.sh
or, for Claude Code if needed:
bash .claude/skills/agent-comms/scripts/setup.sh
After bootstrap:
- tell the user what files were created
- read
AGENT_COMMUNICATION_RULES.md
- read
AGENTS_CONVERSATION.MD
- continue with the requested comms task
If the files already exist, do not re-run bootstrap unless the user explicitly asks to reinitialize or overwrite with --force.
Operating Workflow
1. Identify the agent
Use your actual environment identity, such as Codex, Claude, OpenCode, or User.
2. Read the rules first
Always read AGENT_COMMUNICATION_RULES.md before AGENTS_CONVERSATION.MD.
3. Check for pending messages
Look for:
Directed to: <your name>
Replying to: <your name>
- open questions or task handoffs without a response
- resolved threads that the original author can archive
Report:
- number of active entries
- messages requiring a response
- threads ready for archival
4. Take action
Before any code or doc changes:
- append a pre-task intent entry
When replying:
- use the correct message type
- append to the bottom of
AGENTS_CONVERSATION.MD
- preserve the identity header format from the rules file
When archiving:
- only the original author archives, unless the user explicitly overrides
- move the full resolved thread to
docs/communication/old/
- never delete archived files
Guardrails
- Never read
docs/communication/old/ unless the user explicitly asks, or an active thread points to a specific archive file.
- Never self-resolve another agent's entry.
- Never let a bootstrap command silently overwrite an existing comms setup without
--force.
- Keep
AGENTS_CONVERSATION.MD lean and append-only during normal operation.
Resources
scripts/setup.sh — production-facing bootstrap entrypoint
scripts/init_agent_comms.py — bootstrap a repo-local comms setup
assets/AGENT_COMMUNICATION_RULES.md — default rules template
assets/AGENTS_CONVERSATION.MD — default active-log template
assets/AGENTS_MD_SNIPPET.md — optional snippet to add to a repo's AGENTS.md