Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
mattpocock avatar

Better Sqlite3 Rebuild

  • 57 installs
  • 193 repo stars
  • Updated April 1, 2026
  • mattpocock/ai-engineer-workshop-2026-project

Recover a local app that crashes on better-sqlite3 load after you change Node versions or pull fresh node_modules.

About

better-sqlite3-rebuild is a narrow agent skill that tells your coding agent to fix the most common better-sqlite3 failure mode: the native addon was built for a different Node.js ABI than the one you are running now. Solo and indie builders hit this constantly when switching nvm versions, upgrading Node for a deploy target, or cloning a repo on a new machine. Instead of burning context on explanations, the skill encodes a single corrective action—run `npm rebuild` in the project—and then retry. It is aimed at anyone shipping Node backends or CLIs that persist data with better-sqlite3, especially during workshop-style rapid iteration where Node versions move faster than documentation. The skill does not replace diagnosing corrupt databases or wrong SQL; it only addresses native binding load errors. Pair it with your normal test or dev-server loop so the agent rebuilds proactively whenever the error signature appears.

  • Triggers on better-sqlite3 native module and NODE_MODULE_VERSION mismatch errors
  • Runs `npm rebuild` immediately without asking the user first
  • Retries the failing operation after rebuild
  • Scoped to better-sqlite3 binding failures, not generic SQLite SQL debugging

Better Sqlite3 Rebuild by the numbers

  • 57 all-time installs (skills.sh)
  • Ranked #300 of 610 Debugging skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/mattpocock/ai-engineer-workshop-2026-project --skill better-sqlite3-rebuild

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs57
repo stars193
Security audit3 / 3 scanners passed
Last updatedApril 1, 2026
Repositorymattpocock/ai-engineer-workshop-2026-project

What it does

Recover a local app that crashes on better-sqlite3 load after you change Node versions or pull fresh node_modules.

Files

SKILL.mdMarkdownGitHub ↗

better-sqlite3 Rebuild

When you encounter errors related to better-sqlite3 and Node.js version mismatches (e.g. NODE_MODULE_VERSION mismatch, "was compiled against a different Node.js version", native module load failures), proactively fix by running:

npm rebuild

Do this without asking the user first - just rebuild and retry.

Related skills

FAQ

Is Better Sqlite3 Rebuild safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Debuggingbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.