Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Skeema

$ skeema Official Med Risk
Skeema · Database & Data · Apache-2.0 · macos / linux / windows

Skeema (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.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install skeema
CLI vs MCP Decision CLI Preferred vs MCP

Skeema operates directly on local directory .skeema + .sql files in Git and runs deterministic DDL diffing locally.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

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 diff dry-run and distinct exit codes
  • No --json output mode
Trust & Safety 23 / 25

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-unsafe is explicitly specified
Setup & Portability 13 / 15

Single static Go binary available via Homebrew, go install, deb/rpm packages, and GitHub releases.

  • Zero-dependency Go binary across macOS, Linux, and Windows
Utility & Efficiency 13 / 15

Eliminates manual ALTER TABLE migration writing for MySQL/MariaDB by computing diffs declaratively from .sql files.

  • Declarative diff/pull/push/lint loop on pure .sql files
Maintenance & Lineage 8 / 10

Official skeema/skeema tool under Apache-2.0 for Community Edition with active commercial backing.

  • Official skeema/skeema repo under Apache-2.0
Docs & Verifiability 8 / 10

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

Auth Modes
Config File Env API Key
Credential Storage

Reads host, user, and options from .skeema files (~/.skeema / directory hierarchy) and password via MYSQL_PWD or --password.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

Community Edition is Apache-2.0 open-source; commercial Plus/Max editions add views, triggers, and online DDL integrations.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Preview pending DDL changes without executing
skeema diff

Compares local .sql table definitions against the live MySQL/MariaDB server and prints generated DDL.

Lint local SQL schema files
skeema lint

Checks .sql definitions for formatting, engine, and configurable schema lint warnings.

Controlled Writes & Previews

Push safe (non-destructive) schema changes
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 DROP DDL unless --allow-unsafe is explicitly supplied.
  • + skeema diff provides an exact dry-run of the DDL statements that skeema push would execute.
  • + Pure .sql CREATE TABLE definitions 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).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI