Sets up robust SQLite persistence with versioned migrations, transactional writes, and repository interfaces.

Install

mkdir -p .claude/skills/sqlite-angelquinterodev && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18505" && unzip -o skill.zip -d .claude/skills/sqlite-angelquinterodev && rm skill.zip

Installs to .claude/skills/sqlite-angelquinterodev

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when implementing persistence with SQLite, schemas, and migrations.
71 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Define schema with version table and migration scripts
  • Use WAL mode and enforce foreign keys
  • Use parameterized queries and prepared statements
  • Wrap writes in transactions
  • Provide a repository layer with interface contracts
  • Use indexes on domain, rule ID, and timestamps

How it works

This skill provides a procedure and design guidelines for implementing persistence with SQLite, focusing on schema definition, migrations, and safe concurrency.

Inputs & outputs

You give it
Persistence requirements, schema design, migration strategy
You get back
Schema and migration plan, repository interfaces, and a concurrency strategy for SQLite persistence

When to use sqlite

  • Implementing local database persistence
  • Writing database migration scripts
  • Defining repository layers for SQLite

About this skill

SQLite

When to Use

  • Persisting rules, schedules, logs, and configuration
  • Implementing local storage with transactions

Goals

  • Stable schema with versioned migrations
  • Fast reads for policy evaluation
  • Safe concurrency with minimal locking

Procedure

  1. Define schema with version table and migration scripts.
  2. Use WAL mode and enforce foreign keys.
  3. Use parameterized queries and prepared statements.
  4. Wrap writes in transactions.
  5. Provide a repository layer with interface contracts.

Design Guidelines

  • Separate read models for UI stats vs policy data.
  • Use indexes on domain, rule ID, and timestamps.
  • Keep DB path in a protected app data directory.

Anti-patterns

  • Building SQL strings via concatenation.
  • Storing large blobs in hot tables.
  • Running migrations from UI thread.

Performance Considerations

  • Batch writes for log ingestion.
  • Use connection pooling or a single writer queue.

Security Considerations

  • Protect DB file with ACLs.
  • Encrypt sensitive fields if required.

Integration Guidelines

  • Repositories live in Infrastructure.
  • Application uses repository interfaces only.

Output Checklist

  • Schema and migration plan
  • Repository interfaces
  • Concurrency strategy

When not to use it

  • When building SQL strings via concatenation
  • When storing large blobs in hot tables
  • When running migrations from the UI thread

Limitations

  • Avoid building SQL strings via concatenation
  • Avoid storing large blobs in hot tables
  • Avoid running migrations from UI thread

How it compares

This skill offers a structured approach to SQLite persistence, emphasizing stable schemas, versioned migrations, and safe concurrency, which is more reliable than ad-hoc database implementations.

Compared to similar skills

sqlite side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
sqlite (this skill)02moNo flagsIntermediate
drizzle-orm321moNo flagsIntermediate
database-design66moReviewIntermediate
prisma-expert126moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry