sqlite-review

Analyze and optimize SQLite schemas, queries, indexes, and pragmas.

2|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/ahrav/scratch-scanner-rs --skill sqlite-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqlite-review
Source: https://github.com/ahrav/scratch-scanner-rs/tree/main/.claude/skills/sqlite-review
Command: npx skills add https://github.com/ahrav/scratch-scanner-rs --skill sqlite-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses performance bottlenecks and schema inefficiencies within SQLite databases, ensuring optimal data storage and retrieval.

Core Features & Use Cases

  • Schema Auditing: Reviews table structures, column types, constraints, and foreign keys for correctness and efficiency.
  • Index Analysis: Identifies missing, redundant, or unused indexes by analyzing query execution plans.
  • Query Tuning: Optimizes slow queries by recommending index additions or query rewrites.
  • PRAGMA Optimization: Adjusts SQLite configuration pragmas (e.g., cache_size, journal_mode) for better performance.
  • Use Case: After a new feature adds complex reporting queries, use this Skill to analyze the findings.db schema and query performance, identifying and adding necessary indexes to keep reports fast.

Quick Start

Use the sqlite-review skill to analyze the database located at /path/to/findings.db.

Frequently Asked Questions about sqlite-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize SQLite query performance for slow reporting queries?

To optimize SQLite query performance, you must analyze query execution plans using EXPLAIN QUERY PLAN. This process identifies missing indexes and schema inefficiencies, enabling actionable recommendations like index additions or query rewrites to resolve slow data retrieval bottlenecks.

What's the best way to review a SQLite schema for missing indexes and constraints?

The best way to review a SQLite schema is through direct database introspection to audit table structures, column types, and foreign keys. This analysis identifies missing, redundant, or unused indexes by examining concrete execution plan evidence and page count queries.

How do I tune SQLite pragmas like cache_size and journal_mode for better database performance?

Tuning SQLite pragmas involves adjusting configuration settings like cache_size and journal_mode to optimize database performance. This requires connecting to the actual database to evaluate current configurations and applying targeted pragma adjustments for better storage and retrieval efficiency.

Does SQLite schema review require direct database access?

Yes, SQLite schema review requires direct database access. It must execute EXPLAIN QUERY PLAN, page count queries, and schema introspection commands against the actual database file to gather concrete evidence for accurate performance tuning and schema refinement recommendations.

Why does my SQLite database have redundant or unused indexes?

SQLite databases accumulate redundant or unused indexes when schema evolution outpaces index maintenance. Identifying these requires analyzing query execution plans to determine which indexes are actually utilized by the query optimizer and which cause unnecessary write overhead.