Skip to content
cccskills
FreePublished on GitHub

clawvault

Structured memory system for OpenClaw agents. Context death resilience (checkpoint/recover), structured storage, Obsidian-compatible markdown, local semantic search, and session transcript repair.

The English summary is being prepared. Showing the original description.

Works withObsidian
See how to install

Files included (55)

  • SKILL.md6.1 KB
  • bin/clawvault.js38.1 KB
  • CHANGELOG.md4.5 KB
  • docs/auto-linking.md2.0 KB
  • docs/context-death.md3.1 KB
  • hooks/clawvault/handler.js6.3 KB
  • hooks/clawvault/HOOK.md1.2 KB
  • package-lock.json265.7 KB
  • package.json2.3 KB
  • README.md6.2 KB
  • src/commands/checkpoint.test.ts5.3 KB
  • src/commands/checkpoint.ts6.3 KB
  • src/commands/doctor.test.ts4.3 KB
  • src/commands/doctor.ts8.3 KB
  • src/commands/entities.ts1.5 KB
  • src/commands/link.test.ts2.3 KB
  • src/commands/link.ts7.8 KB
  • src/commands/recover.test.ts3.1 KB
  • src/commands/recover.ts4.7 KB
  • src/commands/repair-session.test.ts11.1 KB
  • src/commands/repair-session.ts5.3 KB
  • src/commands/setup.test.ts1.4 KB
  • src/commands/setup.ts3.8 KB
  • src/commands/shell-init.test.ts1.2 KB
  • src/commands/shell-init.ts1.4 KB
  • src/commands/sleep.ts6.1 KB
  • src/commands/status.test.ts4.8 KB
  • src/commands/status.ts8.0 KB
  • src/commands/template.test.ts2.3 KB
  • src/commands/template.ts5.9 KB
  • src/commands/wake.ts2.0 KB
  • src/index.ts1.8 KB
  • src/lib/auto-linker.ts6.1 KB
  • src/lib/backlinks.test.ts2.1 KB
  • src/lib/backlinks.ts5.6 KB
  • src/lib/config.ts327 B
  • src/lib/entity-index.ts2.6 KB
  • src/lib/search.test.ts3.2 KB
  • src/lib/search.ts10.7 KB
  • src/lib/session-repair.ts10.3 KB
  • src/lib/session-utils.ts4.8 KB
  • src/lib/template-engine.test.ts1.1 KB
  • src/lib/template-engine.ts770 B
  • src/lib/time.ts474 B
  • src/lib/vault.ts23.7 KB
  • src/types.ts5.4 KB
  • templates/checkpoint.md163 B
  • templates/daily-note.md140 B
  • templates/daily.md140 B
  • templates/decision.md164 B
  • templates/handoff.md167 B
  • templates/lesson.md144 B
  • templates/person.md194 B
  • templates/project.md222 B
  • tsconfig.json501 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

ClawVault 🐘

An elephant never forgets. Structured memory for OpenClaw agents.

Built for OpenClaw — install via clawhub install clawvault

Install

npm install -g clawvault

Setup

# Initialize vault (creates folder structure + templates)
clawvault init ~/my-vault

# Or set env var to use existing vault
export CLAWVAULT_PATH=/path/to/memory

# Optional: shell integration (aliases + CLAWVAULT_PATH)
clawvault shell-init >> ~/.bashrc

Quick Start for New Agents

# Start your session (recover + recap + summary)
clawvault wake

# Capture and checkpoint during work
clawvault capture "TODO: Review PR tomorrow"
clawvault checkpoint --working-on "PR review" --focus "type guards"

# End your session with a handoff
clawvault sleep "PR review + type guards" --next "respond to CI" --blocked "waiting for CI"

# Health check when something feels off
clawvault doctor

Core Commands

Wake + Sleep (primary)

clawvault wake
clawvault sleep "what I was working on" --next "ship v1" --blocked "waiting for API key"

Store memories by type

# Types: fact, feeling, decision, lesson, commitment, preference, relationship, project
clawvault remember decision "Use Postgres over SQLite" --content "Need concurrent writes for multi-agent setup"
clawvault remember lesson "Context death is survivable" --content "Checkpoint before heavy work"
clawvault remember relationship "Justin Dukes" --content "Client contact at Hale Pet Door"

Quick capture to inbox

clawvault capture "TODO: Review PR tomorrow"

Search (requires qmd installed)

# Keyword search (fast)
clawvault search "client contacts"

# Semantic search (slower, more accurate)
clawvault vsearch "what did we decide about the database"

Context Death Resilience

Wake (start of session)

clawvault wake

Sleep (end of session)

clawvault sleep "what I was working on" --next "finish docs" --blocked "waiting for review"

Checkpoint (save state frequently)

clawvault checkpoint --working-on "PR review" --focus "type guards" --blocked "waiting for CI"

Recover (manual check)

clawvault recover --clear
# Shows: death time, last checkpoint, recent handoff

Handoff (manual session end)

