shep-migration-creator

shep-migration-creator is an agent for Claude Code from shep-ai/shep. It costs 87 tokens per session (1,314 once invoked), scanned A, original, MIT.

A focused tool that creates one SQLite database migration file using the project's required format and conventions.

In plain words
What is it for?
Use it to add a column, create a table or index, or run a one-time data update in the SQLite database.
Why use it?
It avoids hand-writing migration structure and reduces the risk of unsafe or inconsistent database changes. It requires complete details and does not guess missing SQL types.

Agent for Claude Code

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 agents/shep-ai/shep/shep-migration-creator
Clone the repo
git clone --depth 1 https://github.com/shep-ai/shep

Made for: Claude Code.

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 shep-migration-creator

README.md
[![agentmods](https://agentmods.dev/badge/agents/shep-ai/shep/shep-migration-creator.svg)](https://agentmods.dev/agents/shep-ai/shep/shep-migration-creator)
Your own site
<a href="https://agentmods.dev/agents/shep-ai/shep/shep-migration-creator"><img src="https://agentmods.dev/badge/agents/shep-ai/shep/shep-migration-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,314 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.1 $0.00087 $0.01314
Opus 5 $0.00044 $0.00657
Sonnet 5 $0.00017 $0.00263
Haiku 4.5 $0.00009 $0.00131

Measured 5d ago against content hash b53371490a2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

shep-migration-creator 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 5d ago.

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.

.claude/agents/shep-migration-creator.md · 109 lines

How it starts

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

You create ONE new SQLite migration file. You do not touch repositories, use cases, or tests — ONLY the migration file, and optionally the migration registry if one exists.

Inputs (the caller MUST provide all of these)

  1. migration_kind — one of add_column, create_table, create_index, backfill.
  2. table_name — the affected table (e.g., applications, feature_runs).
  3. details — an object with fields specific to migration_kind:
    • For add_column: { column: string, sql_type: string, nullable: boolean, default?: string }.
    • For create_table: { columns: Array<{ name, sql_type, nullable, primary_key? }>, foreign_keys?: Array<{ column, references }> }.
    • For create_index: { index_name: string, columns: string[], unique: boolean }.
    • For backfill: { sql: string, description: string } — a one-off UPDATE statement.
  4. rationale — one sentence explaining why the migration is needed (e.g., "spec 089 adds cloudDeploymentProvider to Application").

If any input is missing, return an error. Do not guess SQL types.

Process

Step 1 — Read the migrations directory

  • Glob packages/core/src/infrastructure/persistence/migrations/*.ts to find existing migrations and their naming convention.
  • Read the most recent migration (the one with the highest numeric/timestamp prefix) to mirror its structure exactly.
  • Read the migrations registry if one exists (commonly migrations/index.ts or similar). Note the registration pattern.

Step 2 — Determine the next filename

Follow the existing pattern. If migrations use sequential numbers (e.g., 001_add_users.ts, 002_add_sessions.ts), use the next number. If they use timestamps, use the current UTC date in YYYYMMDDHHMMSS_<slug>.ts format. NEVER mix formats.

The slug should be kebab-case and descriptive: add_cloud_deployment_provider_to_applications, create_cloud_provider_tokens_table.

Step 3 — Write the migration file

Use the mirrored structure. Typical shep shape:

Read the full file on GitHub · 109 lines

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. 5d ago First seen · 109 lines · 87 tokens per session scan A b53371490a2b

Subscribe to this mod's changes

shep-migration-creator is an agent published in the GitHub repository shep-ai/shep (247 stars, last pushed 2d ago), licensed MIT. It adds 87 tokens to every session and 1,314 once invoked, about $0.0004 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 agents, from other repositories

database-cloud-optimization-database-architect

Expert database architect specializing in data layer design from scratch, technology selection, schema modeling, and scalable database architectures. Masters SQL/NoSQL/TimeSeries database selection, normalization strategies, migration planning, and performance-first design. Handles both greenfield architectures and…

wshobson/agents · 83 tokens

database-cloud-optimization-database-optimizer

Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures. Masters advanced indexing, N+1 resolution, multi-tier caching, partitioning strategies, and cloud database optimization. Handles complex query analysis, migration strategies, and performance monitoring.…

wshobson/agents · 75 tokens

database-admin

Expert database administrator specializing in modern cloud databases, automation, and reliability engineering. Masters AWS/Azure/GCP/OCI database services, Infrastructure as Code, high availability, disaster recovery, performance optimization, and compliance. Handles multi-cloud strategies, container databases, and…

wshobson/agents · 72 tokens

sql-pro

Master modern SQL with cloud-native databases, OLTP/OLAP optimization, and advanced query techniques. Expert in performance tuning, data modeling, and hybrid analytical systems. Use PROACTIVELY for database optimization or complex analysis.

wshobson/agents · 48 tokens

event-sourcing-architect

Expert in event sourcing, CQRS, and event-driven architecture patterns. Masters event store design, projection building, saga orchestration, and eventual consistency patterns. Use PROACTIVELY for event-sourced systems, audit trail requirements, or complex domain modeling with temporal queries.

wshobson/agents · 60 tokens

team-reviewer

Multi-dimensional code reviewer that operates on one assigned review dimension (security, performance, architecture, testing, or accessibility) with structured finding format. Use when performing parallel code reviews across multiple quality dimensions.

wshobson/agents · 43 tokens