⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

v0.2.0

modelport-skill

forkadarshp@forkadarshp⭐ 4 stars· last commit 1mo ago· 0 open issues

Use when the user asks to migrate, upgrade, or port prompts, agents, tools, or code to a newer LLM or a different provider, including Claude Opus 5.5 / Sonnet 5.5 / Haiku 5.5 / Fable 5.1, GPT-6, and Gemini 3.8, or replace a deprecated or retired model. Also use when a model swap returns 400s (thinking disabled, budget_tokens, forced tool_choice, temperature/top_p, prefill, computer_20251124), truncates replies, or breaks parsers and tool calls, and when auditing migration work another agent started. Fixes API calls, prompts, tool definitions, tests, and configs, then proves it with tests, a live smoke check, and an optional old-vs-new benchmark.

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐ 4 on GitHubGitHub ↗

New / niche

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

ModelPort

CI License: MIT Agent Skill Models PRs Welcome

ModelPort social preview

Upgrade to Claude Opus 5.5, GPT-6, or Gemini 3.8 without breaking prod.

ModelPort is an agent skill for Claude Code, Codex, and Cursor. It migrates the prompts, tool definitions, API calls, and tests around a model swap, using per-model guides that track each provider's breaking changes. Then it proves the upgrade worked with tests, a live smoke check, and optional old-vs-new evals.

Install: npx skills add forkadarshp/modelport, then tell your agent "migrate this repo to claude-opus-5-5". See Quickstart.

Seen one of these after a model swap?

"thinking.type.disabled" is not supported for this model.
tool_choice: type "tool" and "any" are not supported for this model.
'claude-opus-5-5' does not support tool types: computer_20251124.
temperature / top_p / logprobs rejected after moving to GPT-6
thinking_budget and thinking_level in the same request (Gemini 3.x) → 400
stop_reason: "refusal" and code that reads content[0]

Changing the model ID is one line. The 400s, the truncated replies (thinking now counts toward max_tokens), the quiet UI between tool calls, and the parsers that stop matching are everything else. The lookup for all of them is in references/breaking-changes.md. ModelPort applies the fixes for you, in order, and shows its evidence.

What you get

  • Current-model knowledge. Dedicated guides for Claude Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.5, GPT-6, and Gemini 3.8 Flash. Older guides layer underneath for upgrades that start further back.
  • Guides that stay fresh. Every guide has a Last verified: date and a Source:. A weekly job flags stale guides, and the skill re-checks the provider's docs before trusting an old one.
  • A migration, not a find/replace. Scope lock, caller discovery, file classification, required fixes kept apart from optional tuning, then validation and rollback notes.
  • Proof. Tests, a live smoke call, and an optional three-arm benchmark (old model, naive swap, ModelPort) with a runnable harness.

Supported models

ProviderModels with a dedicated guide
AnthropicClaude Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.5 (legacy: Opus 4.8, Opus 4.6, Sonnet 4.5)
OpenAIGPT-6 Astra, GPT-6.1 Sol, GPT-6 Sol, GPT-6 Luna (legacy: GPT-5.5)
GoogleGemini 3.8 Flash
Anything elseGeneric playbook plus provider checklists, with research on the target's docs

Registry, upgrade paths, and freshness rules: references/models/INDEX.md.

Example

Use $modelport-skill to migrate this codebase to claude-opus-5-5.
Apply required compatibility fixes first, keep tool + output behavior stable,
and return validation evidence plus rollback notes.

You get back a report with: what changed and why, required fixes versus optional tuning, test and smoke results, risks, and how to roll back. A sample is in examples/example-output.md.

How it works

A strict, phase-gated pipeline. The skill will not edit before scope is locked and will not claim "done" without proof.

