Agent skill

Nexus Storage

by ProfSynapse in ProfSynapse/nexus

How to change, persist, migrate and recover Nexus data without losing it.

MITAuto-check passedDatabases

Install Nexus Storage

skills CLI
$ npx skills add ProfSynapse/nexus --skill nexus-storage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ProfSynapse/nexus nexus-storage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ProfSynapse/nexus.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.skills/nexus-storage .claude/skills/nexus-storage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nexus-storage
GitHub stars
156
Token cost
~749 tokens
SKILL.md length
354 words
Files
11 (incl. scripts, references)
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

How to change, persist, migrate and recover Nexus data without losing it.

  • Works in 6 steps: Pick the job and open its protocol… → Read references/storage-model.md before… → NEVER hardcode a storage root, and NEVER… → …
  • Adding a SQLite table
  • SKILL.md covers Workflow, Map and Siblings
  • Runs Python scripts from its folder; calls python3

What it does

Nexus Storage is an agent skill from ProfSynapse/nexus. 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.

Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts and reference files (for example `protocols/change-schema.md`, `protocols/diagnose-storage.md` and `protocols/persist-new-data.md`).

It sits in Databases. It works with SQLite. The licence is MIT.

When your agent uses it

  • Adding a SQLite table
  • Persisting anything that must survive a restart
  • A cache rebuild
  • Resolving a vault

Example prompts

  • “/nexus-storage”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Pick the job and open its protocol before editing anything
  2. Read references/storage-model.md before writing any persistence code. It
  3. NEVER hardcode a storage root, and NEVER treat SQLite as authoritative. Resolve
  4. If you touched SchemaMigrator.ts or schema.ts, run
  5. Verify at runtime, not just statically. Every protocol here ends in a
  6. At the end of a session that used this skill, run protocols/self-refine.md.

What it can do on your machine

Read from SKILL.md and the folder at commit f48a4ea. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nexus Storage loads about 749 tokens when it runs, and up to ~8.8k if it reads all its reference files. Until then it costs about 78 tokens; SKILL.md has 354 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~749
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from ProfSynapse/nexus at commit f48a4ea, republished under its MIT licence (© ProfSynapse). 354 words, ~749 tokens.

Download SKILL.mdSave it as .claude/skills/nexus-storage/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
nexus-storage
description
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.

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
  2. 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.

  3. 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.

  4. 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 .
  5. 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.

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

Show full SKILL.md (77 more words)Show less

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.

© ProfSynapse, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files (scripts, references) in .skills/nexus-storage of ProfSynapse/nexus.

  • SKILL.md
  • protocols/change-schema.md
  • protocols/diagnose-storage.md
  • protocols/persist-new-data.md
  • protocols/self-refine.md
  • references/failure-modes.md
  • references/paths-and-layout.md
  • references/schema-rules.md
  • references/storage-model.md
  • refinement-log.md
  • scripts/check_schema_consistency.py

Open the folder on GitHubat commit f48a4ea

Compare with similar skills

Nexus Storage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nexus Storage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nexus Storage this skillProfSynapse/nexus156—~749Automated safety check: PassMIT
Database Scoutzebbern/claude-code-guide4.7k—~1.1kAutomated safety check: PassMIT
Frontmcp Setupagentfront/frontmcp146—~5.8kAutomated safety check: PassApache-2.0
Blueprint Local Scaffoldreceptron/mulmoterminal236—~647Automated safety check: PassMIT
Add Memory KindEverMind-AI/EverOS13k—~2.6kAutomated safety check: PassApache-2.0
SQL Database Support for pRESTprest/prest4.6k—~1.6kAutomated safety check: PassMIT

