Db handler

From aiskillstore/marketplace · View interactive version

Db handler is an AI agent skill from the GitHub repository aiskillstore/marketplace. Manage database schemas, Drizzle ORM, migrations, and data modeling. Use when creating tables, modifying columns, or planning database changes.

How to use this skill

Skill file

Database Handler

Instructions

1. Creating a New Table

  1. Draft: Create the pgTable definition in src/db/schema/{domain}.ts.
  2. Columns: Add ID (UUID), timestamps, and data columns.
  1. Relations: Define relations and Foreign Keys.
  2. Verification: Ask the user: "Is this structure correct? Are there any missing relations?"
  3. Migration:

2. Performance & Optimization (CRITICAL)

3. Modifying Columns

4. Types & Enums

Reference

For detailed patterns, imports, and best practices, see reference.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.