laravel-raptor-migrations

Audit Laravel migrations for multi-tenant issues and generate severity-ordered reports.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/callcocam/raptor-skils --skill laravel-raptor-migrations
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: laravel-raptor-migrations
Source: https://github.com/callcocam/raptor-skils/tree/main/laravel-raptor-migrations
Command: npx skills add https://github.com/callcocam/raptor-skils --skill laravel-raptor-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit existing Laravel migrations in multi-tenant Raptor projects to ensure ULID-based IDs, tenant-scoped constraints, and proper auditing. It identifies risky patterns like missing softDeletes, missing indexes on foreign keys, and non-compliant unique keys per tenant, and guides fixes with a per-file report workflow.

Core Features & Use Cases

  • Audit existing migrations to validate ULID usage, multi-tenant constraints, and softDeletes.
  • Generate a severity-driven report and apply safe fixes one file at a time with user confirmation.
  • Provide guidance for creating new migrations that follow Raptor's multi-tenant conventions, including composite unique keys and proper foreign keys.

Quick Start

Run the migration auditor against your Laravel project to scan tenant-aware patterns and apply per-file corrections.

Frequently Asked Questions about laravel-raptor-migrations

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

FAQPage Schema
How do I audit Laravel migrations for multi-tenant issues?▼

You can fix non-compliant unique keys by applying auto-generated per-file patches with user confirmation. The workflow enforces tenant_id composite unique constraints and proper ULID foreign keys to ensure data isolation across tenants.

How do I enforce ULID usage in Laravel multi-tenant migrations?▼

Missing softDeletes in Laravel multi-tenant migrations pose a risk of permanent data loss instead of safe archival. The audit identifies tables lacking softDeletes and guides fixes to ensure proper data retention and auditing across tenant boundaries.

Can I automatically add tenant_id composite unique keys in Laravel?▼

Yes, you can automatically add tenant_id composite unique keys in Laravel by running the migration auditor. It detects non-compliant unique keys and generates patches to enforce tenant-scoped constraints, ensuring uniqueness is maintained per tenant.

Does the migration audit check for missing foreign key indexes in Laravel?▼

Yes, the migration audit checks for missing foreign key indexes in Laravel. It identifies FK indexes that are absent and includes them in a severity-driven report, allowing you to apply safe fixes one file at a time.