DB テーブル追加・変更スキル

Automate database table additions and updates with Prisma migrations and repository generation.

17|2|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/jujunjun110/product-starter --skill db-jujunjun110
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: DB テーブル追加・変更スキル
Source: https://github.com/jujunjun110/product-starter/tree/main/.claude/skills/db-table
Command: npx skills add https://github.com/jujunjun110/product-starter --skill db-jujunjun110

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prisma-based data layer changes often require coordinating schema edits, migrations, and repository/domain scaffolding. This skill automates the end-to-end workflow to reduce errors and accelerate backend iterations.

Core Features & Use Cases

  • Prisma schema updates aligned with snake_case mappings and proper IDs
  • Automatic migration generation and guidance, plus repository and domain model scaffolding
  • End-to-end workflow for adding or altering tables in production-grade projects
  • Use Case: Adding a new "comments" table and propagating schema, migration, and repository updates across codebase.

Quick Start

Create a new table named articles with fields id, title, content, and created_at.

Frequently Asked Questions about DB テーブル追加・変更スキル

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

FAQPage Schema
How do I automate Prisma schema changes and database migrations?

To automate Prisma schema changes and database migrations, you can use a workflow that updates the schema, creates and applies migrations, and generates repository artifacts. This ensures backend iterations are synchronized across all layers.

What is the process for adding a new table in Prisma end-to-end?

The process for adding a new table in Prisma involves updating the schema.prisma file with proper snake_case mappings and IDs, generating the migration, and scaffolding the domain and repository layers to complete the end-to-end workflow.

Do I need an existing Prisma project to automate table updates?

Yes, you need an existing Prisma project with a configured schema.prisma file to automate table updates. The automation enforces specific conventions and requires proper project setup before applying schema changes and generating repository code.

Can I generate domain models and repositories when altering database tables?

Yes, you can generate domain models and repositories when altering database tables. The automation scaffolds these artifacts alongside the Prisma schema updates and migration generation to maintain consistency across the data layer.

What's the best way to rename fields and update constraints in Prisma?

The best way to rename fields and update constraints in Prisma is to follow a coordinated sequence: update the schema, create and apply the migration, and regenerate repository artifacts. This prevents errors and ensures all layers reflect the changes.

Why should I automate Prisma migrations instead of doing them manually?

Automating Prisma migrations reduces errors that occur when manually coordinating schema edits, migrations, and repository scaffolding. It accelerates backend iterations by enforcing a strict sequence for updating schemas and generating domain artifacts.