forge-migrate

forge-migrate is a skill for Claude Code, Codex from aneja5/forge-skills. It costs 78 tokens per session (1,534 once invoked), scanned A, original, MIT.

A migration guide that adds tracking information to existing `.forge` project files. It records which process created each file, what it depends on, when it was generated, and a fingerprint of its contents.

In plain words
What is it for?
Use it when upgrading forge-skills, when synchronization reports existing files as untracked, or when shared files were created without tracking metadata.
Why use it?
It brings older untracked files into the project's dependency-tracking system without regenerating their contents.

Skill for Claude CodeCodex

Part of the forge-skills plugin — 42 skills, 36 commands, 13 agents, 1 hook 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/aneja5/forge-skills/forge-migrate
Any agent
npx skills add aneja5/forge-skills --skill forge-migrate
Clone the repo
git clone --depth 1 https://github.com/aneja5/forge-skills

Made for: Claude Code, Codex.

Or install forge-skills, the plugin that ships this one along with the rest of its 42 skills, 36 commands, 13 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/aneja5/forge-skills/forge-migrate.svg)](https://agentmods.dev/skills/aneja5/forge-skills/forge-migrate)
Your own site
<a href="https://agentmods.dev/skills/aneja5/forge-skills/forge-migrate"><img src="https://agentmods.dev/badge/skills/aneja5/forge-skills/forge-migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,534 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.00078 $0.01534
Opus 5 $0.00039 $0.00767
Sonnet 5 $0.00016 $0.00307
Haiku 4.5 $0.00008 $0.00153

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

Security

Grade A, and why

forge-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 2d 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/forge-migrate/SKILL.md · 130 lines

How it starts

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

forge-migrate

Overview

Backfill forge:meta headers onto pre-existing .forge/ artifacts so they enter the dependency tracking system. Reads filenames against the canonical artifact table in references/forge-dependency-graph.md to infer generated_by and depends_on. Sets generated_at to the file's mtime (UTC), and computes content_hash from the current contents. Read-then-write only — never regenerates an artifact, just annotates what's already there.

When to Use

  • Upgrading from a pre-3.2.0 forge-skills release where .forge/ artifacts had no headers
  • forge-sync reports every artifact as "untracked" / "no header"
  • A teammate without the plugin produced .forge/ files on a shared branch and you want them tracked
  • Need to bring legacy artifacts under the dependency graph without re-running expensive skills (interviews, audits)

When NOT to Use

  • The artifact is genuinely stale and should be regenerated — use the source skill instead (e.g., /spec to refresh prd.md rather than back-stamping it)
  • .forge/ doesn't exist — there's nothing to migrate
  • All artifacts already have valid forge:meta headers — forge-sync will tell you this; migration is a no-op
  • The file isn't on the canonical artifact list — don't invent dependencies for ad-hoc files

Common Rationalizations

Thought Reality
"I'll just re-run every skill to get fresh headers" Forces re-interview and re-audit — burns hours when a 30-second backfill is correct
"The files work without headers" They work for reading. They break for forge-sync, /forge-migrate itself, and downstream staleness detection.
"I'll write the headers by hand" Hand-written headers drift from the schema. The skill enforces UTC, hash format, dependency inference.
"Use today's timestamp — it's close enough" Today's timestamp tells forge-sync the artifact is newer than its upstream. False UP_TO_DATE. Use the file's mtime.
"All artifacts depend on prd.md, just list that" Inferring depends_on from the canonical graph keeps cascade rules correct. Don't fabricate dependencies.

Read the full file on GitHub · 130 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. 2d ago First seen · 130 lines · 78 tokens per session scan A b69dd2f4d024

Subscribe to this mod's changes

forge-migrate is a skill published in the GitHub repository aneja5/forge-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 78 tokens to every session and 1,534 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-09-03.