╭──────────────────────────────────────────────────────────────────────╮
│                                                                      │
│   [ old model ]  ═══>  ( ModelPort )  ═══>  [ new model ]            │
│   what you run        behavior-preserving   what you ship            │
│                                                                      │
│   » phase 0   lock scope, read current state ················· [ OK ]│
│   » phase 1   discover callers, prompts, agents, tools ······· [ OK ]│
│   » phase 2   classify every hit before editing ·············· [ OK ]│
│   » phase 3   design: required fixes vs optional tuning ······ [ OK ]│
│   » phase 4   surgical patches, no blind search/replace ······ [ OK ]│
│   » phase 5   validate: tests + live smoke + contract ········ [ OK ]│
│   » phase 6   report: proof evidence + rollback notes ········ [ OK ]│
│                                                                      │
╰──────────────────────────────────────────────────────────────────────╯

Beyond the model ID

ModelPort also adjusts prompts, tool descriptions, and guardrails to match how the target model behaves, including changes the changelog barely mentions. Two examples from the current generation: Claude Opus 5.5 defaults to medium effort, one level below Opus 5, so an untouched config quietly thinks less. And Claude Sonnet 5.5 can read a user message that arrives right after a tool result as a prompt injection, so mid-task user input must be delivered as a user turn. Each guide lists these as required fixes or optional tuning, never mixed.

Benchmark the upgrade

Opt in and ModelPort ends with measured evidence. It runs the same eval set against three configurations so the raw model delta and the skill's value are attributed separately:

  • Baseline: old model, old prompts (where you started)
  • Naive swap: new model, old prompts (what a find/replace gets you)
  • ModelPort-enhanced: new model, enhanced system (where you land)

Sample leaderboard from the bundled offline simulator. The simulator models only prompt explicitness and a per-model "literalness" knob, so these numbers show the report format, not real model performance:

╭──────────────────────┬────────────┬────────────┬────────────╮
│ metric               │ baseline   │ naive swap │ ModelPort  │
│                      │ (old/old)  │ (new/old)  │ (new/enh.) │
├──────────────────────┼────────────┼────────────┼────────────┤
│  task success        │        64% │        57% │        93% │
│  output contract     │        64% │        57% │        93% │
│  tool-call accuracy  │        64% │        57% │        93% │
│  p95 latency         │       4.1s │       2.5s │       2.5s │
│  cost / req          │    $0.0008 │    $0.0006 │    $0.0009 │
├──────────────────────┼────────────┼────────────┼────────────┤
│  composite (50/30/20)│       0.57 │       0.63 │       0.76 │
╰──────────────────────┴────────────┴────────────┴────────────╯

Get real numbers: python3 harness/run.py --provider anthropic (needs ANTHROPIC_API_KEY). The harness works with current Claude models: it never sends parameters they reject and leaves room for always-on thinking. Details in harness/README.md and references/benchmarking.md.

Quickstart

1. Install. Pick the line for your agent.

# Any agent (Claude Code, Codex, Cursor, and others)
npx skills add forkadarshp/modelport
# Claude Code, as a plugin
/plugin install modelport --marketplace forkadarshp/modelport

2. Ask. In your project, tell the agent where you are going:

Migrate this repo to claude-opus-5-5. Keep tool and output behavior the same.

3. Read the report. You get the changes, the test and smoke results, the risks, and the rollback steps. Nothing is called done without evidence.

Copy-paste prompts

