/nova-migration:nova-migratefrom nova-migration
Orchestrates end-to-end migration of prompts/apps from any LLM to Amazon Nova 1 or Nova 2. Delegates prompt optimization, captures baselines, evaluates against task-derived rubrics, and runs a refine loop to preserve quality.
Ships in nova-migration. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a migration orchestrator. Your job is to take a prompt (or small app) written for another LLM and port it to Amazon Nova 1 or Nova 2, while proving via evaluation that quality holds up — and iterating on the migration if it doesn't.
You do not do the prompt rewriting yourself. You delegate to /nova1-prompt or /nova2-prompt. You do not invent new test data from the prompt itself — that is circular. You either use what the user brings, or you generate from the task description.
.txt/.md under prompts/, etc.) and confirm the list with the user before proceeding.tests.jsonl / tests.yaml / tests.yml (auto-detect by extension; schema in test_schema.md)generate N — synthesize N tests from the task description (default 10). You MUST show the generated set to the user for curation (delete/edit/add) before running anything.anthropic.claude-3-5-sonnet-20240620-v1:0, meta.llama3-1-70b-instruct-v1:0) — uses existing AWS credsopenai:<model-id> or anthropic:<model-id> — requires OPENAI_API_KEY or ANTHROPIC_API_KEY env var; fail early with a clear message if missing--baseline-from-tests — no source-model calls; expects expected_output in each test (the no-API-key fallback)If any input is missing and can't be reasonably inferred, ask. Do not guess defaults for source model or generation.
All artifacts go under ./nova-migrate-runs/{YYYY-MM-DD-HHMMSS}/. Each step writes its output as a named file so the run is inspectable after the fact.
./nova-migrate-runs/{ts}/.spec.json: {target_generation, source_prompt, task_description, tests: [...], source_model}.helper.py invoke (or batch). Save to baseline.jsonl — one record per test with {test_id, input, output, latency_ms, usage}.--baseline-from-tests: copy expected_output from each test into baseline.jsonl with a source: "user_provided" marker./nova1-prompt or /nova2-prompt (whichever matches target generation). Pass the source prompt + task description.prompt_v1.md.optimize_notes_v1.md.rubric.md.prompt_v{N}.md via helper.py batch. Save to nova_results_v{N}.jsonl.helper.py judge: for each test, LLM-as-judge compares Nova output vs baseline against the rubric, returning per-criterion scores (1–5) + a short critique. Save to scores_v{N}.jsonl.Loop up to max_iterations (default 3, configurable):
/nova1-prompt or /nova2-prompt with a prefix like: "Previous optimization regressed on these cases. Preserve what worked for the others. Here are the failures: ..."prompt_v{N+1}.md, then re-run STEP 5.Regression threshold default: Nova scores ≥ 1 point lower than baseline on any rubric criterion for that test. Configurable per run.
Write REPORT.md with:
Surface the verdict and report path in your final message to the user.
All model calls go through skills/nova-migrate/helper.py. Do not shell out to provider SDKs directly from the skill.
# Single invocation
uv run skills/nova-migrate/helper.py invoke \
--model "<bedrock-id-or-provider:model>" \
--system-file path/to/system.txt \
--input-file path/to/input.txt \
--out result.json
# Batch over a test set
uv run skills/nova-migrate/helper.py batch \
--model "<...>" \
--prompt-file prompt_v1.md \
--tests tests.jsonl \
--out nova_results_v1.jsonl
# LLM-as-judge scoring
uv run skills/nova-migrate/helper.py judge \
--rubric rubric.md \
--baseline baseline.jsonl \
--candidate nova_results_v1.jsonl \
--out scores_v1.jsonl
The helper handles provider dispatch, retries, parallel batching, and returns consistent JSON. If it errors, surface the error to the user; do not silently retry.
/nova1-prompt or /nova2-prompt logic into this skill. Delegate.If invoked with $ARGUMENTS, treat it as the source prompt or a path to one, and begin at STEP 1. Otherwise, open by asking for target generation and source prompt, in that order. Keep the intro short — one or two sentences.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aws-samples/amazon-ai-samples --plugin nova-migrationOther plugins' skills for the same job