DB migrations and schema changes

Automate Alembic migrations and schema changes for the letta-cloud core application.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/KaiBoo404/agent-skills-with-project-template --skill db-migrations-and-schema-changes-kaiboo404
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: DB migrations and schema changes
Source: https://github.com/KaiBoo404/agent-skills-with-project-template/tree/main/.agents/skills/db-migrations-and-schema-changes
Command: npx skills add https://github.com/KaiBoo404/agent-skills-with-project-template --skill db-migrations-and-schema-changes-kaiboo404

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manages Alembic database migrations and schema changes for the letta-cloud core app, simplifying complex migrations and ensuring consistency across environments.

Core Features & Use Cases

  • Automated generation and application of Alembic revisions.
  • Guidance for debugging and resolving migration issues between SQLite and Postgres.
  • Clear, repeatable workflows with environment setup and repository conventions.

Quick Start

Set up the environment, configure the database URI, generate your Alembic revision, and apply migrations following the standard workflow.

Frequently Asked Questions about DB migrations and schema changes

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

FAQPage Schema
How do I generate and apply Alembic migrations for an ORM schema change?

To generate and apply Alembic migrations, you first set up the environment, configure the database URI, autogenerate the revision for your ORM schema change, and then apply the migration using the standard workflow. This process ensures reliable, repeatable database migrations across your environments.

What is the best way to debug migration issues between SQLite and Postgres?

The best way to debug migration issues between SQLite and Postgres is to follow a standardized workflow that guides you through environment preparation and repository conventions. This approach helps resolve inconsistencies and ensures schema changes are applied correctly across different database environments.

Do I need to configure the database URI before autogenerating Alembic revisions?

Yes, you need to configure the database URI before autogenerating Alembic revisions. Proper environment preparation and URI configuration are enforced steps in the workflow, ensuring that the schema changes are correctly mapped and applied to your specific SQLite or Postgres database setup.

Can I use this approach to add ORM columns across different database environments?

Yes, you can use this approach to add ORM columns across different database environments. The workflow is designed to manage Alembic database migrations and schema changes, simplifying complex migrations and ensuring consistency across SQLite, Postgres, and related environments.

Why does my database schema change break when switching between SQLite and Postgres?

Your database schema change might break when switching between SQLite and Postgres due to environment inconsistencies. By enforcing environment preparation, URI configuration, and clear repository conventions, you can debug and resolve these migration issues to maintain reliable database migrations.