Vectle found the following relevant skills: - Additive Postgres migration release gate - agent added a column with a default to a 500M-row table and postgres is rewriting the whole table while the app is live
Shows how to build a public audit history projection for document approvals that cannot leak private review notes: filter at projection time on both document status and event visibility, store the public read model in a separate table with no private columns, and handle unpublish, rebuilds and counts. Use when exposin…
Shows how to design a read-only service API with modular least-privilege scopes: one scoped service token per module, read-only enforcement at route, scope and data layers, published-only filtering inside the base query, allowlist response projection for user privacy, and coarse opt-in handling for presence data. Use …
Shows how to build named opaque API tokens in ASP.NET Core: issue a prefixed random token once, store only its hash, authenticate it in a dedicated scheme, scope and revoke it per endpoint, and add per-token rate limiting and usage aggregates. Use when replacing shared bearer secrets with revocable per-client tokens. …
Verify table names against the catalog the same way as columns: resolve every referenced table against the information schema, including its database and schema qualifiers, before executing generated SQL. Use when an agent writing SQL across warehouse projects or schemas. Not for a table that exists but in another pro…
Look the object up by listing the current workspace rather than trusting the stored id or name, remap the reference to the current id, and fail loudly when a listing has no match. Use when you see this exact failure in Metabase and the affected record or object can be named. Not for a different Metabase error with ano…
Fixes a Metabase card that fails because a column no longer exists by syncing the schema and updating the question to the current field name. Use when a saved question breaks after a table change. Not for a whole database connection failure affecting every card.
Fixes a Snowflake SQL compilation error saying object USAGE_EVENTS does not exist so the churn scoring job runs again, by correcting name resolution and access. Use when the job fails at compile time. Not for a query that runs but returns wrong numbers.
Builds an authenticated EF Core employee directory that returns only a minimal public DTO: exclusion of blocked and system accounts before search and counting, server-side Select projection with no admin fields, an allowlisted sort with an id tie-breaker, and clamped pagination. Use when a directory endpoint returns u…
Fixes the Database Error where a model queries analytics_stg.stg_orders but that relation was never built in the warehouse. Use when the error names a staging relation with a doubled or wrong schema prefix. Not for source tables owned outside dbt.
How to fix a migration preview that lied because the dry run used a different postgres search_path than the real migration: aligning the two and making previews trustworthy. Use when the dry-run output does not match what the migration actually does. Not for previews that are wrong for other reasons.
How to fix a bulk backfill failing on foreign key checks: ordering inserts parents-first, or disabling the checks for the load session and re-validating after. Use when every backfill batch fails on FK violations. Not for genuinely orphaned data.
Recovery and prevention for an agent that assumed DDL was transactional on mysql: the half-applied migration cannot be rolled back because mysql commits DDL implicitly. Use when a mysql migration failed midway and left a partial schema. Not for postgres, where transactional DDL usually allows rollback.
Fixes Sequelize 'relation Users does not exist' caused by model/table name case mismatch. Use when the model name pluralizes to a capitalized table name but the real table is lowercase. Key trigger: Postgres errors naming a capitalized table that migrations created lowercase.
Fixes the dbt relation does not exist error: wrong schema, wrong database, or a ref pointing at a model that never built. Use when dbt compiles but the warehouse says the table is missing. Not for permission errors on existing tables.
Fixes Postgres 'extension vector does not exist' when using pgvector. Use when CREATE EXTENSION was never run on the target database, when migrations run against a fresh database, and when managed Postgres needs the extension allowlisted first. Not for permission-denied errors or pgvector version mismatches.
Grounds agent-generated SQL against the real schema before running it. Use when an agent references columns that dont exist, when hallucinations invent plausible field names, or when the schema changed under the agent. Not for syntax errors, for permission denials, or for logic bugs in correct SQL.
Fixes slow PostgreSQL full-text search on a GIN index: expression mismatch that makes the planner ignore the index, pending-list bloat on write-heavy tables, fuzzy result sets capped with gin_fuzzy_search_limit, and ts_rank costing inside a LIMIT subquery. Use when a @@ query on a tsvector GIN column runs a sequential…
Fixes Snowflake SQL compilation error: Object does not exist. Use when queries fail on missing tables or views, when an agent queries the wrong database/schema, or when case-sensitive identifiers mismatch. Not for permission errors, for warehouse sizing issues, or for syntax errors.
Fixes HubSpot search API 400s on filterGroups: wrong operator, wrong value type, or bad nesting. Shows the valid filter shape with a working example. Use when /search returns 400 naming filterGroups. Not for pagination or auth errors.
Fixes ChromaDB InvalidCollectionException when the named collection doesnt exist. Use when get_collection fails, when an agent queries before creating the collection, or when the persist directory points at the wrong path. Not for dimension mismatches, for auth errors, or for corrupted persistence.
Fixes the dbt RelationNotFound error by rebuilding the missing model, correcting the target schema in the profile, or pointing at the right database. Use when dbt or a downstream query fails because a relation is missing. Not for compile-time dependency errors, which name the missing node instead.
Diagnoses a database connection failure with connection timeout symptoms: Postgres 'could not connect to server: Connection timed out' across psql, libpq drivers, and managed hosts. Use when the client cannot reach the server: fail-fast probing with connect_timeout, layering DNS vs raw TCP vs handshake for network dia…
Troubleshooting guide for false N+1 alerts where an ORM issues a single batched IN query but the profiler agent counts query-builder log lines instead of real database round trips. Use when an N+1 alert fires but the database only saw one query. Shows how to verify round trips at the connection level and fix the detec…