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

Goose

$ goose Community Med Risk
Pressly (OSS) · Database & Data · MIT · macos / linux / windows

goose (pressly/goose) manages database migrations written in annotated SQL (-- +goose Up / -- +goose Down) or Go. It ships as a single Go binary with status, validate, up-by-one, and clean GOOSE_DRIVER / GOOSE_DBSTRING environment variable configuration.

FCRS-1.0 Score
80 /100
Good
Medium Confidence
Zero-Friction Install
brew install goose
CLI vs MCP Decision CLI Only

goose validates and applies local SQL/Go migration files directly against the configured database driver without MCP overhead.

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 18 / 25

Fully non-interactive with GOOSE_* env vars and validate / status commands, though output is plain text without --json.

  • Supports GOOSE_* env vars and validate / status; plain-text output only
Trust & Safety 20 / 25

goose validate checks files offline, up-by-one allows cautious stepping, and GOOSE_DBSTRING keeps secrets out of process arguments, though reset rolls back all versions.

  • Offline validate and up-by-one stepping; reset is high-risk
Setup & Portability 14 / 15

Single Go binary via Homebrew, go install, and GitHub Releases across macOS, Linux, and Windows.

  • Static Go binary via brew install goose
Utility & Efficiency 13 / 15

Single-file -- +goose Up/Down format keeps up and down SQL together and supports out-of-order -allow-missing workflows.

  • Single-file SQL migrations plus optional Go code migrations
Maintenance & Lineage 8 / 10

Well-maintained open-source project (pressly/goose) under MIT license.

  • Active pressly/goose repository under MIT
Docs & Verifiability 7 / 10

Clear documentation at pressly.github.io/goose/ and --help.

  • Official docs at pressly.github.io/goose/

Security, Auth & Guardrails

Auth Modes
Env API Key Config File No Auth
Credential Storage

Reads GOOSE_DRIVER, GOOSE_DBSTRING, and GOOSE_MIGRATION_DIR environment variables (or .env) to keep DSNs out of command arguments.

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

100% free and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Goose Agent Rules
- Set `GOOSE_DRIVER`, `GOOSE_DBSTRING`, and `GOOSE_MIGRATION_DIR` via env vars instead of inline DSNs.
- Always run `goose validate` and `goose status` before `goose up`.
- Never run `goose reset` (it rolls back every migration) without explicit approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Check migration status
goose -dir ./migrations status

Displays applied timestamps and pending status for every migration using GOOSE_DRIVER/GOOSE_DBSTRING.

Validate migration files without connecting
goose -dir ./migrations validate

Checks SQL migration syntax and -- +goose Up/Down annotations locally.

Controlled Writes & Previews

Create a new SQL migration file
goose -dir ./migrations create add_users_index sql

Generates a timestamped .sql migration file in ./migrations.

Strengths for Agents

  • + goose validate verifies migration filenames and SQL annotations locally before touching a DB.
  • + GOOSE_DRIVER and GOOSE_DBSTRING env vars keep invocations clean and secret-free.

Caveats & Pitfalls

  • ! Lacks a --json output flag for status or version.
  • ! Running Go-based migrations requires compiling a custom binary rather than using stock goose.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI