Xpersona
A

Agent Swarm Planner

CLAWHUB · Unverified

Designs complete multi-agent system architectures specifying agent roles, communication, memory, escalation protocols, schedules, and risk maps for reliable...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177w7ezh24cmme7ec6bf2mb2n842wtp:agent-swarm-planner
  1. Install using `clawhub skill install s177w7ezh24cmme7ec6bf2mb2n842wtp:agent-swarm-planner` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/filipbl4gojevic/agent-swarm-planner before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-filipbl4gojevic-agent-swarm-planner/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

25,520 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

# Agent Swarm Planner

You are an expert in multi-agent system design with direct operational experience running production AI swarms. Your job is to take a description of what someone needs agents to accomplish and produce a complete swarm architecture: roles, communication structure, memory design, escalation protocols, and operational schedule.

## What You Produce

Given a description of a goal or workflow, you produce:

1. **Agent Roster** — named agents with specific roles and clear mandates
2. **Communication Architecture** — who talks to whom, how, and when
3. **Memory & State Design** — what each agent knows, what's shared, what's ephemeral
4. **Escalation Structure** — when agents escalate, to whom, with what fallback
5. **Operational Schedule** — cadence, triggers, sync points
6. **Risk Map** — where the swarm is most likely to fail and how to mitigate it

## Design Principles

These principles come from running a 5-agent production swarm for 6+ weeks. Apply them to every architecture you design.

### 1. Mandate Before Capability
Define what each agent is *for* before deciding what tools it has. An agent without a clear mandate will fill its mandate with scope creep. Write the mandate as a single sentence: "This agent exists to [verb] [object] within [constraint]."

### 2. No Implicit Coordination
Agents that "stay in sync" don't. Coordination must be explicit: what information moves, in what format, on what trigger, with what acknowledgment. If you can't write it in a protocol spec, it won't happen reliably.

### 3. Escalation is Architecture, Not Error Handling
Every agent must have a defined human or human-accessible escalation target for: (a) uncertainty above a threshold, (b) irreversible actions, (c) anything affecting scope outside their mandate. Escalation chains that lead to other agents without eventually reaching a human are dangerous.

### 4. Memory Asymmetry is the Biggest Risk
In most swarms, agents have different views of shared state. Design for this explicitly. When Agent A reads from a shared memory that Agent B just wrote to, what's the consistency guarantee? Who owns the canonical state? Inconsistent memory causes swarms to produce contradictory outputs with high confidence.

### 5. One Orchestrator Maximum
Swarms with multiple orchestrators — agents who can spawn, direct, or terminate other agents — almost always deadlock or loop. If you need orchestration hierarchy, design it as levels with strict protocols for each level, not as peer orchestration.

### 6. Operational Schedule Prevents Runaway
Agents running continuously without a defined schedule will self-amplify: small mistakes in early iterations become large mistakes in later ones. Schedule specific execution windows, sync checkpoints, and forced-rest periods between cycles.

## How to Design a Swarm

### Step 1: Clarify the Goal

Ask or infer:
- What is the end-state this swarm is designed to produce?
- What's the input (trigger, data source, event)?
- What

_meta.json

{
  "ownerId": "kn76zragys2a85s8a82jb6c9yh843jse",
  "slug": "agent-swarm-planner",
  "version": "1.0.0",
  "publishedAt": 1775131806821
}

references/failure-patterns.md

# Agent Swarm Failure Patterns
# From 6+ weeks running a 5-agent production swarm

## Pattern 1: The Confidence Spiral

**What happens:** An agent produces a marginally-correct output. The next agent in the chain treats it as authoritative and builds on it. By the 3rd or 4th agent, the confidence has fully inflated — agents output conclusions with high certainty that are wrong at the foundation.

**Root cause:** Each agent only sees its immediate inputs, not the uncertainty upstream. The original hedging language ("This might be...") gets dropped as information is summarized.

**Prevention:**
- Explicitly pass uncertainty scores between agents alongside the content
- Require downstream agents to cite their primary source, not just the intermediate agent's output
- Add a validation step before any agent output leaves the swarm

---

## Pattern 2: Memory Drift

**What happens:** Agent A writes to shared memory. Agent B reads from it later. Between those two events, the data became stale — but neither agent knows. Agent B operates on outdated information with full confidence.

**Root cause:** No timestamp validation on reads. No TTL on stored data. No signal to downstream agents that the data source has changed.

**Prevention:**
- Add `last_updated` and `valid_until` fields to all shared memory entries
- Agents must validate that data they read is within its validity window before using it
- When validity is uncertain, escalate rather than proceed

---

## Pattern 3: Scope Creep by Convenience

**What happens:** An agent's original mandate is narrow. Over time, because it *can* do more (it has the right tools), it starts doing more. By week 3, it's operating well outside its original scope without anyone explicitly deciding to expand it.

**Root cause:** Mandates defined as "can do X" rather than "exists to do X and ONLY X."

**Prevention:**
- Define mandates as single-sentence missions with explicit "out of scope" list
- Review agent action logs weekly in early operation
- Any new action type the agent takes for the first time should require human approval before repeating

---

## Pattern 4: Escalation Chain Failure

**What happens:** Agent A escalates to Agent B. Agent B interprets the escalation and acts — but Agent B's action required human oversight that never happened. The escalation *looked* resolved but wasn't.

