manage-sqlite-migrations

manage-sqlite-migrations is a skill for Claude Code, Codex from RudderCode/Rudder. It costs 62 tokens per session (1,188 once invoked), scanned A, original, Apache-2.0.

A workflow for creating and checking Drizzle database migrations for Rudder’s local SQLite database. A migration is a recorded change that updates a database structure safely over time.

In plain words
What is it for?
Use it when adding or changing tables, columns, constraints, indexes, or data backfills, and when investigating migration failures.
Why use it?
It helps ensure schema changes work on both new and existing databases without experimenting on the user’s real database or rewriting published migration history.

Skill for Claude CodeCodex

Part of the rudder plugin — 6 skills, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ruddercode/rudder/manage-sqlite-migrations
Any agent
npx skills add RudderCode/Rudder --skill manage-sqlite-migrations
Clone the repo
git clone --depth 1 https://github.com/RudderCode/Rudder

Made for: Claude Code, Codex.

Or install rudder, the plugin that ships this one along with the rest of its 6 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for manage-sqlite-migrations

README.md
[![agentmods](https://agentmods.dev/badge/skills/ruddercode/rudder/manage-sqlite-migrations.svg)](https://agentmods.dev/skills/ruddercode/rudder/manage-sqlite-migrations)
Your own site
<a href="https://agentmods.dev/skills/ruddercode/rudder/manage-sqlite-migrations"><img src="https://agentmods.dev/badge/skills/ruddercode/rudder/manage-sqlite-migrations.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,188 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00062 $0.01188
Opus 5 $0.00031 $0.00594
Sonnet 5 $0.00012 $0.00238
Haiku 4.5 $0.00006 $0.00119

Measured 3d ago against content hash 0902a8722e45, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

manage-sqlite-migrations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate-migrations.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/manage-sqlite-migrations/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Manage SQLite Migrations

Produce a committed Drizzle migration that succeeds both from an empty database and from a representative snapshot without modifying the user's real rudder.db.

Preserve the safety boundary

  • Treat src/db/schema.ts as the declarative schema and committed folders under drizzle/ as the runtime history.
  • Never run migration experiments against the real database. openDb() applies pending migrations automatically, so do not point application code at the real RUDDER_HOME while authoring a migration.
  • Never use drizzle-kit push; generate a migration file and review its SQL.
  • Treat migrations already present on origin/main as immutable. Add a forward migration instead of rewriting published history.
  • Do not delete data, drop schema objects, or replace the real database unless the user explicitly authorized that destructive outcome.
  • Do not edit almanac/ during ordinary migration work. Use it as read-only context unless the user invokes a CodeAlmanac maintenance workflow.

Follow the workflow

  1. Inspect .agentsignore, git status, src/db/schema.ts, src/db/client.ts, drizzle.config.ts, the current drizzle/ history, and migration tests. Search CodeAlmanac for the affected database files or concept when architectural context is relevant.

  2. Before changing shared database infrastructure, run the repository baseline:

    npm run typecheck
    npm test
    npm run build
    

    Install dependencies first when node_modules/ is absent. Report pre-existing failures before continuing.

  3. State the intended schema and data invariants. Classify the change as additive, data-transforming, or destructive. For a destructive change, preserve required data in a new shape before removing the old shape; stop for user approval when data loss was not explicitly requested.

  4. Edit src/db/schema.ts, then generate a named migration:

    npm run db:generate -- --name <short-kebab-name>
    

Read the full file on GitHub · 103 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 103 lines · 62 tokens per session scan A 0902a8722e45

Subscribe to this mod's changes

manage-sqlite-migrations is a skill published in the GitHub repository RudderCode/Rudder (23 stars, last pushed 15d ago), licensed Apache-2.0. It adds 62 tokens to every session and 1,188 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cuopt-numerical-optimization-formulation

LP, MILP, QP — concepts, problem-text parsing, and formulation patterns (parameters, constraints, decisions, objective). Concepts only; no API.

NVIDIA/skills · 42 tokens

deepstream-sop

Use this skill when building, deploying, evaluating, debugging, or measuring latency for the DeepStream SOP Inference Microservice — a GPU-accelerated FastAPI service that detects whether operators perform assembly-line steps in order via event boundary detection (GEBD) plus VLM classification. Trigger even if the…

NVIDIA/skills · 219 tokens

digital-health-clinical-asr-eval

Stage 3 of Clinical ASR Flywheel. Score a NeMo manifest, produce the five-section KER leaderboard (by-ipasource diagnostic). Not for ASR auth (/riva-asr).

NVIDIA/skills · 51 tokens

amc-run-rtsp-calibration

Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or asks to calibrate live cameras; VIOS records clips, AMC ingests them, then runs calibration.

NVIDIA/skills · 59 tokens

cuopt-multi-objective-exploration

Trace, complete, and interpret the Pareto frontier across competing objectives using repeated single-objective cuOpt solves (weighted-sum and ε-constraint).

NVIDIA/skills · 40 tokens

cupynumeric-migration-readiness

Pre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment…

NVIDIA/skills · 173 tokens