epic-database

Design Prisma schemas and manage SQLite migrations with LiteFS in Epic Stack projects.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/walbuc/iac-sorteios --skill epic-database-walbuc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: epic-database
Source: https://github.com/walbuc/iac-sorteios/tree/main/docs/skills/epic-database
Command: npx skills add https://github.com/walbuc/iac-sorteios --skill epic-database-walbuc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prisma, SQLite, and LiteFS integration for Epic Stack requires coherent guidance on schema design, migrations, seeds, and deployment patterns to streamline database work across local and multi-region environments.

Core Features & Use Cases

  • Design Prisma schemas and models for SQLite with proper relations and indexing.
  • Create and apply migrations, seed data, and manage multi-region replication with LiteFS.
  • Optimize queries, implement best practices, and handle deployment considerations in Fly.io or similar environments.

Quick Start

Initialize and configure a Prisma + SQLite + LiteFS database setup for a new Epic Stack project.

Frequently Asked Questions about epic-database

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

FAQPage Schema
How do I configure Prisma with SQLite and LiteFS in an Epic Stack project?

To configure Prisma with SQLite and LiteFS in an Epic Stack project, define your Prisma schema blocks, establish migration commands, and set up seed scripts. You must also specify LiteFS write-read separation requirements for local development and multi-region deployments.

How does LiteFS handle multi-region database replication for Prisma and SQLite?

LiteFS handles multi-region replication for SQLite by distributing the database file across Fly.io regions. You must implement write-read separation in your Prisma operations, routing writes to the primary region and reads to local LiteFS replicas to ensure data consistency.

Can I use Prisma migrations and seeding with SQLite in a multi-region Fly.io deployment?

Yes, you can use Prisma migrations and seeding with SQLite in a multi-region Fly.io deployment. The workflow involves creating migration files, applying them to the primary database, and running seed scripts to populate initial data across your LiteFS replicated environments.

What is the best way to design Prisma schemas for SQLite in the Epic Stack?

The best way to design Prisma schemas for SQLite in the Epic Stack is to define models with proper relations and indexing strategies. This approach optimizes query performance and ensures your database structure aligns with LiteFS replication requirements.

Do I need to implement write-read separation for Prisma when using LiteFS?

Yes, you need to implement write-read separation for Prisma when using LiteFS. LiteFS replicates SQLite databases across multiple regions, so routing write operations to the primary node and reads to local replicas prevents conflicts and ensures data consistency.

What are the limitations of using SQLite with LiteFS for multi-region deployments?

A key limitation of using SQLite with LiteFS for multi-region deployments is the strict write-read separation requirement. Writes must route to a single primary region, meaning write latency depends on the distance from the primary, and automatic primary election is needed during regional failures.