recover_sqlite_database

recover_sqlite_database is a skill for Claude Code from markmhendrickson/neotoma. It costs 11 tokens per session (486 once invoked), scanned A, original, MIT.

A recovery procedure for damaged Neotoma SQLite database files. SQLite is a file-based database system, and this procedure creates a repaired copy for checking and possible replacement.

In plain words
What is it for?
Use it to check a Neotoma database, create a recovered copy, verify its integrity, and inspect any rows placed in a lost-and-found area.
Why use it?
It helps when Neotoma reports that its database is malformed or corrupt, instead of leaving you to recover the file manually.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/recover_sqlite_database.js.

Good fit Use it to check a Neotoma database, create a recovered copy, verify its integrity, and inspect any rows placed in a lost-and-found area.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/markmhendrickson/neotoma
agentmods
npx agentmods add skills/markmhendrickson/neotoma/recover_sqlite_database

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 recover_sqlite_database

README.md
[![agentmods](https://agentmods.dev/badge/skills/markmhendrickson/neotoma/recover_sqlite_database/github.svg)](https://agentmods.dev/skills/markmhendrickson/neotoma/recover_sqlite_database)
Your own site
<a href="https://agentmods.dev/skills/markmhendrickson/neotoma/recover_sqlite_database"><img src="https://agentmods.dev/badge/skills/markmhendrickson/neotoma/recover_sqlite_database/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 recover_sqlite_database

Your own site · 80×15
<a href="https://agentmods.dev/skills/markmhendrickson/neotoma/recover_sqlite_database"><img src="https://agentmods.dev/badge/skills/markmhendrickson/neotoma/recover_sqlite_database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 486 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 6
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00011 $0.00486
Opus 5.5 $0.00004 $0.00194
Sonnet 5.5 $0.00002 $0.00097
Haiku 4.5 $0.00001 $0.00049

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

Security

Grade A, and why

recover_sqlite_database scanned grade A with 0 findings 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 3mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/recover_sqlite_database/SKILL.md · 46 lines

What it actually says

Recover Neotoma SQLite Database

When to use

Neotoma errors such as database disk image is malformed, failed PRAGMA integrity_check, or btreeInitPage / SQLITE_CORRUPT on the local SQLite file (neotoma.db or neotoma.prod.db under NEOTOMA_DATA_DIR).

Preconditions

  • sqlite3 CLI on PATH (macOS usually has it).
  • Stop Neotoma (MCP stdio processes, neotoma api, anything using the DB) before --recover or before swapping files.

Script (primary)

From the Neotoma repo root:

# Check only (exit 0 = ok, 2 = corrupt)
node scripts/recover_sqlite_database.js
node scripts/recover_sqlite_database.js --env production

# Write recovered copy (does not replace live DB)
node scripts/recover_sqlite_database.js --env production --recover

Or: npm run recover:db and npm run recover:db:prod -- --recover (see package.json).

Output is a sibling file like neotoma.prod.recovered-<timestamp>.db. Verify it reports PRAGMA integrity_check: ok, then manually archive the live .db/-wal/-shm and cp the recovered file to the live name.

After swap

  • Inspect lost_and_found in the recovered file if present; re-ingest important rows via POST /store / MCP store using normal schemas (see prior recovery notes: note, issue, etc.).
  • Prefer NEOTOMA_DATA_DIR outside iCloud-synced folders (e.g. not only under ~/Documents if Documents syncs) to reduce recurrence.

Do not

  • Run --recover while Neotoma still holds the database open.
  • Auto-delete the corrupt file until a good recovered copy is verified and backed up.
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. 3mo ago First seen · 46 lines · 11 tokens per session scan A 60e5356be359

Subscribe to this mod's changes

recover_sqlite_database is a skill published in the GitHub repository markmhendrickson/neotoma (37 stars, last pushed yesterday), licensed MIT. It adds 11 tokens to every session and 486 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

recover_sqlite_database compared with skills from other repositories

recover_sqlite_database next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
recover_sqlite_databasemarkmhendrickson/neotomaSkill37yesterdayMITA11Claude Code
architecture-paradigm-cqrs-esathola/claude-night-marketSkill358yesterdayMITA33Claude Code
backend-event-sourcingj4flmao/agent-skillsSkill4613d agoMITA68Claude Code, Codex
cqrs-event-sourcingNickCrew/Claude-CortexSkill759d agoMITA46Claude Code, Codex
cratis-cli-terminal-workbenchCratis/AISkill4todayMITA45Claude Code, Codex
cratis-arc-spring-data-kotlinCratis/AISkill4todayMITA55Claude Code, Codex
cratis-arc-storage-typescriptCratis/AISkill4todayMITA47Claude Code, Codex