db-migrations — db-migrations für Claude Code db-migrations, lobehub, community, db-migrations für Claude Code, ide skills, Datenbankverwaltung mit KI, Datenbankmigrationen, Zusammenarbeit zwischen Agenten, PostgreSQL und KI, KI-Coding-Tools, Claude Code

v1.0.0

Über diesen Skill

Perfekt für AI-Coding-Assistenten wie Claude Code und Cursor, die eine automatisierte Datenbankverwaltung und SQL-Abfrageausführung für eine effiziente Workflow-Automatisierung benötigen. db-migrations ist eine Fähigkeit für KI-Agenten, die die Verwaltung von Datenbanken ermöglicht

Funktionen

Generierung von Datenbankmigrationen
Zusammenarbeit zwischen Agenten für die Verwaltung von Datenbanken
Kompatibilität mit Claude Code und anderen KI-Coding-Assistenten
Unterstützung für benutzerdefinierte Migrationen
Integration mit Datenbanktools wie PostgreSQL

# Core Topics

lobehub lobehub
[74.2k]
[14831]
Updated: 3/24/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 8/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
8/11
Quality Score
46
Canonical Locale
en
Detected Body Locale
en

Perfekt für AI-Coding-Assistenten wie Claude Code und Cursor, die eine automatisierte Datenbankverwaltung und SQL-Abfrageausführung für eine effiziente Workflow-Automatisierung benötigen. db-migrations ist eine Fähigkeit für KI-Agenten, die die Verwaltung von Datenbanken ermöglicht

Warum diese Fähigkeit verwenden

Ermöglicht es Agenten, Datenbankmigrationen mithilfe von SQL-Abfragen zu automatisieren, wodurch eine effiziente Automatisierung des Arbeitsablaufs mit AI-Coding-Assistenten ermöglicht wird und Funktionen wie benutzerdefinierte Migrationen für PostgreSQL-Erweiterungen bereitgestellt werden, während die Integrität des Datenbankschemas durch Updates der Dateien meta/_journal.json und migrations.json aufrechterhalten wird.

Am besten geeignet für

Perfekt für AI-Coding-Assistenten wie Claude Code und Cursor, die eine automatisierte Datenbankverwaltung und SQL-Abfrageausführung für eine effiziente Workflow-Automatisierung benötigen.

Handlungsfähige Anwendungsfälle for db-migrations

Automatisieren von Datenbankschemataktualisierungen mit bun run db:generate
Erstellen von benutzerdefinierten Migrationen zur Aktivierung von PostgreSQL-Erweiterungen
Aktualisieren der Datenbankschemadokumentation mit docs/development/database-schema.dbml

! Sicherheit & Einschränkungen

  • Benötigt bun-Laufzeitumgebung
  • Begrenzt auf die Verwaltung von PostgreSQL-Datenbanken
  • Benötigt Zugriff auf Datenbankschemadateien wie migrations.json und _journal.json

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is db-migrations?

Perfekt für AI-Coding-Assistenten wie Claude Code und Cursor, die eine automatisierte Datenbankverwaltung und SQL-Abfrageausführung für eine effiziente Workflow-Automatisierung benötigen. db-migrations ist eine Fähigkeit für KI-Agenten, die die Verwaltung von Datenbanken ermöglicht

How do I install db-migrations?

Run the command: npx killer-skills add lobehub/lobehub/db-migrations. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for db-migrations?

Key use cases include: Automatisieren von Datenbankschemataktualisierungen mit bun run db:generate, Erstellen von benutzerdefinierten Migrationen zur Aktivierung von PostgreSQL-Erweiterungen, Aktualisieren der Datenbankschemadokumentation mit docs/development/database-schema.dbml.

Which IDEs are compatible with db-migrations?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for db-migrations?

Benötigt bun-Laufzeitumgebung. Begrenzt auf die Verwaltung von PostgreSQL-Datenbanken. Benötigt Zugriff auf Datenbankschemadateien wie migrations.json und _journal.json.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add lobehub/lobehub/db-migrations. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use db-migrations immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

