Ci schema invariant gate

From Bottelet/DaybydayCRM · View interactive version

Ci schema invariant gate is an AI agent skill from the GitHub repository Bottelet/DaybydayCRM. Ensures correct execution order of migrations, seeders, and tests in CI

How to use this skill

Skill file

CI Schema Gate

Purpose

Enforces correct execution order of database setup and test execution in CI.


1. Execution Order (Strict)

CI MUST run in this order:

php artisan migrate:fresh --seed
php artisan test

No deviations allowed.


2. Responsibility

This skill ONLY controls:

It does NOT validate:

These are handled by other skills.


3. Failure Behavior

If CI fails:

CI does NOT interpret or classify failures.


4. Determinism Requirement

Test execution MUST always run on a fresh database state created by:

migrate:fresh --seed

No cached or partial state is allowed.


5. Core Principle

CI defines execution order only.

It does not define correctness of the system.

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.