/ship-pipeline:db-truthfrom ship-pipeline
Ground every database claim in the live database. Repo-agnostic — pre-work verification before any spec, plan, or code that touches tables (schema shape, M2M vs scalar, RLS/permissions, function properties), and post-apply verification that migrations actually landed (ledger, object existence, type regen). Defers to a repo-local db-truth skill when one exists. Use BEFORE designing anything DB-touching and AFTER every migration apply.
Ships in ship-pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Types, specs, docs, ORMs, and memory are NOT schema truth. Only the database is. The incident record behind this skill: a spec ratified by six agent reviewers assumed a column that didn't exist (reality was a many-to-many junction); a type regen against a stale local DB deleted 211 real production type keys; migration tools have exited success without applying, and applied without recording.
If the current repo has its own .claude/skills/db-truth/ or .agents/skills/db-truth/, that version is authoritative — follow it instead. This global version is the fallback.
Announce at start: "Running /db-truth <pre-work | post-apply> verification."
\d <table> via psql, or SELECT column_name, data_type, is_nullable FROM information_schema.columns WHERE table_name='<t>'. Supabase repos: local stack creds via eval "$(npx supabase status -o env)"; prod read-only via the MCP/dashboard. Paste relevant output into the spec/plan as canonical context — especially for junction tables.CREATE OR REPLACE resets EVERY unrestated property, including security settings like SET search_path — your replacement must restate them or you silently un-harden production.jsonb_set-style patches silently no-op when the parent key is missing. Verify the parent is seeded before targeting a nested key.file:line. Plans have named wrong injection sites; implementers propagate the error.npx supabase migration list --linked (or the stack's equivalent). Exit codes are NOT proof — pushes have succeeded without applying, and MCP-style apply tools have run DDL without recording it (reconcile the ledger manually if so).IF NOT EXISTS / DROP ... IF EXISTS); no non-IMMUTABLE functions (NOW()) in index predicates.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub stylusnexus/agent-plugins --plugin ship-pipeline16 skills in this plugin
/analytics-instrumentationPostHog event taxonomy and instrumentation review - object_verb naming, flat property schemas, identify/reset/group calls, PII exclusion, LLM usage events, a starter dashboard set (activation, retention, feature funnel), and a per-feature checklist. Use when instrumenting a new feature, auditing existing PostHog events, or setting up analytics for a new product, e.g. "add tracking", "what events should we fire", "review our PostHog events", "is there PII in analytics"./api-designREST conventions for Next.js App Router route handlers — resource naming, versioning, cursor pagination, one error envelope, Zod request/response validation, status-code rules, OpenAPI generated from Zod, and response scrubbing (no secrets, hashes, or other users' data). Use when asked to "design an API route", "add a new endpoint", "review this route handler", "fix our error responses", or "generate API docs"./backup-verifyConfirm database backups exist AND actually restore, by enumerating Neon branch snapshots / Supabase scheduled backups / pg_dump artifacts, restoring into a scratch branch, running smoke queries, and recording timestamped evidence. Use before any risky migration or production mutation, and on a monthly cadence regardless./cdfUse when the user types /cdf or $cdf, or asks for issue numbers "comma-delimited". Output any list of GitHub issues as one plain comma-separated line of numbers, nothing else added./db-migration-safetyWrite or review Prisma and Supabase database migrations safely using the expand-contract pattern, idempotent SQL, and batched backfills. Use when adding/changing columns or tables, writing a migration PR, or reviewing one before merge — especially against Neon Postgres or Supabase in production./deployPromote the integration branch to production as one authorized batch. Repo-agnostic — detects the repo's branch names, merge strategy, and release tooling from its own history, and defers to any repo-local runbook. Freezes the source commit, proves the live artifact matches it, records migration, publish, smoke, and rollback evidence, and closes only issues proved shipped. Use when ready to push to production.