Skeema
$ skeema Official Med RiskSkeema (skeema) treats .sql CREATE TABLE files in Git as the source of truth for MySQL and MariaDB schemas. It previews exact ALTER/CREATE DDL via skeema diff, captures live drift with skeema pull, and refuses destructive drops unless --allow-unsafe is explicitly passed.
brew install skeema Skeema operates directly on local directory .skeema + .sql files in Git and runs deterministic DDL diffing locally.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean non-interactive skeema diff, skeema lint, and skeema push with meaningful exit codes (0/1/2), though outputs DDL text rather than JSON.
- Built-in
skeema diffdry-run and distinct exit codes - No
--jsonoutput mode
Refuses DROP TABLE, DROP COLUMN, and destructive alterations by default unless --allow-unsafe is passed, making accidental data loss hard.
- Blocks unsafe DDL unless
--allow-unsafeis explicitly specified
Single static Go binary available via Homebrew, go install, deb/rpm packages, and GitHub releases.
- Zero-dependency Go binary across macOS, Linux, and Windows
Eliminates manual ALTER TABLE migration writing for MySQL/MariaDB by computing diffs declaratively from .sql files.
- Declarative diff/pull/push/lint loop on pure
.sqlfiles
Official skeema/skeema tool under Apache-2.0 for Community Edition with active commercial backing.
- Official
skeema/skeemarepo under Apache-2.0
Clear command and option docs at skeema.io/docs/, including safety behavior and exit code specs.
- Well-structured CLI reference at skeema.io/docs
Security, Auth & Guardrails
Reads host, user, and options from .skeema files (~/.skeema / directory hierarchy) and password via MYSQL_PWD or --password.
Community Edition is Apache-2.0 open-source; commercial Plus/Max editions add views, triggers, and online DDL integrations.
# Skeema Agent Rules - Always run `skeema diff` and `skeema lint` before `skeema push`. - NEVER pass `--allow-unsafe` to `skeema push` without explicit user approval of the exact `DROP` DDL.
Agent-Ready Command Recipes
Safe Read-Only Queries
skeema diff
Compares local .sql table definitions against the live MySQL/MariaDB server and prints generated DDL.
skeema lint
Checks .sql definitions for formatting, engine, and configurable schema lint warnings.
Controlled Writes & Previews
skeema push
Applies non-destructive DDL changes; automatically aborts if any DROP or destructive alteration is required.
Strengths for Agents
- + Default safety gate refuses destructive
DROPDDL unless--allow-unsafeis explicitly supplied. - +
skeema diffprovides an exact dry-run of the DDL statements thatskeema pushwould execute. - + Pure
.sqlCREATE TABLEdefinitions require no proprietary DSL.
Caveats & Pitfalls
- ! Supports MySQL and MariaDB only (not PostgreSQL).
- ! Community Edition excludes views, triggers, events, and stored procedures (requires paid Plus/Max).