Skip to content
Development
Skill

/swarm-vault

The vault contract — how any agent reads, writes, and queries the SwarmVault. Use at the start of work in any vault-connected project, before exploring the repo, when deciding where to record memory/plans/decisions/sessions, when handing off between sessions or agents, or

From plugin
swarmvault
615 skills

Claude Code

$ npx -y skills add AnmarHani/SwarmVault --skill swarm-vault --agent claude-code

SKILL.md

swarm-vault.SKILL.md
name: swarm-vault
description: The vault contract — how any agent reads, writes, and queries the SwarmVault. Use at the start of work in any vault-connected project, before exploring the repo, when deciding where to record memory/plans/decisions/sessions, when handing off between sessions or agents, or whenever unsure how the vault works.

swarm-vault — the vault contract

The vault is the shared brain of every agent on this machine. Query it before exploring; write to it so parallel and future agents inherit what you learned. It is plain markdown — Obsidian is an optional viewer, never a dependency.

The CLI is `swarmvault.py` — your platform's SwarmVault section (CLAUDE.md / AGENTS.md) records its full path; default install is `~/.swarmvault/scripts/swarmvault.py`.

Reading (query first, explore second)

swarmvault.py query --search "auth flow"           # BM25, names + descriptions
swarmvault.py query --project X --type memory      # structured filters
swarmvault.py show <note-name>                     # one body, once found
swarmvault.py context .                            # the compact project brief

Descriptions are the payload — most questions are answered without opening a note. Open bodies (`show`) only for what you actually need. Reach for Glob/Grep on the repo only for what the vault cannot answer. If quality genuinely needs more context, take more — the budget curbs habit, not necessity.

Writing (own files only)

| What | Where | Lane | |---|---|---| | Memory (facts, footguns, decisions learned) | platform memory dir, or `<project>/.swarm/memory/` on Codex — sync mirrors both | machine | | Session journal (end of session) | `40 Sessions/<P>/YYYY-MM-DD <slug>.md` | machine | | Specs, plans, question queue | `30 Plans/<P>/` | human (specs) / machine (queue) | | Tickets + claims | `30 Plans/<P>/tickets/` — claim via CLI only (see swarm-implement) | machine | | ADRs | `50 Decisions/<P>/ADR-NNN-<slug>.md` | human | | Code-notes (deep reasoning for a hot file) | `10 Projects/<P>/code-notes/` | human |

Rules: frontmatter always (`name`, one-line `description` that carries the fact, `project`, `type`); `[[wikilinks]]` liberally; templates in `90 Templates/`. Never edit MOCs, Home, or `generated: true` notes — sync regenerates them. Never write another agent's session/claim files.

The two lanes

**Human lane** (specs, design docs, ADRs, README): full prose, complete sentences. **Machine lane** (tickets, claims, queue entries, session notes, memory descriptions): compact telegraphic style — imperative, no filler, quality content in minimal tokens:

> Verbose: "In this session we worked on the authentication system and managed to fix > the token refresh bug that was causing users to be logged out unexpectedly." > Compact: "DID: fixed token-refresh logout bug (src/auth.ts:142, race on expiry). > NEXT: add regression test for concurrent refresh. BLOCKED: nothing."

Never compress the human lane, and never compress away information a future agent needs — if compression costs precision, don't.

Token economy & state doctrine

1. **Offload, don't carry** — write durable state to the vault; reference notes by name instead of re-explaining them in context. 2. **Checkpoint continuously** — durable state is written *when it changes* (ticket claimed/progressed/done, question answered, phase advanced), never batched to session end. The compliance test: kill the session at any moment — a fresh session must resume correctly from the vault alone, no transcript needed. 3. **Handoff by vault** — still end sessions with a journal note (`DID/NEXT/BLOCKED`) as history; but it is journal, not required state — resume never depends on it. 4. **Tier models** — top models for spec/design/review/complex logic; smaller for boilerplate (swarm-implement carries the table). 5. All guidelines are quality-bounded: when quality needs tokens, spend them.

Isolation etiquette

Projects registered `isolated` are excluded from cross-project queries automatically. Never quote isolated-project content into another project's notes. This is cooperative filtering, not a security boundary.

Self-diagnosis

Vault not finding your project? `swarmvault.py doctor` — checks config (`~/.swarmvault.json` / `$SWARMVAULT_HOME`), the `.swarmvault` marker, and the registry. A moved project: `swarmvault.py register --repair` from its new path.

--- *Influences: the original Claude Vault design; caveman plugin (compression); Obsidian MOC practice — see CREDITS.md.*

Read more
@anmarhani
Ships withswarmvault

Your AI agents don't synchronise. SwarmVault does. One shared memory for Claude Code, Codex, and any other CLI agent. Real software engineering: requirements → design → tickets → review. 14 skills, the best of everything combined.

Stars on GitHub

Momentum

stars in total
6
Star history of AnmarHani/SwarmVault on GitHub, a chart by star-history.com

Other skills on swarmvault.

swarm-debug

swarm-debug

Systematic debugging — evidence before hypotheses, hypotheses before fixes, root cause before patches, and the diagnosis saved to…

swarm-design-deep

swarm-design-deep

The developer-driven design lane — the user commits to each approach before anything is written, then the design goes to…

swarm-design-ui

swarm-design-ui

UI/UX design phase — propose an intentional design system (pattern, brand, color, typography, spacing, atomic components) with…

swarm-design

swarm-design

System design phase — architecture, tech-stack options, module boundaries, data model, and ADRs from a validated SRS. Use after…

swarm-eject

swarm-eject

Disconnect a project from SwarmVault and choose what happens to its knowledge — keep it, export it into the repo, or delete it.…

swarm-flow

swarm-flow

The SDLC router — figures out where a project stands and runs the right phase. Use at the START of any work in a SwarmVault…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about swarm-vault.

Which coding agents can use swarm-vault?
swarm-vault installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.