{
  "id": "skl_b428663b63d8",
  "slug": "skill-drizzle-orm-zero-downtime-migrations",
  "asset_type": "skill",
  "name": "Drizzle ORM Zero-Downtime Postgres Migrations Playbook",
  "tagline": "Generate, lint, and apply non-blocking Drizzle ORM SQL migrations with expand-contract safety checks.",
  "description_md": "### Overview & Capability Scope\n**Drizzle ORM Zero-Downtime Postgres Migrations Playbook** (`skill-drizzle-orm-zero-downtime-migrations`) is a verified, portable `SKILL.md` playbook curated with **@steipete** for Grok Bot (`x.ai/bot/`), Claude Code (`~/.claude/skills/`), and Cursor (`.cursor/skills/`).\n\nGenerate, lint, and apply non-blocking Drizzle ORM SQL migrations with expand-contract safety checks.\n\n### Required Stack & Tooling\n- **Primary Stack:** Drizzle ORM, PostgreSQL, TypeScript\n- **Category:** `engineering`\n- **Source & Reference:** [https://github.com/drizzle-team/drizzle-orm](https://github.com/drizzle-team/drizzle-orm)\n\n### Quickstart Installation\nInstall this `SKILL.md` playbook directly into your agent workspace:\n```bash\nnpx lightstate install skill-drizzle-orm-zero-downtime-migrations\n```\nOr copy the complete `SKILL.md` specification below into `.cursor/skills/skill-drizzle-orm-zero-downtime-migrations/SKILL.md` or `~/.claude/skills/skill-drizzle-orm-zero-downtime-migrations/SKILL.md`.\n\n### Verification Commands\n```bash\nnpx drizzle-kit check\nnpx drizzle-kit generate\nnpx drizzle-kit migrate\n```\n",
  "primary_category": "engineering",
  "categories_json": "[\"engineering\", \"skills\"]",
  "tags_json": "[\"drizzle-orm\", \"postgresql\", \"typescript\", \"skill-md\", \"engineering\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"Drizzle ORM\", \"PostgreSQL\", \"TypeScript\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @steipete.",
  "share_url": "",
  "deep_link_uri": "",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "npx lightstate install skill-drizzle-orm-zero-downtime-migrations",
  "skill_markdown": "---\nname: drizzle-orm-zero-downtime-migrations\ndescription: Generate, lint, and apply non-blocking Drizzle ORM SQL migrations with expand-contract safety checks. Use when working with Drizzle ORM, PostgreSQL, TypeScript.\ntriggers:\n  - drizzle orm zero downtime migrations\n  - drizzle orm\n  - postgresql\n---\n\n# Drizzle ORM Zero-Downtime Postgres Migrations Playbook\n\n## 1. When to Use This Skill\nLoad `skill-drizzle-orm-zero-downtime-migrations` whenever an engineering, architecture, or operations task involves **Drizzle ORM, PostgreSQL, TypeScript**. Specifically:\n- Generate, lint, and apply non-blocking Drizzle ORM SQL migrations with expand-contract safety checks.\n- Designing, reviewing, refactoring, or debugging production configurations without guesswork or deprecated flags.\n- Running deterministic pre-flight validation and post-execution verification checks before reporting completion.\n\n## 2. Prerequisites & Required Environment\n- **Target Stack:** Drizzle ORM, PostgreSQL, TypeScript\n- **Permissions Boundary:** Read-only inspection by default; ask for explicit human confirmation before executing destructive mutations or production deployments.\n- **Reference Specification:** `https://github.com/drizzle-team/drizzle-orm`\n\n## 3. Step-by-Step Execution Playbook\n1. **Context & Configuration Discovery:**\n   Inspect existing project manifests (`package.json`, `tsconfig.json`, `pyproject.toml`, `Cargo.toml`, `wrangler.jsonc`, or schema declarations) before proposing changes. Never overwrite existing bindings or credentials blindly.\n2. **Deterministic Implementation:**\n   Apply the canonical production patterns for **Drizzle ORM**:\n   - Enforce strict schema and type validation at every external boundary.\n   - Include explicit error handling, structured telemetry, and idempotency keys on all mutating calls.\n   - Keep secrets in environment variables or managed secret stores—never hardcode tokens in source files.\n3. **Verification & Regression Gate:**\n   Run the verification commands below and inspect both exit codes and output payloads before marking the task complete.\n\n## 4. Reference Commands & CLI Workflow\n```bash\nnpx drizzle-kit check\nnpx drizzle-kit generate\nnpx drizzle-kit migrate\n```\n\n## 5. Edge Cases & Anti-Hallucination Guardrails\n- **Zero Unverified Claims:** Never claim a build, migration, test run, or API call succeeded without inspecting the command output or HTTP status code.\n- **Rollback Readiness:** Always record the previous state or migration version so changes can be reverted cleanly if downstream health checks fail.\n",
  "starter_prompt": "Load the Drizzle ORM Zero-Downtime Postgres Migrations Playbook (skill-drizzle-orm-zero-downtime-migrations) playbook. First inspect our current configuration and codebase for Drizzle ORM, PostgreSQL, TypeScript. Then propose a concrete, step-by-step implementation plan following the skill-drizzle-orm-zero-downtime-migrations guardrails, run the non-destructive verification commands (npx drizzle-kit check), and summarize any findings, risks, or required environment variables before making production changes.",
  "project_url": "https://github.com/drizzle-team/drizzle-orm",
  "repo_url": "https://github.com/drizzle-team/drizzle-orm",
  "creator_handle": "steipete",
  "creator_name": "Peter Steinberger (@steipete)",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/steipete",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://github.com/drizzle-team/drizzle-orm",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 300,
  "x_bookmarks": 730,
  "x_retweets": 182,
  "x_views": 4200,
  "human_upvotes": 300,
  "human_installs": 300,
  "bot_pulls": 730,
  "pulse_score": 82,
  "gravity_rank_score": 2500,
  "is_featured": 0,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T22:25:00Z",
  "updated_at": "2026-10-24T22:25:00Z",
  "verified_at": null,
  "primitive": "skill",
  "title": "Drizzle ORM Zero-Downtime Postgres Migrations Playbook",
  "description": "Generate, lint, and apply non-blocking Drizzle ORM SQL migrations with expand-contract safety checks.",
  "category": "engineering",
  "tags": "[\"drizzle-orm\", \"postgresql\", \"typescript\", \"skill-md\", \"engineering\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "steipete",
  "author_name": "Peter Steinberger (@steipete)",
  "author_avatar": null,
  "source_tweet_url": "https://github.com/drizzle-team/drizzle-orm",
  "github_url": "https://github.com/drizzle-team/drizzle-orm",
  "external_url": "https://github.com/drizzle-team/drizzle-orm",
  "upvotes_count": 300,
  "installs_count": 300
}