drizzle-responses-and-errors

Decode drizzle-kit JSON response envelopes, error codes, and exit codes from CLI and SDK output.

Updated Jul 24, 2026
One-click install
npx skills add https://github.com/saad-tayyab/lumora --skill drizzle-responses-and-errors-saad-tayyab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle-responses-and-errors
Source: https://github.com/saad-tayyab/lumora/tree/main/.agents/skills/drizzle-responses-and-errors
Command: npx skills add https://github.com/saad-tayyab/lumora --skill drizzle-responses-and-errors-saad-tayyab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When drizzle-kit commands fail or return structured JSON, agents and developers need a reliable way to interpret the response envelope, discriminate between status variants, and map error codes to concrete fixes. This Skill provides the canonical reference for parsing drizzle-kit output from both the CLI (--output json) and the SDK (generate, push, check). ## Core Features & Use Cases - Envelope Decoding: Narrow the discriminated union on status (ok, no_changes, missing_hints, error) with per-operation extras for generate, push, pull, export, up, and --explain. - Error Code Reference: A curated table of error codes (config_validation_error, database_driver_error, unsupported_schema_change, check_error, and more) with their meta keys and remediation steps. - Use Case: Your CI pipeline runs drizzle-kit generate --output json and exits with code 1. Use this Skill to parse the stdout envelope, identify error.code as schema_files_not_found_error, read meta.paths, and fix the schema glob. ## Quick Start Ask the AI to parse this drizzle-kit JSON output and explain what went wrong and how to fix it.

Frequently Asked Questions about drizzle-responses-and-errors

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse drizzle-kit JSON output from the CLI?

Run drizzle-kit with --output json and parse stdout as JSON, then switch on the status field. Exit code 0 means ok or no_changes, exit 1 means error, and exit 2 means missing_hints.

What does the drizzle-kit missing_hints status mean?

The missing_hints status exits with code 2 and carries an unresolved array of items needing decisions, such as rename_or_create or confirm_data_loss. Resolve each hint and retry the command; the resolution loop is covered by the drizzle-hints skill.

Does the drizzle-kit SDK return the same response shape as the CLI?

Yes, the SDK functions generate, push, and check return the same discriminated envelope the CLI prints with --output json. Decoding logic written for one surface works on the other, though SDK callers only see the envelope, not exit codes.

Why does drizzle-kit fail with database_driver_error?

The database_driver_error code means the driver could not connect, usually due to a missing or version-mismatched package. Check meta.packages for the required npm packages and meta.note for connection hints such as SSL requirements.

What causes unsupported_schema_change in drizzle-kit?

This error fires when the diff would emit DDL the target dialect cannot execute, discriminated by meta.kind. Variants include drop_pk_dependency and fk_target_not_unique on MySQL, and rename_blocked_by_check_constraint or rename_schema_unsupported on MSSQL, each with a specific remediation.