sw-boilerplate-db

Generates database schema, ORM config, and migration files from tech-stack.yaml.

3|1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/chfle/lehnert-claude-skills --skill sw-boilerplate-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sw-boilerplate-db
Source: https://github.com/chfle/lehnert-claude-skills/tree/main/skills/sw-boilerplate-db
Command: npx skills add https://github.com/chfle/lehnert-claude-skills --skill sw-boilerplate-db

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates database schema, ORM config, and migration foundations directly in the workspace root based on requirements/tech-stack.yaml. If database.primary is "None" in tech-stack.yaml, this skill does nothing and prints the completion line.

Core Features & Use Cases

  • Generates Prisma schema, Flyway migrations, SQLAlchemy models, or TypeORM config depending on tech-stack.yaml.
  • Writes all files silently to the workspace root and emits a final completion line: ✅ sw-boilerplate-db completed
  • Validates the presence of requirements/tech-stack.yaml and the database configuration before proceeding.

Quick Start

Run the /sw-boilerplate-db to generate the boilerplate in your workspace based on your tech stack.

Frequently Asked Questions about sw-boilerplate-db

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

FAQPage Schema
How do I auto-generate database boilerplate for ORM setup?

To auto-generate database boilerplate for ORM setup, run the skill to read your requirements/tech-stack.yaml and write schema, ORM config, and migration files directly to your workspace root. It validates the tech-stack configuration before generating the appropriate boilerplate files.

What's the best way to create Prisma schema and migrations from a tech stack file?

Creating Prisma schema and migrations from a tech stack file is handled by reading the database.primary value in requirements/tech-stack.yaml. The skill generates Prisma-specific schema files and migration foundations directly in the workspace root based on that configuration.

Does this database migration boilerplate generator support TypeORM and SQLAlchemy?

Yes, this database migration boilerplate generator supports TypeORM and SQLAlchemy. It also applies to Prisma and Flyway setups, automatically creating the appropriate ORM configurations and migration files based on the database technology specified in your tech-stack.yaml.

What happens if database.primary is set to None in the tech stack configuration?

If database.primary is set to None in the tech stack configuration, the skill does nothing and emits a completion line. It validates the presence of requirements/tech-stack.yaml and the database configuration before proceeding with any boilerplate generation.

How does ORM configuration generation work for different database setups?

ORM configuration generation works by reading the database.primary field in requirements/tech-stack.yaml to determine the target framework. It then silently writes the appropriate schema, ORM config, and migration boilerplate files to the workspace root and emits a final completion line.

Do I need a requirements/tech-stack.yaml file to generate Flyway migrations?

Yes, you need a requirements/tech-stack.yaml file to generate Flyway migrations. The skill validates the presence of this file and its database configuration before creating any migration foundations or ORM boilerplate in the workspace root.