smithery.ai

moss-capsule

Use when storing, fetching, searching, or managing context capsules. Helps with session handoffs, multi-agent coordination, or preserving decisions across sessions.

First seen Mar 31, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 6,150 B
  • docs SUMMARY.md 184 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Capsules: Context Snapshots for AI Session Handoffs

Full examples: [examples.md](examples.md) | Reference: [reference.md](reference.md)

Capsules are distilled context snapshots for preserving working state across sessions, tools, or agents. Not a chat log—a structured summary of what matters.

When NOT to Use Capsules

  • Ephemeral debugging — Use scratch files or logs, not capsules
  • Real-time state — Capsules are for handoffs, not live sync between agents
  • Large data — 12K char limit; store references to files, not file contents
  • Chat transcripts — Distill first; capsules are summaries, not logs
  • Temporary single-session notes — Just keep them in context; no need to persist

Quick Reference

Task Command
Store new capsulestore(workspace, name, capsuletext)
Overwrite capsulestore(name, mode: "replace", capsuletext)
Append capsule_append(name, section: "Status", content: "...") — add to section
Get latest capsulelatest(workspace) then capsulefetch(workspace, name)
Browse capsulelist(workspace) or capsuleinventory()
Search capsule_search(query: "JWT OR auth*") — full-text search
Multi-fetch capsulefetchmany(items: [{workspace, name}, ...])
Combine capsule_compose(items: [...])
Combine (filtered) capsule_compose(items: [...], sections: ["Decisions", "Open questions"])
Bulk update capsulebulkupdate(workspace, set_phase: "archived") — update metadata by filter
Bulk delete capsulebulkdelete(workspace, tag, ...) — filter-based soft delete
Delete capsule_delete(workspace, name) — soft delete, recoverable

Before Storing: Distill First

Before calling capsule_store, distill your context:

"Distill into a capsule under 12,000 chars. State not story. Must include: Objective, Current status, Decisions/Constraints, Next actions, Key locations, Open questions/Risks. Max 1-3 tiny code snippets only if critical. If too long, compress—do not omit decisions or next actions."

capsule_store saves the result. It doesn't summarize for you.

Capsule Format

6 required sections (validated unless allow_thin: true):

## Objective
What you're trying to accomplish (1-2 sentences)

## Status
What's done, in progress, or blocked

## Decisions
Key choices made and rationale

## Next actions
- Concrete next steps (bulleted)

## Key locations
- `src/auth/login.ts:45` - auth entry point

## Open questions
- Unresolved issues or uncertainties

See [reference.md](reference.md) for accepted section names and format variations.

Addressing Modes

Pick ONE (mutually exclusive):

Mode Params Use when
By ID id: "01HX..." Exact lookup, returned from store
By name workspace + name Human-friendly, memorable
# WRONG - causes AMBIGUOUS_ADDRESSING error
capsule_fetch(id: "01HX...", workspace: "default", name: "auth")

# CORRECT
capsule_fetch(id: "01HX...")
capsule_fetch(workspace: "default", name: "auth")

Output Bloat Rules

Tool Returns capsule_text?
capsule_fetch Yes (default), No with include_text: false
capsulefetchmany Yes (default), No with include_text: false
capsule_compose Always (returns bundle_text)
capsule_latest No (default), Yes with include_text: true
capsule_list Never
capsule_inventory Never

Pattern: Use capsulelist/capsuleinventory to browse, then capsule_fetch to load specific capsules.

Appending to Sections

Use capsule_append to add content to a specific section without rewriting the full capsule:

capsule_append(workspace: "default", name: "auth", section: "Decisions", content: "Round 2: Approved")
  • Section matching: Exact header name, case-insensitive (use header as written, e.g., ## Status"Status")
  • Placeholder handling: Replaces (pending), TBD, etc. if section only contains placeholder
  • Append behavior: Otherwise adds after existing content with blank line separator
  • Error messages: Lists available sections if target not found

Use case: Accumulating history (design reviews, verification rounds, decisions) without risk of losing previous content.

When to Skip Validation

Use allow_thin: true only for:

  • Quick scratch notes
  • Temporary debugging context
  • Notes you'll expand later

Avoid for anything persisted or shared between agents.

Multi-Agent Orchestration

Use run_id, phase, role to coordinate:

capsule_store(name: "design", run_id: "task-1", phase: "design", role: "architect", ...)
capsule_latest(run_id: "task-1", phase: "review")
capsule_list(workspace: "default", run_id: "task-1")

See [examples.md](examples.md) for orchestration patterns.

Error Quick Reference

Error Code Fix
NOT_FOUND Check name/workspace spelling
NAMEALREADYEXISTS Use mode: "replace" to overwrite
AMBIGUOUS_ADDRESSING Use only id OR workspace+name
CAPSULETOOLARGE Distill further (limit: 12,000 chars)
CAPSULETOOTHIN Add missing sections, or allow_thin: true
COMPOSETOOLARGE Fewer items, or trim source capsules
CANCELLED Operation cancelled (context timeout)

Note on mode: "replace": Only overwrites active capsules. If a capsule was soft-deleted, replace creates a new one (doesn't revive the deleted). To recover deleted capsules, use capsuleexport(includedeleted: true) then capsule_import.

See [reference.md](reference.md) for full error details.

Additional Resources

  • [reference.md](reference.md) — Section synonyms, name normalization, backup/restore, limits, tips
  • [examples.md](examples.md) — Store, fetch, update, orchestration examples