sql-migration

Manage SQLite schema creation and migrations with SQL and TypeScript.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/twlines/maslow --skill sql-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-migration
Source: https://github.com/twlines/maslow/tree/main/skills/sql-migration
Command: npx skills add https://github.com/twlines/maslow --skill sql-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a standardized and safe approach to managing SQLite database schemas and performing migrations, ensuring data integrity and simplifying development workflows.

Core Features & Use Cases

  • Schema Definition: Provides clear SQL examples for creating tables with primary keys, foreign keys, and indexes.
  • Migration Patterns: Demonstrates how to add columns to existing tables safely, including index creation.
  • Prepared Statements: Enforces the use of prepared statements for secure and efficient database queries.
  • Use Case: When developing a new feature that requires changes to the application's database, use this Skill to define the new table structure and write the migration script to safely update the existing schema.

Quick Start

Use the sql-migration skill to create a new table named 'users' with 'id' and 'email' columns.

Frequently Asked Questions about sql-migration

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

FAQPage Schema
How do I safely add a new column to an existing SQLite database schema?

To safely add a column to a SQLite schema, use established migration patterns that enforce data integrity through careful SQL statements and proper index creation. This approach ensures existing data remains intact during the schema update.

What is the best way to define foreign key constraints in SQLite migrations?

Defining foreign key constraints in SQLite migrations involves using clear SQL examples within your schema creation scripts to enforce relationships. This standardized approach guarantees robust data management and relational integrity across tables.

How do I use prepared statements with TypeScript for SQLite database queries?

Using prepared statements with TypeScript for SQLite database queries enforces secure and efficient execution. This Skill demonstrates combining SQL with TypeScript to standardize query patterns and prevent injection vulnerabilities.

How does integer timestamp handling work in SQLite schema migrations?

Integer timestamp handling in SQLite schema migrations works by enforcing best practices for storing time data as integers. This approach standardizes time tracking and ensures reliable data sorting and chronological comparisons.

Can I manage JSON data within a SQLite database schema using TypeScript?

Yes, you can manage JSON data within a SQLite database schema using TypeScript by applying enforced JSON handling best practices. This functionality allows structured data storage while maintaining safe migration and query patterns.