db-migrations

Install db-migrations, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
Supporting Evidence

Database Migrations Guide

Step 1: Generate Migrations

bash
1bun run db:generate

This generates:

  • packages/database/migrations/0046_meaningless_file_name.sql

And updates:

  • packages/database/migrations/meta/_journal.json
  • packages/database/src/core/migrations.json
  • docs/development/database-schema.dbml

Custom Migrations (e.g. CREATE EXTENSION)

For migrations that don't involve Drizzle schema changes (e.g. enabling PostgreSQL extensions), use the --custom flag:

bash
1bunx drizzle-kit generate --custom --name=enable_pg_search

This generates an empty SQL file and properly updates _journal.json and snapshot. Then edit the generated SQL file to add your custom SQL:

sql
1-- Custom SQL migration file, put your code below! -- 2CREATE EXTENSION IF NOT EXISTS pg_search;

Do NOT manually create migration files or edit _journal.json — always use drizzle-kit generate to ensure correct journal entries and snapshots.

Step 2: Optimize Migration SQL Filename

Rename auto-generated filename to be meaningful:

0046_meaningless_file_name.sql0046_user_add_avatar_column.sql

Step 3: Use Idempotent Clauses (Defensive Programming)

Always use defensive clauses to make migrations idempotent (safe to re-run):

CREATE TABLE

sql
1-- ✅ Good 2CREATE TABLE IF NOT EXISTS "agent_eval_runs" ( 3 "id" text PRIMARY KEY NOT NULL, 4 "name" text, 5 "created_at" timestamp with time zone DEFAULT now() NOT NULL 6); 7 8-- ❌ Bad 9CREATE TABLE "agent_eval_runs" (...);

ALTER TABLE - Columns

sql
1-- ✅ Good 2ALTER TABLE "users" ADD COLUMN IF NOT EXISTS "avatar" text; 3ALTER TABLE "posts" DROP COLUMN IF EXISTS "deprecated_field"; 4 5-- ❌ Bad 6ALTER TABLE "users" ADD COLUMN "avatar" text;

ALTER TABLE - Foreign Key Constraints

PostgreSQL has no ADD CONSTRAINT IF NOT EXISTS. Use DROP IF EXISTS + ADD:

sql
1-- ✅ Good: Drop first, then add (idempotent) 2ALTER TABLE "agent_eval_datasets" DROP CONSTRAINT IF EXISTS "agent_eval_datasets_user_id_users_id_fk"; 3ALTER TABLE "agent_eval_datasets" ADD CONSTRAINT "agent_eval_datasets_user_id_users_id_fk" 4 FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; 5 6-- ❌ Bad: Will fail if constraint already exists 7ALTER TABLE "agent_eval_datasets" ADD CONSTRAINT "agent_eval_datasets_user_id_users_id_fk" 8 FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;

DROP TABLE / INDEX

sql
1-- ✅ Good 2DROP TABLE IF EXISTS "old_table"; 3CREATE INDEX IF NOT EXISTS "users_email_idx" ON "users" ("email"); 4CREATE UNIQUE INDEX IF NOT EXISTS "users_email_unique" ON "users" USING btree ("email"); 5 6-- ❌ Bad 7DROP TABLE "old_table"; 8CREATE INDEX "users_email_idx" ON "users" ("email");

Step 4: Regenerate Client After SQL Edits

After modifying the generated SQL (e.g., adding IF NOT EXISTS), regenerate the client:

bash
1bun run db:generate:client

Verwandte Fähigkeiten

Looking for an alternative to db-migrations or another community skill for your workflow? Explore these related open-source skills.

Alle anzeigen

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
Künstliche Intelligenz

widget-generator

Logo of f
f

Erzeugen Sie anpassbare Widget-Plugins für das Prompts.Chat-Feed-System

149.6k
0
Künstliche Intelligenz

flags

Logo of vercel
vercel

Das React-Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensor und dynamische neuronale Netze in Python mit starker GPU-Beschleunigung

98.6k
0
Entwickler