Fortress

Automate pre-migration database reviews for Prisma schema safety and data integrity.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/artosetrov/iron-fist-arena-backend --skill fortress
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Fortress
Source: https://github.com/artosetrov/iron-fist-arena-backend/tree/main/.claude/skills/fortress
Command: npx skills add https://github.com/artosetrov/iron-fist-arena-backend --skill fortress

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures data correctness, schema safety, and migration integrity in the database layer, preventing risky changes from breaking applications or data flows.

Core Features & Use Cases

  • Schema safety checks for migrations, including nullability and default values
  • Prisma sync validation to ensure backend schema.prisma is the single source of truth
  • Data integrity verification (foreign keys, enum alignment, data shapes) and migration verification post-change
  • Use Case: Before deploying a migration, run Fortress to confirm reversibility and consistency across the database schema and data

Quick Start

Run a pre-migration review to verify schema safety, data integrity, and Prisma sync before deployment.

Frequently Asked Questions about Fortress

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

FAQPage Schema
How do I check database schema safety before running a Prisma migration?

To check database schema safety before running a Prisma migration, automate a pre-migration database review to verify nullability, default values, and data integrity. This process confirms reversibility and consistency across your schema and data flows before deployment.

What is the best way to ensure backend Prisma schema changes sync with admin models?

To ensure Prisma schema sync, enforce backend/prisma/schema.prisma as the single source of truth. After applying changes, copy it to admin/prisma/schema.prisma to maintain data consistency across your application layers.

How does pre-migration data integrity verification work with foreign keys and enums?

Pre-migration data integrity verification works by validating foreign keys, enum alignment, and data shapes against your schema. It checks these constraints during schema changes and Prisma model revisions to prevent breaking data flows.

When do I need to run prisma migrate dev after updating my database schema?

Run prisma migrate dev after updating your database schema and copying the backend schema to the admin directory. This sequence ensures migration safety and guarantees reversibility before deploying changes to production.

Can I use schema safety checks to prevent breaking changes during Prisma model revisions?

Yes, you can use schema safety checks to prevent breaking changes during Prisma model revisions. Automating pre-migration reviews verifies data consistency, validates constraints, and ensures risky schema updates do not break applications.

What are the limitations of automating database migration reviews for schema changes?

Limitations of automating database migration reviews include relying strictly on the backend Prisma schema as the source of truth. If the admin schema copy or prisma migrate dev execution fails, data consistency verification may not catch breaking changes.