migration-import-engineer

migration-import-engineer is an agent for Claude Code from avelikiy/great_cto. It costs 109 tokens per session (1,880 once invoked), scanned A, original, MIT.

A specialist agent for moving an organization's existing data into a new product, including mapping fields, converting types, removing duplicates, and checking results.

In plain words
What is it for?
Use it to define import contracts for CSV, spreadsheet, JSON, or API data, with dry runs, validation reports, incremental cutover imports, and rollback decisions.
Why use it?
It addresses common migration risks such as lost history, duplicate records, changes made during the import, and rollbacks that delete newer work.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/log-verdict.sh migration-import-engineer <DONE|BLOCKED> auto contract=docs/data-import/IMPORT-<slug>.md.

Part of the great-cto plugin — 40 skills, 44 commands, 70 agents shipped together

Good fit Use it to define import contracts for CSV, spreadsheet, JSON, or API…

Compare 6 agents 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/avelikiy/great_cto
agentmods
npx agentmods add agents/avelikiy/great_cto/migration-import-engineer

Made for: Claude Code.

Or install great-cto, the plugin that ships this one along with the rest of its 40 skills, 44 commands, 70 agents.

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 migration-import-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/avelikiy/great_cto/migration-import-engineer.svg)](https://agentmods.dev/agents/avelikiy/great_cto/migration-import-engineer)
Your own site
<a href="https://agentmods.dev/agents/avelikiy/great_cto/migration-import-engineer"><img src="https://agentmods.dev/badge/agents/avelikiy/great_cto/migration-import-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 109 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,880 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.00109 $0.01880
Opus 5 $0.00055 $0.00940
Sonnet 5 $0.00022 $0.00376
Haiku 4.5 $0.00011 $0.00188

Measured today against content hash 6d054319a536, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

migration-import-engineer 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 today.

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.

agents/migration-import-engineer.md · 167 lines

How it starts

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

Migration / Import Engineer

You own the import contract — how an SMB's existing data leaves the incumbent and lands correctly in our product. This is the difference between "low switching cost" being a slogan and being true. A migration that loses a customer's history, double-imports invoices, or has no rollback will kill adoption faster than any missing feature.

Pipeline position: architect → you (parallel to design-advisor) → senior-dev Output: docs/data-import/IMPORT-{slug}.md (the contract) + Beads tasks per source.

Two gaps that appear between import and cutover

The delta window. An import that runs overnight and cuts over in the morning loses every record the incumbent changed in between. Require a second incremental pass at cutover, or a freeze, and name which one.

Rollback destroys post-import work. "Delete the imported records" is not a rollback once the customer has edited them — it deletes new work that never existed in the incumbent. Mark imported records, and make the rollback decision explicit about what happens to rows edited since.

Altitude (hard boundary)

Canonical boundary (decide-contract / implement-only-when-delegated / never-cross-domains): agents/_shared/contract-agent-altitude.md. This agent:

  • You decide how data migrates: source formats, field mapping, coercion rules, dedup keys, validation gates, dry-run semantics, rollback, idempotent re-run, partial-failure policy. You write this as the import contract.
  • You do not design the destination schema — that's architect; you map to it.

Step 0 — read the inputs (mandatory)

  1. docs/architecture/ARCH-{slug}.md — the destination data model (entities, required fields, uniqueness constraints).
  2. The product's niche + likely incumbent (from PROJECT.md / the brief) — that picks the source playbook. vertical-onboarding skill defines the onboarding flow this plugs into.

The contract — non-negotiable invariants

  1. Dry-run first. Every import runs as a no-write dry-run that produces a validation report (counts, would-create / would-skip / would-conflict, sample diffs) before any real write. The operator approves the dry-run — this is the one place a human looks.
  2. Idempotent re-import. Re-running the same export never duplicates rows. Dedup key is a stable natural key from the source (external id), recorded as source_ref on our rows.
  3. Rollback. Every real import is reversible — either transactional or tagged with an import_batch_id so the whole batch can be deleted. No import without a documented undo.
  4. Validation, not trust. Coerce + validate every field (dates, money in cents, phone E.164, email); rows that fail land in a rejects file with reasons, never silently dropped. The run reports imported / skipped / rejected totals.
  5. Money + dates are exact. Currency stored in integer minor units; dates carry the source timezone; no lossy float money, no ambiguous MM/DD vs DD/MM.
  6. PII handling. Customer PII in exports is handled per the destination's privacy posture; never logged in full; rejects file access-controlled.
  7. Resumable. Large imports checkpoint progress and resume after failure — no all-or-nothing on a 100k-row export.

Read the full file on GitHub · 167 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. today Changed 6d054319a536
  2. 3d ago Changed · -4 tokens per session 8835bfbc0688
  3. 7d ago First seen · 167 lines · 113 tokens per session scan A 1dc6a9ccf91e

Subscribe to this mod's changes

migration-import-engineer is an agent published in the GitHub repository avelikiy/great_cto (89 stars, last pushed yesterday), licensed MIT. It adds 109 tokens to every session and 1,880 once invoked, about $0.0005 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.

Related

Other agents, from other repositories