loom-code-migration

loom-code-migration is a skill for Claude Code, Codex from cosmix/loom. It costs 15 tokens per session (3,340 once invoked), scanned A, original, MIT.

A guide for moving software between framework versions, technologies, or data formats while keeping the old and new behavior comparable. It covers deprecations, automated code changes, gradual releases, and rollback planning.

In plain words
What is it for?
Use it for framework upgrades, technology changes, schema migrations, deprecation work, codemods, and staged rollouts.
Why use it?
It reduces the risk of a large, hard-to-reverse switch by breaking the work into smaller steps that can be tested, released, and undone independently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for framework upgrades, technology changes, schema migrations, deprecation work, codemods, and staged rollouts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cosmix/loom/loom-code-migration
View source ↗ cosmix/loom
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.

Any agent
npx skills add cosmix/loom --skill loom-code-migration
Clone the repo
git clone --depth 1 https://github.com/cosmix/loom

Made for: Claude Code, Codex.

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 loom-code-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmix/loom/loom-code-migration/github.svg)](https://agentmods.dev/skills/cosmix/loom/loom-code-migration)
Your own site
<a href="https://agentmods.dev/skills/cosmix/loom/loom-code-migration"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-code-migration/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 loom-code-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmix/loom/loom-code-migration"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-code-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,340 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00015 $0.03340
Opus 5.5 $0.00006 $0.01336
Sonnet 5.5 $0.00003 $0.00668
Haiku 4.5 $0.00002 $0.00334

Measured 13d ago against content hash 3408d05ddc66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loom-code-migration 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 13d 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.

skills/loom-code-migration/SKILL.md · 242 lines

How it starts

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

Code Migration

Overview

Move a codebase between versions, frameworks, technologies, or schemas while keeping it shippable and reversible at every step. Distinct from /loom-refactoring (behavior-preserving, internal) — a migration deliberately changes what runs, so it needs a parity harness and a rollback path.

The mandate: never big-bang

A big-bang cutover (rewrite in a branch, flip everything at once) fails because the blast radius equals the whole system, the parity gap is unmeasured until launch, and rollback means reverting weeks of work under fire. Every migration step must be independently deployable and independently reversible. If you can't ship the current step to prod and roll just it back, the step is too big.

Canonical incremental playbook

Every strategy below is an instance of this loop. Internalize the loop, not the individual recipes.

1. PARITY HARNESS   Pin current behavior: characterization/snapshot tests, or a
                    live shadow-compare of old vs new. You cannot migrate safely
                    what you cannot measure.
2. SEAM             Insert an indirection point you can route through:
                    branch-by-abstraction (interface), adapter, or strangler proxy.
3. BUILD NEW        Implement the new path behind the seam. Old path still serves.
4. ROUTE            Shift traffic incrementally behind a flag:
                    shadow → canary(1%) → gradual(5→25→50→100%). Fallback to old on error.
5. VERIFY           Compare old vs new continuously (results, latency, error rate,
                    business metrics). Gate each ramp on match rate + health.
6. CUT OVER         New path is sole path at 100%.
7. CONTRACT         Delete the old path, the seam, flags, and shims. Migration isn't
                    done until the scaffolding is gone.

Keep a rollback point before each irreversible-ish action (§Rollback). Reversibility is the property that makes the loop safe.

Core patterns

Strangler fig — replace a system route-by-route

Read the full file on GitHub · 242 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. 13d ago Changed 3408d05ddc66
  2. 2mo ago Changed · -26 tokens per session 6a125b32ade9
  3. 3mo ago First seen · 242 lines · 41 tokens per session scan A 2d9d51dd8bc8

Subscribe to this mod's changes

loom-code-migration is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 3,340 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-08-30.

Related

loom-code-migration compared with skills from other repositories

loom-code-migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loom-code-migrationcosmix/loomSkill66yesterdayMITA15Claude Code, Codex
workers-developmentcloudflare/skillsSkill3.6k6d agoApache-2.0A68Claude Code
workers-profilingcloudflare/skillsSkill3.6k6d agoApache-2.0A31Claude Code
testing-dagsastronomer/agentsSkill465todayApache-2.0A77Claude Code
debugging-dagsastronomer/agentsSkill465todayApache-2.0A111Claude Code
observability-debuggingnavikt/copilotSkill652d agoMITA38Claude Code, Codex
nav-troubleshootnavikt/copilotSkill652d agoMITA38Claude Code, Codex