profsynapse/nexus/nexus-storage

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

How to change, persist, migrate and recover Nexus data without losing it. Use when adding a SQLite table or column, persisting anything that must survive a restart or a cache rebuild, resolving a vault or plugin storage path, or debugging missing, stale, duplicated or post-rebuild-vanished data.

Install

npx vskill@latest install profsynapse/nexus/nexus-storage

SKILL.md

Nexus Storage

Nexus stores data twice on purpose. The sharded JSONL event store is the source of truth; SQLite is a cache that is deleted and replayed on demand. Almost every storage bug in this repo is a write that landed on the wrong side of that line, or a read that ran before the cache was ready.

This router points at the procedure for your job. Working from the router alone is how the three-place schema change becomes a two-place one.

Workflow

  1. Pick the job and open its protocol before editing anything:
Your jobProtocol
Add or change a SQLite table, column or indexprotocols/change-schema.md
Persist a new kind of data, or make a write survive restartprotocols/persist-new-data.md
Data is missing, stale, duplicated, slow, or vanished after a rebuildprotocols/diagnose-storage.md
  1. Read references/storage-model.md before writing any persistence code. It

states the three invariants that decide whether a design is legal here. A change that breaks one is a data-loss bug that unit tests will happily pass.

  1. NEVER hardcode a storage root, and NEVER treat SQLite as authoritative. Resolve

roots through the resolvers named in references/paths-and-layout.md, and write through a repository so the event lands in JSONL first.

  1. If you touched SchemaMigrator.ts or schema.ts, run

scripts/check_schema_consistency.py from the repo root and treat a non-zero exit as a stop: ``bash python3 .claude/skills/nexus-storage/scripts/check_schema_consistency.py . ``

  1. Verify at runtime, not just statically. Every protocol here ends in a

verification step that a static check cannot substitute for — schema changes fail on the upgrade path and the fresh-install path independently, and cache bugs only appear after a real rebuild.

  1. At the end of a session that used this skill, run protocols/self-refine.md.

Map

  • protocols/ — the procedures: change-schema, persist-new-data,

diagnose-storage, self-refine.

  • references/ — read on demand: storage-model.md (invariants and rebuild

semantics), paths-and-layout.md (roots, resolvers, on-disk shapes, cache backends), schema-rules.md (what a migration may and may not do), failure-modes.md (symptom → cause → fix).

  • scripts/check_schema_consistency.py — proves the three schema definitions

agree. Run it; do not eyeball them.

Siblings

Storage only. Mobile-safe imports and vault-path confinement are nexus-mobile-compat; test lanes and the in-app verification loop are nexus-testing; tools and agents that consume storage are nexus-agents.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/profsynapse/nexus/nexus-storage/badge)](https://verified-skill.com/skills/profsynapse/nexus/nexus-storage)

Something wrong with this skill or its page? Tell us.