migrate-to-standalone

migrate-to-standalone is a command for Claude Code from Jamie-BitFlight/claude_skills. It costs 25 tokens per session (6,732 once invoked), scanned A, original, MIT.

A migration playbook for extracting a plugin from a monorepo—a repository containing several projects—into its own GitHub repository.

In plain words
What is it for?
Use it when turning a plugin inside a larger repository into an independent, publishable GitHub project.
Why use it?
It provides a repeatable path for copying the plugin, setting up GitHub, adding CI/CD, and preparing support for multiple platforms and a marketplace.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Good fit Use it when turning a plugin inside a larger repository into an independent, publishable GitHub project.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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 migrate-to-standalone

README.md
[![agentmods](https://agentmods.dev/badge/commands/jamie-bitflight/claude_skills/migrate-to-standalone/github.svg)](https://agentmods.dev/commands/jamie-bitflight/claude_skills/migrate-to-standalone)
Your own site
<a href="https://agentmods.dev/commands/jamie-bitflight/claude_skills/migrate-to-standalone"><img src="https://agentmods.dev/badge/commands/jamie-bitflight/claude_skills/migrate-to-standalone/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 migrate-to-standalone

Your own site · 80×15
<a href="https://agentmods.dev/commands/jamie-bitflight/claude_skills/migrate-to-standalone"><img src="https://agentmods.dev/badge/commands/jamie-bitflight/claude_skills/migrate-to-standalone.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,732 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.00025 $0.06732
Opus 5 $0.00013 $0.03366
Sonnet 5 $0.00005 $0.01346
Haiku 4.5 $0.00003 $0.00673

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

Security

Grade A, and why

migrate-to-standalone 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 11d 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/migrate-to-standalone.md · 639 lines

How it starts

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

Migrate Plugin to Standalone Repository

Playbook for extracting a plugin from Jamie-BitFlight/claude_skills into its own GitHub repo. Derived from the hallucination-detector extraction session (2026-02-28, session 2e52dd7b).

Prerequisites

  • gh CLI installed (run /gh skill if missing)
  • GITHUB_TOKEN set in environment
  • Empty GitHub repo created at target org (no README, no license, no .gitignore — avoids merge conflicts on first push)
  • Reference repo obra/superpowers cloned locally for structure reference

Phase 1: Repo Setup and Initial Copy

1.1 Clone the empty repo

gh repo clone <org>/<plugin-name> .claude/worktrees/<plugin-name>

1.2 Copy plugin files

cp -r plugins/<plugin-name>/* .claude/worktrees/<plugin-name>/
cp -r plugins/<plugin-name>/.* .claude/worktrees/<plugin-name>/  # hidden files

1.3 Fix git remote auth

Plain HTTPS push fails in this environment. Fix:

cd .claude/worktrees/<plugin-name>
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/<org>/<plugin-name>.git"

Gotcha: npm init will pick up the token from the remote URL and embed it in package.json. Never run npm init after setting the token URL — write package.json manually.

1.4 Initial commit and push

git add -A
git commit -m "feat: initial plugin extraction from monorepo"
git push -u origin main

Phase 2: Convert to CJS and Add Multi-Platform Support

2.1 Clone obra/superpowers as reference

gh repo clone obra/claude-code-superpowers .claude/worktrees/superpowers

Study its structure:

.claude-plugin/plugin.json    # Claude Code manifest
.cursor-plugin/plugin.json    # Cursor manifest
.codex/INSTALL.md             # OpenAI Codex install guide
.opencode/INSTALL.md          # OpenCode install guide
.opencode/plugins/<name>.cjs  # OpenCode plugin module
hooks/hooks.json              # Hook event bindings
hooks/run-hook.cmd            # Cross-platform polyglot wrapper (batch + bash)

Read the full file on GitHub · 639 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. 11d ago First seen · 639 lines · 25 tokens per session scan A d52c8bc75a7a

Subscribe to this mod's changes

migrate-to-standalone is a command published in the GitHub repository Jamie-BitFlight/claude_skills (66 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 6,732 once invoked, about $0.0001 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.