migrate

migrate is a command for Claude Code from SyntaxWay/agent-ready-repo. It costs 0 tokens per session (3,214 once invoked), scanned A, original, MIT.

A command for converting the current repository into an AI-ready monorepo structure. A monorepo is one repository containing multiple related projects or packages.

In plain words
What is it for?
Use it to inspect the repository, identify its stack and commands, and migrate it toward the structure defined by the agent-ready-repo template.
Why use it?
It provides an ordered migration process, including discovery of existing project files and AI-agent instructions. It also requires a summary and pause after the early phases before continuing.

Command 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 commands/syntaxway/agent-ready-repo/migrate
Clone the repo
git clone --depth 1 https://github.com/SyntaxWay/agent-ready-repo

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/syntaxway/agent-ready-repo/migrate.svg)](https://agentmods.dev/commands/syntaxway/agent-ready-repo/migrate)
Your own site
<a href="https://agentmods.dev/commands/syntaxway/agent-ready-repo/migrate"><img src="https://agentmods.dev/badge/commands/syntaxway/agent-ready-repo/migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,214 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 $0.00000 $0.03214
Opus 5 $0.00000 $0.01607
Sonnet 5 $0.00000 $0.00643
Haiku 4.5 $0.00000 $0.00321

Measured 3d ago against content hash 64d3fff4c175, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 3d 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.md · 327 lines

How it starts

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

You are converting THIS repository to the AI-ready monorepo template structure. Source template: https://github.com/SyntaxWay/agent-ready-repo

Work through the phases below in order. After Phase 2, pause and show me a summary before continuing.

───────────────────────────────────────────── PHASE 1 — DISCOVERY ─────────────────────────────────────────────

Read every file listed below that exists in this repo:

Project identity: README.md, README.rst, README.txt package.json, pyproject.toml, Cargo.toml, go.mod, build.gradle, pom.xml

AI tool files already present: CLAUDE.md, GEMINI.md, AGENTS.md, CODEX.md .cursorrules, .cursor/rules/ .github/copilot-instructions.md .windsurf/rules/, .windsurfrules .clinerules, .roo/ .aider.conf.yml, .aider.env .claude/, .gemini/, .continue/

Docs: docs/ (all files, up to 3 levels deep) CONTRIBUTING.md, CHANGELOG.md

CI / commands: .github/workflows/ (all files) Makefile, justfile, taskfile.yml

Summarise what you found: A) One paragraph: what does this project do, who uses it? B) Tech stack table: Language | Framework | Package manager | Runtime | Database | Test runner | CI C) Key commands: install, dev, build, test, lint (exact commands, not guesses) D) Monorepo map: every app/package path with a one-line description E) AI tool files found: list each file and its current content summary

───────────────────────────────────────────── PHASE 2 — AI TOOL DETECTION & CONFIRMATION ─────────────────────────────────────────────

Based on Phase 1, identify which AI tools are in use by checking these indicators:

Tool | Indicator files / dirs ───────────────────────────────────────────────────────────────────── Claude Code | CLAUDE.md · .claude/ Cursor | .cursorrules · .cursor/rules/ GitHub Copilot | .github/copilot-instructions.md Gemini CLI | GEMINI.md · .gemini/ Windsurf | .windsurfrules · .windsurf/rules/ Cline / Roo Code | .clinerules · .roo/ Aider | .aider.conf.yml · .aider.env Codex / Amp / | OpenCode / Jules | AGENTS.md (these read it natively — no pointer file needed)

Then ask the user:

"I detected these tools: [LIST].

  • Any tools to ADD that aren't listed?
  • Any tools to REMOVE (their files will be deleted)?
  • Reply with the final list or say 'keep as-is'."

Wait for the user's reply before doing anything else.

───────────────────────────────────────────── PHASE 3 — CREATE / REWRITE AGENTS.md ─────────────────────────────────────────────

IMPORTANT: Re-read this file (.claude/commands/migrate.md) now to ensure you have the full template below — long Phase 1/2 conversations can compress it out of context.

Using the facts from Phase 1, write AGENTS.md at the repo root. If one already exists, rewrite it — don't merge stale content. Use this exact structure (keep all 10 sections, fill every placeholder):

────────────────────────────────────────────────────────────────────────

AGENTS.md — AI Agent Instructions (Root)

This file is the single entry point for AI coding agents (list confirmed tools from Phase 2). Read this FIRST before making any changes. Each app/package may have its own nested AGENTS.md — nearest one wins. Tool-specific pointer files all redirect here; shared rules belong here.

Read the full file on GitHub · 327 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. 3d ago First seen · 327 lines · 0 tokens per session scan A 64d3fff4c175

Subscribe to this mod's changes

migrate is a command published in the GitHub repository SyntaxWay/agent-ready-repo (3 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,214 tokens. 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-31.