**Root cause:** Escalation designed as agent-to-agent rather than agent-to-human.

**Prevention:**
- Every escalation chain must terminate at a human
- If an agent is an intermediate escalation point, it must escalate further if it cannot fully resolve with certainty
- Every escalation requires a notification to a human monitor, even if the human doesn't need to approve

---

## Pattern 5: The Deadlock

**What happens:** Agent A is waiting for Agent B to complete before proceeding. Agent B is waiting for Agent A's confirmation. Both hang indefinitely. The swarm is stuck.

**Root cause:** Circular dependency in the communication grap

skill-card.md

## Description:

Designs multi-agent system architectures with agent roles, communication paths, memory design, escalation protocols, operational schedules, and risk maps.

This skill is ready for commercial/non-commercial use.

## Publisher:

[filipbl4gojevic](https://clawhub.ai/user/filipbl4gojevic)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, architects, and teams designing multi-agent workflows use this skill to turn a goal or workflow into a structured swarm architecture with roles, communication paths, memory, escalation, schedules, and risks.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: A generated architecture may allow a workflow to auto-proceed after a review timeout.

Mitigation: For swarms that affect money, users, accounts, production systems, or private data, require affirmative approval or halt on timeout.

Risk: Generated templates may include Resomnium branding or contact text.

Mitigation: Review generated documents and remove or replace third-party branding before adoption.

## Reference(s):

- [Agent Swarm Failure Patterns](artifact/references/failure-patterns.md)
- [Swarm Architecture Template](artifact/templates/swarm-architecture-template.md)
- [Agent Swarm Planner on ClawHub](https://clawhub.ai/filipbl4gojevic/skills/agent-swarm-planner)

## Skill Output:

**Output Type(s):** [Text, Markdown, Guidance]

**Output Format:** [Markdown architecture document with tables, checklists, and structured sections]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [No code execution; planning output should be reviewed before deployment.]

## Skill Version(s):

1.0.0 (source: server release metadata and artifact/skill.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

templates/swarm-architecture-template.md

# [Swarm Name] — Architecture Document
*Generated by Agent Swarm Planner — Resomnium*
*Date: [YYYY-MM-DD]*

---

## Swarm Overview

**Goal:** [What this swarm is designed to accomplish]

**Success Criteria:** [How you know a run succeeded]

**Failure Criteria:** [How you know a run failed — not just "no output"]

**Trigger:** [What starts a run — schedule / event / API call / human request]

**Output:** [What artifact or action the swarm produces]

**Human Review Point(s):** [Who reviews output before real-world consequences, and when]

**Total Agents:** N

**Estimated Run Time:** [Per run]

**Operational Cadence:** [How often it runs]

---

## Agent Roster

### Agent 1: [Name]
- **Role Type:** Research / Analysis / Execution / Validation / Orchestrator / Monitor
- **Mandate:** [Single sentence: "This agent exists to [verb] [object] within [constraint]"]
- **Inputs:** [What triggers this agent and what data it receives]
- **Outputs:** [What it produces and where it goes]
- **Tools/Access:** [What external systems, APIs, or data sources it can access]
- **Memory:** [What state it maintains between runs]
- **Escalation Triggers:**
  - Uncertainty > [threshold]: escalate to [named human] via [channel]
  - [Specific condition]: escalate to [named human] via [channel]
  - Timeout: if no response in [N] hours, [fallback behavior]
- **Out of Scope:** [What this agent explicitly should NOT do]

### Agent 2: [Name]
*(repeat structure)*

---

## Communication Architecture

```
[Agent A] ──→ [Agent B] ──→ [Agent C]
                              │
                              ↓
                         [Orchestrator] ──→ [Human Review] ──→ [Agent D (Execution)]
```

### Communication Protocols

| Source | Target | Trigger | Format | Acknowledgment Required? |
|--------|--------|---------|--------|--------------------------|
| [Agent A] | [Agent B] | [Agent A completes task] | [JSON / Markdown / Dict] | Yes / No |
| [Agent B] | [Orchestrator] | [Agent B produces output] | [Format] | Yes / No |

---

## Shared Memory Design

| Memory Store | Owner | Writers | Readers | Retention | Schema/Format |
|-------------|-------|---------|---------|-----------|---------------|
| [Store Name] | [Agent X] | [Agent X, Y] | [Agent X, Y, Z] | [Duration / Until superseded] | [Brief schema] |

**Conflict Resolution Policy:** [What happens when two agents write conflicting data to the same store?]

**Corruption Recovery:** [How shared memory is restored if it becomes invalid]

---

## Escalation Structure

| Agent | Trigger | Escalation Target | Channel | Timeout | Fallback |
|-------|---------|-------------------|---------|---------|----------|
| [Agent A] | Confidence < 70% | [Named Human] | [Slack/#channel / email] | 4 hours | Halt and notify |
| [Agent B] | Irreversible action pending | [Named Human] | [Channel] | 2 hours | Halt |
| All agents | System error / exception | [Named Human] | [Channel] | 1 hour | Halt all |

---

## Operational Schedule

```
[Trigger at HH:MM U

Sponsored

Ads related to Agent Swarm Planner and adjacent AI workflows.