Similar skills

  • Database Scout

    zebbern/claude-code-guide

    Explore SQLite and PostgreSQL databases: list tables, inspect schemas (columns/types/constraints), preview data, generate Mermaid ER diagrams, and run safe read-only queries.

    4.7k GitHub stars~1.1k tokensUpdated today
    DatabasesAuto-check passed
  • Frontmcp Setup

    agentfront/frontmcp

    A skill your agent uses when starting, scaffolding, or organizing a FrontMCP project.

    146 GitHub stars~5.8k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Blueprint Local Scaffold

    receptron/mulmoterminal

    Create the app skeleton: Express API, SQLite through node:sqlite, a Vue screen, and the test harness, following the layout the later checks rely on.

    236 GitHub stars~647 tokensUpdated today
    DatabasesAuto-check passed
  • Add Memory Kind

    EverMind-AI/EverOS

    Walks through adding a new persisted memory kind to EverOS: choose storage among Markdown, SQLite and LanceDB, pick a Markdown strategy, then wire schemas, repos and writers.

    13k GitHub stars~2.6k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Guides classifying, gap-analyzing and scaffolding support for a new SQL database in pREST, from Postgres-compatible variants to entirely new dialects.

    4.6k GitHub stars~1.6k tokensUpdated today
    DatabasesAuto-check passed
  • A skill your agent uses when changing Electron SQLite IPC, database-worker operations, request-scoped progress or cancellation, worker packaging, or runtime verification of non-EPG database work.

    7.3k GitHub stars~824 tokensUpdated today
    DatabasesAuto-check passed

More from ProfSynapse/nexus

All 12 skills in this repo
  • Nexus Agents

    ProfSynapse/nexus

    How to add, change and verify a Nexus agent or tool, and the contract every tool must satisfy.

    156 GitHub stars~843 tokensUpdated today
    Auto-check passed
  • Nexus Eval Harness

    ProfSynapse/nexus

    Work on the Nexus LLM eval harness in tests/eval/ — author or fix a scenario fixture, write an eval config, change the executors, assertions or reports, or explain a run that produced nothing…

    156 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Nexus Model Eval

    ProfSynapse/nexus

    Grade how well a model drives the Nexus two-tool protocol (getTools/useTools) and decide whether a low score is the model's fault or the harness's.

    156 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Nexus Model Updates

    ProfSynapse/nexus

    Add, change or verify a Nexus LLM model definition — the registry entry, the provider default, and proof the model id actually works against the live endpoint.

    156 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Nexus Release

    ProfSynapse/nexus

    Cut a Nexus release — bump the version with the repo's own machinery, get the docs and generated sources right, push a tag the GitHub Actions workflow will actually pick up, and recover when it does…

    156 GitHub stars~944 tokensUpdated today
    Auto-check passed
  • Nexus Testing

    ProfSynapse/nexus

    Verify a Nexus change — pick a Jest lane, write a test that can actually fail, run the in-app Obsidian CLI loop, drive the eval harness, or fix a shipped-docs drift failure.

    156 GitHub stars~994 tokensUpdated today
    Auto-check passed

Works with

Questions about Nexus Storage

What does Nexus Storage do?

How to change, persist, migrate and recover Nexus data without losing it. Nexus Storage is an agent skill from ProfSynapse/nexus. How to change, persist, migrate and recover Nexus data without losing it.

When should I use Nexus Storage?

Nexus Storage fits situations like: adding a SQLite table; persisting anything that must survive a restart; A cache rebuild; resolving a vault.

How do I install Nexus Storage in Claude Code?

Run `npx skills add ProfSynapse/nexus --skill nexus-storage -a claude-code`. Or copy the skill folder (.skills/nexus-storage in ProfSynapse/nexus) into .claude/skills/nexus-storage in your project. Claude Code loads it when a task matches its description.

How do I install Nexus Storage in Codex?

Run `npx skills add ProfSynapse/nexus --skill nexus-storage -a codex`. Or copy the skill folder (.skills/nexus-storage in ProfSynapse/nexus) into .agents/skills/nexus-storage in your project. Codex loads it when a task matches its description.

Can I use Nexus Storage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ProfSynapse/nexus --skill nexus-storage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nexus-storage, .gemini/skills/nexus-storage, .github/skills/nexus-storage and .opencode/skills/nexus-storage in your project.

What does Nexus Storage need to run?

Going by SKILL.md and its folder, Nexus Storage needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Nexus Storage access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Nexus Storage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Nexus Storage use?

Nexus Storage is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nexus Storage use?

About 749 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.1k tokens, read only when the agent opens those files.

What are the alternatives to Nexus Storage?

Skills that share tags, products or a category with Nexus Storage: Database Scout (zebbern/claude-code-guide, 4.7k stars), Frontmcp Setup (agentfront/frontmcp, 146 stars), Blueprint Local Scaffold (receptron/mulmoterminal, 236 stars) and Add Memory Kind (EverMind-AI/EverOS, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nexus Storage?

ProfSynapse (a GitHub user) maintains it in ProfSynapse/nexus, which has 156 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 8, 2026.

Source: ProfSynapse/nexus on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.