# Agent Communication

> Coordinate messages between agents using explicit sender, recipient, task context, state, and acknowledgement semantics.

- Skill: `samotech/agent-communication-2` (Agent Skill)
- Install (CLI): `npx get-skill add samotech/agent-communication-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samotech/agent-communication-2/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: SamoTech (https://skillmd.com/u/samotech)
- Updated: 2026-11-27
- Page: https://skillmd.com/skills/samotech/agent-communication-2

---

---
name: agent-communication
description: Coordinate messages between agents using explicit sender, recipient, task context, state, and acknowledgement semantics.
metadata:
  source: skills/15-orchestration/agent-communication.md
  category: 15-orchestration
  version: "v1"
---

**Category:** Orchestration
**Skill Level:** `advanced`
**Stability:** stable

## Description
Coordinate messages between agents using explicit sender, recipient, task context, state, and acknowledgement semantics.

## When to Use
Use when multiple agents need structured coordination and message ownership is explicit.

## Inputs / Outputs / Failure Modes
| Area | Contract |
|---|---|
| Inputs | Workflow state, role/agent context, task constraints, trigger or decision criteria, and execution bounds. |
| Outputs | Deterministic orchestration decision/action plus state and evidence needed for downstream work. |
| Failure modes | Stale state, ambiguous ownership, race conditions, duplicate execution, or missing recovery path. |

## Procedure
1. Establish workflow state, ownership, boundaries, and acceptance criteria.
2. Validate the inputs or trigger before changing workflow state.
3. Execute only the declared orchestration operation.
4. Record resulting state, evidence, and unresolved conditions.
5. Apply explicit recovery or escalation behavior when the workflow cannot continue safely.

## Runnable Example
```python
task = {"capability": "agent-communication", "validated": True}
assert task["validated"]
result = {"status": "orchestration_step", "capability": task["capability"]}
print(result)
```

## Failure Modes
- Ambiguous agent ownership or workflow state.
- Stale or conflicting state.
- Duplicate, concurrent, or non-idempotent execution.
- Missing authorization or recovery path.
- Completion reported without verifiable postconditions.

## Orchestration Boundary
Ambiguous ownership or stale state can cause duplicated or conflicting work; preserve message IDs and state.

## Evidence
Canonical repository skill: this file. Structural conformance is defined by the repository schema, validation workflows, Agent Skills contract, and security gates. Orchestration decisions must preserve state, ownership, and material evidence.

## Related
- ../14-security/input-guardrails.md
- ../14-security/output-guardrails.md

