plugin-migrate

plugin-migrate is a command for Claude Code from TheLobbi/claude. It costs 13 tokens per session (2,092 once invoked), scanned A, original, MIT.

A migration manager for the database used by Claude Code plugins. A migration is a controlled change that moves a database from one version of its structure to another.

In plain words
What is it for?
Use it to upgrade or roll back plugin database versions, check migration status, create migrations, and preview changes with a dry run.
Why use it?
It keeps database changes in order and records which changes have already run, reducing the risk of applying changes twice or skipping versions.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import type { Migration } from '../types.js';.

Part of the claude-orchestration plugin — 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins shipped together

Good fit Use it to upgrade or roll back plugin database versions, check migration status, create migrations, and preview changes with a dry run.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/TheLobbi/claude
agentmods
npx agentmods add commands/thelobbi/claude/plugin-migrate

Made for: Claude Code.

Or install claude-orchestration, the plugin that ships this one along with the rest of its 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins.

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 plugin-migrate

README.md
[![agentmods](https://agentmods.dev/badge/commands/thelobbi/claude/plugin-migrate/github.svg)](https://agentmods.dev/commands/thelobbi/claude/plugin-migrate)
Your own site
<a href="https://agentmods.dev/commands/thelobbi/claude/plugin-migrate"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/plugin-migrate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plugin-migrate

Your own site · 80×15
<a href="https://agentmods.dev/commands/thelobbi/claude/plugin-migrate"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/plugin-migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,092 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00013 $0.02092
Opus 5.5 $0.00005 $0.00837
Sonnet 5.5 $0.00003 $0.00418
Haiku 4.5 $0.00001 $0.00209

Measured 2mo ago against content hash 33d276003dfb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plugin-migrate 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 2mo 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/commands/plugin-migrate.md · 370 lines

How it starts

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

Plugin Migration Management

Manage database migrations for Claude Code plugins with upgrade, downgrade, status checking, and migration creation.

Usage

/plugin-migrate <command> [options]

Commands

upgrade - Run pending migrations

Apply all pending migrations up to the latest or target version.

Syntax:

/plugin-migrate upgrade [target-version] [options]

Options:

  • [target-version] - Optional target version (default: latest)
  • --dry-run - Show what would be migrated without executing
  • --verbose - Show detailed migration output

Examples:

# Upgrade to latest
/plugin-migrate upgrade

# Upgrade to specific version
/plugin-migrate upgrade 2.0.0

# Dry run
/plugin-migrate upgrade --dry-run

# Verbose output
/plugin-migrate upgrade --verbose

Process:

  1. Load registered migrations
  2. Check current database version
  3. Determine pending migrations
  4. Execute migrations in order
  5. Track applied migrations in database
  6. Report results

downgrade - Rollback migrations

Rollback migrations by steps or to a target version.

Syntax:

/plugin-migrate downgrade [version|steps] [options]

Options:

  • [version] - Target version to downgrade to
  • [steps] - Number of migrations to rollback (e.g., 1, 3)
  • --dry-run - Show what would be rolled back without executing
  • --verbose - Show detailed rollback output

Examples:

# Rollback last migration
/plugin-migrate downgrade 1

# Rollback to version
/plugin-migrate downgrade 1.5.0

# Rollback 3 migrations
/plugin-migrate downgrade 3

# Dry run
/plugin-migrate downgrade 2 --dry-run

Process:

  1. Identify migrations to rollback
  2. Execute down() functions in reverse order
  3. Remove migration records from database
  4. Report results

status - Show migration status

Display the status of all registered migrations.

Syntax:

/plugin-migrate status [options]

Options:

  • --format=<format> - Output format: table, json, list (default: table)
  • --pending-only - Show only pending migrations
  • --applied-only - Show only applied migrations

Read the full file on GitHub · 370 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. 2mo ago First seen · 370 lines · 13 tokens per session scan A 33d276003dfb

Subscribe to this mod's changes

plugin-migrate is a command published in the GitHub repository TheLobbi/claude (21 stars, last pushed 7d ago), licensed MIT. It adds 13 tokens to every session and 2,092 once invoked, about $0.0001 per session on Opus 5.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-09-05.