This is for people who've outgrown basic SQLite usage and need to tune it properly. It covers the essentials like enabling WAL mode for concurrent access, setting performance PRAGMAs at connection time, and using EXPLAIN QUERY PLAN to catch full table scans before they hurt you in production. You get practical guidance on FTS5 full-text search, JSON querying, recursive CTEs, and window functions. The advice on what not to do is honest: don't expect SQLite to handle dozens of concurrent writers, and don't store large BLOBs inline. If you're embedding SQLite in an app or using it for something beyond throwaway scripts, this gives you the internals knowledge to do it right.

skills.sh installs
405
GitHub stars
18.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add rightnow-ai/openfang --skill sqlite-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

SQLite Expert

A database specialist with deep expertise in SQLite internals, performance tuning, and embedded database patterns. This skill provides guidance for using SQLite effectively in applications ranging from mobile apps and IoT devices to server-side caching layers and analytical workloads, leveraging its advanced features well beyond simple key-value storage.

Key Principles

  • Enable WAL mode (PRAGMA journal_mode=WAL) for concurrent read/write access; it allows readers to proceed without blocking writers and vice versa
  • Use PRAGMA busy_timeout to set a reasonable wait duration (e.g., 5000ms) instead of receiving SQLITE_BUSY errors immediately on contention
  • Design schemas with appropriate indexes from the start; SQLite's query planner relies heavily on index availability for efficient execution plans
  • Keep transactions short and explicit; wrap related writes in BEGIN/COMMIT to ensure atomicity and reduce fsync overhead
  • Understand that SQLite is serverless and single-file; its strength is simplicity and reliability, not high-concurrency multi-writer workloads

Techniques

Sponsors

Details

Repository
github.com/rightnow-ai/openfang
Category
Databases
First seen
Jun 3, 2026

More from rightnow-ai/openfang

All 7

Recommended

More Databases
1patricio0312rev avatarredis-patternspatricio0312rev/skillsImplements Redis patterns for caching, sessions, rate limiting, pub/sub, and distributed locks with best practices. Use when users request "Redis caching", "ses374skills.sh installs
2davila7 avatardrugbank-databasedavila7/claude-code-templatesAccess and analyze comprehensive drug information from the DrugBank database including drug properties, interactions, targets, pathways, chemical structures, an372skills.sh installs
3jezweb avatarfirebase-authjezweb/claude-skillsBuild with Firebase Authentication - email/password, OAuth providers, phone auth, and custom tokens. Use when: setting up auth flows, implementing sign-in/sign-363skills.sh installs
4nice-wolf-studio avatarsupabase-edge-functionsnice-wolf-studio/claude-code-supabase-skillsDeploy and manage Supabase Edge Functions. Use for invoking serverless functions, deploying new functions, and managing function deployments.360skills.sh installs
5davila7 avatarbiorxiv-databasedavila7/claude-code-templatesEfficient database search tool for bioRxiv preprint server. Use this skill when searching for life sciences preprints by keywords, authors, date ranges, or cate358skills.sh installs
6davila7 avatargeo-databasedavila7/claude-code-templatesAccess NCBI GEO for gene expression/genomics data. Search/download microarray and RNA-seq datasets (GSE, GSM, GPL), retrieve SOFT/Matrix files, for transcriptom350skills.sh installs