swarm-design

swarm-design is a skill for Claude Code, Codex from AnmarHani/SwarmVault. It costs 55 tokens per session (631 once invoked), scanned A, original, MIT.

A software-system design workflow for choosing technologies, defining modules, describing data and interfaces, and recording architecture decisions. It starts from a validated SRS, a document listing agreed software requirements.

In plain words
What is it for?
Use it to compare technology options, divide a system into modules, design data models and APIs, plan testing and error handling, and group requirements into implementation milestones.
Why use it?
It gives a structured way to turn requirements into a system plan before implementation begins.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare technology options, divide a system into modules, design data models and APIs, plan testing and error handling, and group requirements into implementation milestones.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anmarhani/swarmvault/swarm-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AnmarHani/SwarmVault --skill swarm-design
Clone the repo
git clone --depth 1 https://github.com/AnmarHani/SwarmVault

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swarm-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/anmarhani/swarmvault/swarm-design.svg)](https://agentmods.dev/skills/anmarhani/swarmvault/swarm-design)
Your own site
<a href="https://agentmods.dev/skills/anmarhani/swarmvault/swarm-design"><img src="https://agentmods.dev/badge/skills/anmarhani/swarmvault/swarm-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 631 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.00631
Opus 5 $0.00028 $0.00316
Sonnet 5 $0.00011 $0.00126
Haiku 4.5 $0.00006 $0.00063

Measured 7d ago against content hash 580aaa844a6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

swarm-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/swarm-design/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

swarm-design — system design phase

Gate: requires a validated SRS (else route back to swarm-spec). Read the SRS and feature specs first; the design must answer them, not your habits.

Lane: this is the standard, agent-driven lane — you propose, the user validates. If the user wants to own the system rather than receive it (deep design, pseudocode, algorithm-level planning, "developer mode"), hand the phase to swarm-design-deep instead; the two replace each other and never run together.

Produce, in order

  1. Tech stack — options with trade-offs measured against the NFRs (not fashion), recommendation first; the user decides. Significant picks become ADRs.
  2. Decomposition — modules/services with single responsibilities, boundaries, and data flow. Prefer deep modules behind simple interfaces. Mermaid diagrams for the system view and any non-obvious flow.
  3. Data model & contracts — entities, relationships, API contracts where relevant.
  4. Cross-cutting strategy — error handling, logging, testing approach fit for the stack.
  5. Milestone boundaries — group FRs into build milestones; these become swarm-implement's ticket batches.

Rules

  • Traceability table required: every Must-FR ↦ component; every NFR ↦ one line on how the design satisfies it. Nothing silently dropped.
  • Options with recommendation for anything that meaningfully affects cost, lock-in, or complexity — never decide those silently (mode: in auto, only stack-level choices already delegated by the user proceed without asking; queue the rest).
  • Simplicity doctrine: every moving part justifies itself; prefer known patterns (refactoring.guru names) over invention; when two designs both satisfy the NFRs, ship the smaller one.
  • Each significant decision → 50 Decisions/<P>/ADR-NNN-<slug>.md (template: 90 Templates/decision.md): context, options, decision, consequences, FR/NFR links.

Output & gate

docs/design.md (human lane) + ADRs, mirrored to the vault by sync. End with the user validation gate (gated mode) or a self-check against the traceability table (auto mode); update flow-state to phase: design-ui (if the SRS declares an interface) or phase: tickets.

Read the full file on GitHub · 52 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 52 lines · 55 tokens per session scan A 580aaa844a6d

Subscribe to this mod's changes

swarm-design is a skill published in the GitHub repository AnmarHani/SwarmVault (5 stars, last pushed 1mo ago), licensed MIT. It adds 55 tokens to every session and 631 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.