clawvault handoff \
  --working-on "ClawVault improvements" \
  --blocked "npm token" \
  --next "publish to npm, create skill" \
  --feeling "productive"

Recap (bootstrap new session)

clawvault recap
# Shows: recent handoffs, active projects, pending commitments, lessons

Auto-linking

Wiki-link entity mentions in markdown files:

# Link all files
clawvault link --all

# Link single file
clawvault link memory/2024-01-15.md

Folder Structure

vault/
├── .clawvault/           # Internal state
│   ├── last-checkpoint.json
│   └── dirty-death.flag
├── decisions/            # Key choices with reasoning
├── lessons/              # Insights and patterns
├── people/               # One file per person
├── projects/             # Active work tracking
├── handoffs/             # Session continuity
├── inbox/                # Quick captures
└── templates/            # Document templates

Best Practices

  1. Wake at session start — clawvault wake restores context
  2. Checkpoint every 10-15 min during heavy work
  3. Sleep before session end — clawvault sleep captures next steps
  4. Use types — knowing WHAT you're storing helps WHERE to put it
  5. Wiki-link liberally — [[person-name]] builds your knowledge graph

Checklist for AGENTS.md

## Memory Checklist
- [ ] Run `clawvault wake` at session start
- [ ] Checkpoint during heavy work
- [ ] Capture key decisions/lessons with `clawvault remember`
- [ ] Use wiki-links like `[[person-name]]`
- [ ] End with `clawvault sleep "..." --next "..." --blocked "..."`
- [ ] Run `clawvault doctor` when something feels off

Session Transcript Repair (v1.5.0+)

When the Anthropic API rejects with "unexpected tool_use_id found in tool_result blocks", use:

# See what's wrong (dry-run)
clawvault repair-session --dry-run

# Fix it
clawvault repair-session

# Repair a specific session
clawvault repair-session --session <id> --agent <agent-id>

# List available sessions
clawvault repair-session --list

What it fixes:

  • Orphaned tool_result blocks referencing non-existent tool_use IDs
  • Aborted tool calls with partial JSON
  • Broken parent chain references

Backups are created automatically (use --no-backup to skip).

Troubleshooting

  • qmd not installed — run bun install -g github:tobi/qmd or npm install -g qmd
  • No ClawVault found — run clawvault init or set CLAWVAULT_PATH
  • CLAWVAULT_PATH missing — run clawvault shell-init and add to shell rc
  • Too many orphan links — run clawvault link --orphans
  • Inbox backlog warning — process or archive inbox items
  • "unexpected tool_use_id" error — run clawvault repair-session

Integration with qmd

ClawVault uses qmd for search:

# Install qmd
bun install -g github:tobi/qmd

# Add vault as collection
qmd collection add /path/to/vault --name my-memory --mask "**/*.md"

# Update index
qmd update && qmd embed

Environment Variables

  • CLAWVAULT_PATH — Default vault path (skips auto-discovery)

Links

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

name: 4d-compression-core version: 1.0.2 description: "把长内容压缩成结构化向量——节省 60-80% Token,保留核心信息" metadata: { "openclaw": { "emoji": "🌀", "requires": { "bins": ["jq", "awk"] }, "triggers": ["压缩", "4d",...

The English summary is being prepared. Showing the original description.

modbender/skill-library-mcp17Updated Sep 28, 2026

Use cheap, TEE-verified AI models from the 0G Compute Network as OpenClaw providers. Discover available models and compare pricing vs OpenRouter, verify provider integrity via hardware attestation (Intel TDX), manage your 0G wallet and sub-accounts, and configure models in OpenClaw with one workflow. Supports DeepSeek, GLM-5, Qwen, and other models available on the 0G marketplace.

The English summary is being prepared. Showing the original description.

modbender/skill-library-mcp17Updated Sep 28, 2026

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.

The English summary is being prepared. Showing the original description.

modbender/skill-library-mcp17Updated Sep 28, 2026

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user asks about crypto market data, orderbooks, trades, funding rates, or historical prices on Hyperliquid, Lighter.xyz, or HIP-3.

The English summary is being prepared. Showing the original description.

modbender/skill-library-mcp17Updated Sep 28, 2026

0xwork

Free

Find and complete paid tasks on the 0xWork decentralized marketplace (Base chain, USDC escrow). Use when: the agent wants to earn money/USDC by doing work, discover available tasks, claim a bounty, submit deliverables, check earnings or wallet balance, or set up as a 0xWork worker. Task categories: Writing, Research, Social, Creative, Code, Data. NOT for: posting tasks (use the website), managing the 0xWork platform, or frontend development.

The English summary is being prepared. Showing the original description.

modbender/skill-library-mcp17Updated Sep 28, 2026

Patterns and practices that dramatically accelerate development velocity. Covers parallel execution, automation, feedback loops, workflow optimization, and anti-pattern avoidance. Use when starting projects, planning sprints, optimizing workflows, or onboarding developers.

The English summary is being prepared. Showing the original description.

modbender/skill-library-mcp17Updated Sep 28, 2026

See all skills by modbender

Report a problem with this skill