migration-comparison

migration-comparison is a skill for Claude Code, Codex from konveyor-ecosystem/playpen-pf-mig-skills. It costs 46 tokens per session (1,596 once invoked), scanned A, original, Apache-2.0.

A comparison tool for two versions of the same codebase, such as two attempts to migrate software from one system to another. It creates an HTML report with categorized and side-by-side changes.

In plain words
What is it for?
Use it to compare local folders or Git repositories, limit the comparison to selected files, and produce a migration comparison report.
Why use it?
It makes it easier to see what changed, identify meaningful code differences, and judge which migration is closer to the intended result.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to compare local folders or Git repositories, limit the comparison to selected files, and produce a migration comparison report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/konveyor-ecosystem/playpen-pf-mig-skills/migration-comparison
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 konveyor-ecosystem/playpen-pf-mig-skills --skill migration-comparison
Clone the repo
git clone --depth 1 https://github.com/konveyor-ecosystem/playpen-pf-mig-skills

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 migration-comparison

README.md
[![agentmods](https://agentmods.dev/badge/skills/konveyor-ecosystem/playpen-pf-mig-skills/migration-comparison/github.svg)](https://agentmods.dev/skills/konveyor-ecosystem/playpen-pf-mig-skills/migration-comparison)
Your own site
<a href="https://agentmods.dev/skills/konveyor-ecosystem/playpen-pf-mig-skills/migration-comparison"><img src="https://agentmods.dev/badge/skills/konveyor-ecosystem/playpen-pf-mig-skills/migration-comparison/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 migration-comparison

Your own site · 80×15
<a href="https://agentmods.dev/skills/konveyor-ecosystem/playpen-pf-mig-skills/migration-comparison"><img src="https://agentmods.dev/badge/skills/konveyor-ecosystem/playpen-pf-mig-skills/migration-comparison.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,596 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.00046 $0.01596
Opus 5 $0.00023 $0.00798
Sonnet 5 $0.00009 $0.00319
Haiku 4.5 $0.00005 $0.00160

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

Security

Grade A, and why

migration-comparison 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 12d ago.

The scan reads SKILL.md. This mod also ships 17 executable files (scripts/ast_helpers.py, scripts/categorize_changes.py, scripts/compose_evaluation.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/migration-comparison/SKILL.md · 181 lines

How it starts

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

Migration Comparison

Compare two different migration attempts of the same codebase (e.g., AI agent A vs ground truth, or agent A vs agent B). Produces a self-contained HTML comparison report with categorized changes, semantic analysis, and side-by-side diffs.


Phase 1: Setup & Validation

1. Collect Inputs

Ask the user for:

  • Reference A: git URL with branch (e.g., https://github.com/org/repo@branch) or a local directory path. Ask for a label (e.g., "Ground Truth", "Agent A").
  • Reference B: same format. Ask for a label.
  • File filters (optional): glob patterns to restrict which files are compared (e.g., *.tsx, src/**/*.ts).
  • Migration target (optional): identifier for target-specific pattern scoring (e.g., patternfly). When specified, the scoring step uses target-specific pattern detectors for more precise quality scoring.

2. Create Workspace

Create a temporary workspace directory outside either project:

WORK_DIR=$(mktemp -d -t migration-comparison-XXXXXXXX)

All artifacts go inside $WORK_DIR.

3. Validate Inputs

For each reference (A and B):

If local path:

  • Verify the directory exists and contains files.
  • If the path is invalid or empty, tell the user what is wrong and ask them to provide a corrected path.

If git URL:

  • Attempt: git clone --branch <branch> --depth 1 <url> $WORK_DIR/<label>
  • If the clone fails (auth error, invalid URL, branch not found, network issue), show the user the error and ask:
    1. Provide a corrected URL/branch
    2. Provide a local path instead
    3. Abort
  • If the branch is not found, run git ls-remote --heads <url> to list available branches and show them to the user.

4. Check Tool Availability

Run:

python3 scripts/run_diffs.py --check-gumtree

This returns JSON: {"available": true/false, "method": "native|podman|docker|none", "version": "..."}.

If GumTree is not available, inform the user and ask:

  1. Continue with text-only diffing (still produces a useful report, just without AST-level semantic categorization)
  2. Install GumTree first (podman pull gumtreediff/gumtree, docker pull gumtreediff/gumtree, or download from GitHub releases)
  3. Abort

Read the full file on GitHub · 181 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. 12d ago First seen · 181 lines · 0 tokens per session scan A 1c6d5e8160da

Subscribe to this mod's changes

migration-comparison is a skill published in the GitHub repository konveyor-ecosystem/playpen-pf-mig-skills (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 1,596 once invoked, about $0.0002 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-31.