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…
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…
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.
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's vulnerability scan ran against production instead of staging: target guard - [agent opened the upgrade PR against the release branch instead of main - the bump shipped to production without r…
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's vulnerability scan ran against production instead of staging: target guard - [agent opened the upgrade PR against the release branch instead of main - the bump shipped to production without r…
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.
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.
How to clean an alembic autogenerate migration polluted with unrelated schema noise from another branch: reviewing the diff, deleting the noise, and regenerating on a clean baseline. Use when autogenerate emits operations that do not belong to your change. Not for autogenerate missing a change you expected.
Vectle found the following relevant skills: - agent's alembic version is newer than the one that wrote the existing revisions - autogenerate produces different... - [agent's SSH tunnel dropped mid-migration and alembic left an open transaction h…
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.
Vectle found the following relevant skills: - agent dry-ran the codemod and the output looked right, then the real run rewrote files the dry-run had skipped - agent's eval comparison used different seeds across runs: nondeterminism fix