GoalPrompt
Latest ClaudeMigrate this repo to claude-opus-5-5. Apply required fixes first, then list optional tuning separately.
Cheaper and faster Claude`Move the classification and routing calls in src/ to claude-haiku-5-5 and keep the output format ident

// HOW IT'S BUILT

// FILES

2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • SKILL.md7.9 KBupstream ↗
    ---
    name: modelport-skill
    description: Use when the user asks to migrate, upgrade, or port prompts, agents, tools, or code to a newer LLM or a different provider, including Claude Opus 5.5 / Sonnet 5.5 / Haiku 5.5 / Fable 5.1, GPT-6, and Gemini 3.8, or replace a deprecated or retired model. Also use when a model swap returns 400s (thinking disabled, budget_tokens, forced tool_choice, temperature/top_p, prefill, computer_20251124), truncates replies, or breaks parsers and tool calls, and when auditing migration work another agent started. Fixes API calls, prompts, tool definitions, tests, and configs, then proves it with tests, a live smoke check, and an optional old-vs-new benchmark.
    ---
    
    # ModelPort Skill
    
    Production-grade LLM migrations. Swap models safely across agents, prompts,
    and code.
    
    ## Default Output Mode
    
    Every response from this skill is hyper-concise. No exceptions unless the user
    explicitly requests verbose output.
    
    - No conversational filler, no pleasantries, no intro/outro.
    - Dense bullet points. Omit verbs where possible.
    - `->` for state transitions (e.g. `GPT-4 -> Claude-3`).
    - Code diffs only — never reprint entire files.
    - State only: what changed, why, what was validated.
    - Every token must earn its place.
    
    ## Operating Principles
    
    Adapted from the Karpathy guidelines for AI coding agents, applied to
    migration work.
    
    ### Think before editing
    
    Don't assume. Don't hide confusion. Surface tradeoffs.
    
    - State assumptions explicitly. If uncertain, ask.
    - Multiple interpretations exist → present them, don't pick silently.
    - Scope ambiguous → ask one scope-selection question, wait.
    - Check existing work: branch/PR context, issue notes, handoff files,
      another agent's partial implementation. Understand before editing.
    
    ### Simplicity first
    
    Minimum change that solves the migration. Nothing speculative.
    
    - No features beyond what was asked.
    - No abstractions for single-use paths.
    - No "flexibility" that wasn't requested.
    - If you wrote 50 lines and it could be 10 diffs, rewrite.
    
    ### Surgical changes
    
    Touch only what must change. Clean up only your own mess.
    
    - Don't "improve" adjacent code, comments, or formatting.
    - Don't refactor things that aren't broken.
    - Match existing style, even if you'd do it differently.
    - Required fixes ≠ optional tuning — never mix, always label.
    - Preserve backward-compatible paths unless user says remove them.
    
    ### Goal-driven execution
    
    Define success criteria before writing code. Loop until verified.
    
    - Transform vague tasks into verifiable goals.
    - "Migrate X" → tests pass + smoke request succeeds + contract holds.
    - Run validation after each meaningful change.
    - If a check fails: diagnose → patch narrowly → retry the failed check.
    - Don't claim completion without proof evidence.
    
    ### Iterative & targeted
    
    Plan thoroughly, execute in phases.
    
    - Research the codebase fully before implementation starts.
    - Pick a targeted section (e.g., one component, one workflow) — no whole-repo big bangs.
    - Implement and validate phase-by-phase.
    
    ## Inputs
    
    Collect before editing:
    
    - Source model/provider/version → destination model/provider/version
    - Scope: exact files, directories, or whole repo
    - Migration mode:
      - In-place replacement
      - Side-by-side dual-model support
      - Phased rollout with feature flags
    - Constraints: latency, cost, output format, safety/compliance
    - Success criteria: quality, speed, token/cost, compatibility
    - Evidence requirements: unit tests, evals, live smoke checks, rollout metrics
    - Benchmark report: does the user want pre/post benchmark stats in the final
      report (baseline old/old vs new/enhanced, plus the raw-swap control)? Opt-in.
      Ask once, up front — capturing the baseline later is impossible.
    
    Look up source and target in `references/models/INDEX.md`. If either has a
    dedicated guide, read it before proceeding, and follow the upgrade path in the
    index (older guides are layered under newer ones). Model guides contain
    changelogs, breaking changes, migration steps, and version-specific quirks.
    
    Freshness check, before trusting any guide:
    
    - `Last verified:` older than 30 days, or the target is not in the index →
      fetch the provider's official migration page first. Never guess model IDs,
      parameters, prices, or limits.
    - Record the source and date used in the migration report.
    - Facts marked as secondary-source in a guide → confirm on the provider page.
    
    If benchmarking is requested, read `references/benchmarking.md` and capture the
    baseline (Arm A) in Phase 0 before any edit — it cannot be reconstructed later.
    
    Scope not explicit → ask once, wait.
    
    ## Workflow
    
    ### Phase 0: Scope lock
    
    Define exactly what will be migrated. Narrow down to a targeted section. Establish current state.
    
    - Inspect VCS status, branch/PR context, issue notes, migration plans,
      handoff files.
    - Separate: done vs. needs-validation vs. in-progress vs. not-started.
    - Identify work that appears unrelated, incomplete, or owned by another agent.
    - Do not edit until scope is confirmed, targeted, and current state is understood.
    - Benchmarking opted in → capture **Arm A** (baseline: old model + old prompts)
      on the eval set now, before any edit. See `references/benchmarking.md`.
    
    ### Phase 1: Discovery scan
    
    Map the migration surface:
    
    - API call sites: SDK/client usage, model IDs, request params
    - Prompt assets: system prompts, templates, chains
    - Agent configs: tool policy, autonomy/delegation behavior
    - Tool definitions: schemas, descriptions, guardrails
    - Registries/config/tests/docs referencing model names
    
    Read:
    
    - `references/migration-playbook.md`
    - `references/provider-checklists.md`
    - `references/models/INDEX.md` — registry, upgrade paths, freshness rules
    - `references/breaking-changes.md` — error/symptom → cause → fix lookup across
      providers; read first when a swap returns 400s or behaves differently
    - `references/models/<model>.md` — when source or target matches a model with
      a dedicated guide (Claude Fable 5.1 / Opus 5.5 / Sonnet 5.5 / Haiku 5.5,
      GPT-6, Gemini 3.8 Flash, plus legacy Claude and GPT-5.5 guides)
    - `references/prompt-template-research.md` — when creating or improving a
      migration prompt or reusable migration request
    - `references/migration-patterns.md` — when choosing rollout strategy,
      adapters, feature flags, or side-by-side support
    - `references/validation-proof.md` — when planning proof gates, evals,
      smoke tests, or diagnose-patch-retry loops
    - `references/benchmarking.md` — when the user opted into a pre/post benchmark
      (three-arm methodology, metrics, composite scoring, leaderboard format)
    
    ### Phase 2: Classify before editing
    
    Classify each hit:
    
    - **Runtime caller** — code that sends model requests
    - **Definer/registry** — model catalogs, routing, capability maps
    - **Prompt/behavior layer** — prompt templates, safety policy
    - **Agent/tool layer** — tool specs, usage policy, orchestration hints
    - **Reference/test/docs** — assertions, docs, examples, fixtures
    
    Choose action per category:
    
    - Replace
    - Add alongside
    - Keep and annotate
    - Regenerate (generated files only)
    
    ### Phase 3: Migration design
    
    Thoroughly plan and research before implementation starts. Compact migration spec:
    
    - What is already implemented (by whom, if known)
    - What remains
    - Which pattern: direct swap, branch-by-abstraction, strangler routing,
      expand-contract, shadow mode, canary rollout
    - Breakdown of iterative phases for implementation
    - Required to prevent breakage
    - Optional tuning for better performance
    - Validation plan: tests + runtime checks + regression checks + proof
    - Rollback strategy
    
    Provider-specific unknowns → flag and ask before risky edits.
    Do not start Phase 4 until this design is complete and phase boundaries are clear.
    
    ### Phase 4: Implementation
    
    Apply in order:
    
    1. Runtime/API compatibility edits
    2. Prompt and behavior tuning
    3. Agent and tool behavior updates
    4. Config, registry, tests, docs synchronization
    
    Precise edits only. No repo-wide blind search-and-replace.
    
    
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/forkadarshp-modelport.md

// REPO STATS

4 stars
0 open issues
Last commit: 1mo ago