# skeema/skeema

Declarative pure-SQL schema management for MySQL and MariaDB

Repository: https://github.com/skeema/skeema
Canonical: https://ross.abutalabs.com/products/skeema
Language: Go
License: Apache-2.0
License Family: permissive
Topics: mysql, schema-management, mariadb, declarative, migrations, schema-diff, sql
Last push: 2026-08-20T20:33:53+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 82, longevity 100
- inputs: {"age_days": 3593, "days_push": 13, "days_rel": 41, "gap_med": 70, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1376, forks 106 (observed 2026-08-28T04:04:33.206988+00:00)

## What it is
Skeema is a Go-based CLI tool for declarative MySQL and MariaDB schema management using pure SQL CREATE statements tracked in version control. It diffs live databases against a schema repo to auto-generate DDL, with linting rules and online schema change integration.

## Use cases
- manage mysql schema changes declaratively in git
- auto-generate alter table ddl from schema diff
- keep dev staging and prod database schemas in sync
- lint database schema design in ci
- run online schema changes with gh-ost or pt-online-schema-change
- review database schema changes via pull requests

## When to choose
- you use MySQL or MariaDB and want schema-as-code with pure SQL files
- you need safe, battle-tested automatic DDL generation and diffing
- your team wants PR-based workflows and CI linting for schema changes
- you need non-disruptive ALTERs via online schema change tools

## When to avoid
- you primarily use PostgreSQL or other non-MySQL databases
- you prefer imperative migration scripts over declarative state
- you need the Premium features like foreign key management without paying

## Facets
- artifact type: cli-tool
- maturity: active
- function: database, linter, cli, developer-tools, configuration-management
- domain: databases, developer-tools
- platform: cli, go
- tags: mysql, mariadb, schema-management, schema-diff, declarative-migrations, sql, online-schema-change, database-migrations, devops, automation, linux, macos

## Member repositories
- skeema/skeema (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:33.206988+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:31.988931+00:00, confidence not recorded.
  - readme: https://github.com/skeema/skeema (fetched 2026-08-28T04:04:33.206988+00:00, sha 70b6d295d45c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
