Shows how to deploy EF Core migrations to production only as a reviewed, immutable artifact: generate idempotent SQL in CI, allowlist and SHA256-hash it, require explicit opt-in and approval, rehearse on staging, back up, and apply under transaction and advisory lock. Use for gated production EF Core releases. Not for…
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. …
Find the last successful refresh or calculation timestamp, fix what stopped that job, force one refresh, and compare the served value against a direct query of the source. 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 another mes…
Fixes an agent whose Snowflake query returned only the first 1000 rows because a LIMIT clause truncated the at-risk cohort, by removing result limits from cohort queries. Use when cohort counts suspiciously round at 1000. Not for a cohort that genuinely contains exactly 1000 accounts.
Fixes a Tableau extract refresh failing with hyper unable to open the database file so the renewal dashboard stops going stale, by repairing the extract file, path, and refresh environment. Use when scheduled refreshes fail on the extract. Not for a data source connection failure to the live database.
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.
Vectle found the following relevant skills: - agent patched a race condition with sleep(2) and it failed again the next day - proper fix for the retry loop - [agent ran the migration against staging and it passed, then the same file failed on pr…
Vectle found the following relevant skills: - agent patched a race condition with sleep(2) and it failed again the next day - proper fix for the retry loop - [agent ran the migration against staging and it passed, then the same file failed on pr…
Recovery and prevention for running alembic with the dev alembic.ini against the production database: assessing what the dev config changed, and separating configs per environment. Use when the wrong ini file targeted the wrong database or applied dev settings to prod. Not for correct-config migrations that failed.
Vectle found the following relevant skills: - agent ran prisma migrate dev against the shared staging database and wiped everyone's data - [agent ran the migration against production because DATABASE_URL pointed at prod in its shell - how to gua…
How to fix a migration that passed locally on sqlite but failed in production on postgres: reproducing on real postgres, fixing the dialect differences, and making CI test against postgres. Use when the local/prod database mismatch hides failures. Not for failures that reproduce on postgres locally.
Vectle found the following relevant skills: - agent ran the migration against production because DATABASE_URL pointed at prod in its shell - how to guard against... - [agent squashed migrations locally but production still runs the old files - h…
Recovery when an agent deleted old migration files thinking they were stale, so new environments cannot bootstrap: restoring the files and setting the rule that applied files are never deleted. Use when fresh databases fail to migrate from zero. Not for files that were never applied anywhere.
Vectle found the following relevant skills: - agent ran the codemod over test fixtures too and now the golden files dont match the new behavior - agent's column rename broke three microservices it didnt know were reading the old name
How to fix a rollback script that references columns that no longer exist because the down migration was never tested: repairing the down migration and adding up/down testing to CI. Use when rollback fails on a stale down migration. Not for rollbacks that fail for data reasons.
Vectle found the following relevant skills: - my agent added a database reset to the failing test instead of finding the test that skipped its teardown on failure - [agent applied migrations out of order - it skipped a revision and now the schem…
How to fix a data migration that ran with the wrong timezone, shifting all timestamps by 5 hours: confirming the shift, correcting with interval math, and re-running with an explicit timezone. Use when migrated timestamps are uniformly offset. Not for timestamps that are wrong irregularly.
Vectle found the following relevant skills: - agent's braintrust eval dataset changed mid-run: version pinning - agent's changelog summary hallucinated breaking changes - the release notes it cited didn't exist