zaxy: Skill for Claude Code

.claude/skills/store-doctor/SKILL.md

store-doctor is a skill for Claude Code from syndicalt/zaxy. It costs 75 tokens per session (1,361 once invoked), scanned B, original, MIT.

A troubleshooting guide for Zaxy memory-store failures, including crashes, hangs, database corruption, disconnected MCP servers, leftover processes, and stores that contain little usable memory. Zaxy is a memory system that keeps event records and rebuildable database projections.

In plain words
What is it for?
Use it when Zaxy checkout crashes, hangs, disconnects from MCP, returns no useful facts, or shows signs of database or process problems.
Why use it?
It provides a safe diagnostic and repair process for incidents where opening the store could itself freeze or crash a process.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is syndicalt/zaxy's own configuration. It tells Claude Code how to work on zaxy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zaxy configures →

Reuse

Borrowing it

Nothing to install: this file belongs to syndicalt/zaxy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/syndicalt/zaxy/master/.claude/skills/store-doctor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/syndicalt/zaxy

Made for: Claude Code.

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 store-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/syndicalt/zaxy/store-doctor/github.svg)](https://agentmods.dev/skills/syndicalt/zaxy/store-doctor)
Your own site
<a href="https://agentmods.dev/skills/syndicalt/zaxy/store-doctor"><img src="https://agentmods.dev/badge/skills/syndicalt/zaxy/store-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for store-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/syndicalt/zaxy/store-doctor"><img src="https://agentmods.dev/badge/skills/syndicalt/zaxy/store-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,361 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00075 $0.01361
Opus 5.5 $0.00030 $0.00544
Sonnet 5.5 $0.00015 $0.00272
Haiku 4.5 $0.00007 $0.00136

Measured 2mo ago against content hash 3e97496705f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

store-doctor scanned grade B with 1 finding 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

grep -A4 '"Stop"' .claude/settings.local.json
.claude/skills/store-doctor/SKILL.md · 126 lines

How it starts

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

Store doctor — Zaxy memory incident response

Prime directive: .eventloom/*.jsonl is the hash-chained source of truth — never edit or delete it. Everything under .eventloom/projections/ is a rebuildable projection: the fix is almost always move aside + rebuild, and "move aside" is reversible, so it never needs permission-level caution.

Second directive: never open a suspect store in your main process. A corrupt store can hang ~2 minutes and then segfault whatever opened it. All probes below run in timeout-wrapped subprocesses.

1. Triage — gather without touching

cd <workspace>
grep -E '^EVENTLOOM_PATH|^PROJECTION_BACKEND' .env 2>/dev/null
ls -la .eventloom/ && ls -la .eventloom/projections/
pgrep -af "zaxy serve"

For each serve PID, establish ownership before judging it:

tr '\0' '\n' < /proc/<PID>/environ | grep EVENTLOOM_PATH

Only PIDs bound to THIS store are suspects. Never kill serve processes belonging to other workspaces.

2. Read the signature

Observation Diagnosis
Multiple serve PIDs, same EVENTLOOM_PATH Orphaned multi-owner (writers corrupt the WAL)
Tiny embedded.kuzu (KBs) + large .kuzu.wal (100KB+) Orphan-WAL corruption; open throws RuntimeError ... wal_record.cpp ... UNREACHABLE_CODE
Huge embedded.kuzu (100s of MB) vs small JSONL logs + tiny clean WAL Bloat variant — open hangs ~2min then segfaults; bypasses the self-heal (native crash, no Python exception)
Checkout "hangs" / MCP disconnects repeatedly Either of the above; do steps 3-4 before theorizing
Checkout works but returns only hook.stop/reminder noise Not corruption — capture gap; go to step 7

Sanity anchor: a healthy projection for ~500KB of JSONL is ~tens of KB.

3. Rule out the library (30s, subprocess)

timeout 30 python - <<'PY'
import tempfile, os, faulthandler; faulthandler.enable()
import ladybug
d = tempfile.mkdtemp()
db = ladybug.Database(os.path.join(d, "fresh.kuzu"))
conn = ladybug.Connection(db)
conn.execute("CREATE NODE TABLE T(id INT64, PRIMARY KEY(id))")
print("FRESH DB OK — ladybug native is healthy; the problem is the store file")
PY

Fresh DB fails too ⇒ broken native install (reinstall zaxy-memory / ladybug), stop here. Fresh DB fine ⇒ the store is the patient.

Read the full file on GitHub · 126 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. 2mo ago First seen · 126 lines · 75 tokens per session scan B 3e97496705f0

Subscribe to this mod's changes

store-doctor is a skill published in the GitHub repository syndicalt/zaxy (17 stars, last pushed 2mo ago), licensed MIT. It adds 75 tokens to every session and 1,361 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

store-doctor compared with skills from other repositories

store-doctor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
store-doctorsyndicalt/zaxySkill172mo agoMITB75Claude Code
connection-troubleshootingcyberreinxy/pgautopilotSkill22d agononeA114Claude Code, Codex
query-optimizationcyberreinxy/pgautopilotSkill22d agononeA129Claude Code, Codex
triage-issuesgoogleapis/mcp-toolboxSkill17kyesterdayApache-2.0A164Claude Code, Codex
postgresql-indexingprowler-cloud/prowlerSkill15kyesterdayApache-2.0A108Claude Code
graphjin-evaldosco/graphjinSkill3.2k5d agoApache-2.0A27Claude Code, Codex
ixix-infrastructure/IxSkill1.1kyesterdayApache-2.0A44Claude Code, Codex