Migration dashboard

From zuharz/ccode-to-codex · View interactive version

Migration dashboard is an AI agent skill from the GitHub repository zuharz/ccode-to-codex. Codex-native migration analysis dashboard for Claude→Codex skills and agents. Reads `migration-state.json` to report progress, drift, velocity, nativeness-review state, validator results, and next-batch recommendations. Use for "migration status", "what should I migrate next", "migration progress",

How to use this skill

Skill file

<!-- Generated by the ccode-to-codex mirror sync on 2026-04-14 from input revision 9a2403fb. -->

Migration Dashboard

Purpose: Answer "where are we, what drifted, what should be migrated

next, and when should nativeness review take over?" from the tracker plus live

repo state.

Conversation-First Entry

Bare dashboard requests should open with intent routing, not raw flags. Follow

the shared contract at

../migrate-to-codex/references/conversational-migration-contract.md.

Default menu for underspecified requests:

  1. Status
  2. What should I migrate next?
  3. Review nativeness backlog
  4. Show unreviewed migrated artifacts
  5. Show migrated agents needing nativeness review
  6. Show migrated skills needing nativeness review
  7. Validate migrated artifacts
  8. Refresh tracker and show status

Routing rules:

artifacts, agents needing nativeness review, skills needing nativeness review`,

validate migrations, or refresh, route directly.

tracker file.

prompt for review next, review <number>, review <name>, or back.

the review ... prefix.

Advanced CLI

Sandbox Policy

Recommended mode: workspace-write

Rationale: the dashboard reads repo state and tracker data, and --refresh

updates migration-state.json through the repo tracker script.

Runtime Contract

  1. Preserve direct script execution. This workflow is script-driven, not

sub-agent-driven for status, planning, validation, and refresh modes.

  1. The analyzer is the source of truth for status, planning, drift, velocity,

and validator aggregation.

  1. Shared tracker-state helpers live in

tools/migration_support/; analyzer

scripts bootstrap that package before importing tracker helpers.

  1. Mode routing stays stable:
  1. Tracker data comes from migration-state.json. Missing or malformed

tracker state is a first-class UX case: explain it briefly, offer the repair

action, and do not collapse into an opaque stack trace.

  1. Queue-selection state should come from the analyzer's JSON contract, not by

reparsing rendered text. Cache the most recent displayed queue with

session-scoped state such as session_state_store in the parent chat

workflow so review next, review <number>, and review <name> resolve

deterministically.

  1. A queued nativeness review is bounded orchestration work. When the user says

review next, review <number>, or review <name> for a displayed queue,

this workflow is authorized to route into the sibling migration skill's

read-only nativeness-review flow without asking for a second delegation

confirmation.

  1. File edits use apply_patch only when maintaining the skill package or the

analyzer script itself.

  1. Structured analyzer results may include an additive recommended_action

field. Treat it as the top-level routing hint for chat-first UX, but do not

break callers that only rely on items, blockers, next_actions, or

selection.

Scripts

| Script | Purpose |

| --- | --- |

| .codex/skills/migration-dashboard/scripts/analyze_migration.py | Tracker-driven migration dashboard with status, planning, drift, velocity, and validation modes |

| .codex/skills/migration-dashboard/scripts/analyze_migration.py | Stable repo-level entrypoint for the dashboard analyzer |

Workflow

1. Resolve User Intent to Mode

Map the request to analyzer flags before running anything.

| User says | Run |

| --- | --- |

| migration status, migration dashboard, no mode | (no flags) |

| what should I migrate next, plan batch | --plan |

| review nativeness, nativeness backlog, what should I review next | --review-backlog |

| show unreviewed migrated artifacts, what is still unreviewed | --unreviewed |

| show migrated agents needing nativeness review, agent nativeness queue | --agent-nativeness |

| show migrated skills needing nativeness review, skill nativeness queue | --skill-nativeness |

| validate migrations, check migration quality | --validate |

| refresh migration tracker, update tracker and show status | --refresh |

Pass through supported options unchanged:

For bare requests, present the action menu from the shared conversational

contract instead of defaulting straight to a status dump.

2. Run the Analyzer Directly

Execute the skill-owned script with python3:

python3 .codex/skills/migration-dashboard/scripts/analyze_migration.py [args]

Do not redesign this into a plan flow or a delegation workflow. The preserved

behavior is a single analyzer command plus interpretation.

3. Interpret the Output

Read the analyzer output by mode:

velocity, drift alerts, and ignored policy exclusions.

missing dependency, and ignored skills listed separately.

trust level, then skill tier.

review, grouped by artifact type.

agents.

skills.

whether each artifact is pending review, reviewed native, or reviewed

compatible-but-not-native.

Chat-first recommendation rules:

non-zero, review nativeness backlog becomes the primary recommendation in

status, plan, and validate modes.

nativeness review stays secondary.

Nativeness queue interaction rules:

the workflow can store the structured selection payload directly.

queue instead of guessing.

recorded, re-render the same queue minus the handled item; when it is

exhausted, show a done state and require back before returning to the root

menu.

in the current session queue. Hidden items require backing out and reopening

the queue.

recommended_action payloads, tell the user to run

python3 tools/migration_support/tracker.py --write, and do not route

review next, review <number>, or review <name> until the tracker is

repaired.

4. Offer the Next Action

After reporting the analyzer output:

skills.

most downstream work.

to unblock.

remains, recommend review nativeness backlog instead of leaving the user in

a dead-end plan screen.

at the recommended artifact, then offer review next, review <number>,

review <name>, or back.

clear rather than redirecting back to migration planning.

clear rather than redirecting back to migration planning.

packages before further rollout.

backlog next and surface a short list of warning-heavy pending-review

artifacts in text mode.

history can suppress velocity without implying a real stall.

If the user selects a single queued artifact:

result is NO_FINDINGS, and only ask the user to choose when fixes remain,

only MEDIUM findings remain, or the user explicitly requested audit-only behavior.

spawned nativeness auditor, convergence loop, evidence handling, and

tracker close-out guidance.

the user explicitly asks for it.

5. Failure Handling

then offer python3 tools/migration_support/tracker.py --write.

blocked until tracker state is repaired, then offer

python3 tools/migration_support/tracker.py --write.

the truncated error output from the analyzer.

Notes

bypassing skill review.

actionable backlog math

and agent skills: frontmatter, not prose references.

automatic Tier 3 classifier by themselves.

audits migration from source .claude/ artifacts into .codex/ artifacts.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.