Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cookbook-migrate-model

Skill by sgl-project

Migrates one legacy SGLang cookbook page to the config-driven template, copying its commands and measured numbers faithfully. Built for maintainers porting existing model pages. New models should use cookbook-add-model instead.

  • Score 94
  • 39k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cookbook-migrate-model

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sgl-project/sglang /tmp/sglang && mkdir -p ~/.claude/skills && cp -r /tmp/sglang/.agents/skills/cookbook-migrate-model ~/.claude/skills/cookbook-migrate-model

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cookbook-migrate-model in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

cookbook-migrate-model is an agent skill for the sgl-project SGLang documentation. It converts one legacy cookbook page, a monolithic per-model generator under docs/src/snippets/autoregressive/, onto the config-driven template. That template uses shared _deployment.jsx and _playground.jsx engines plus per-model config. The legacy page is treated as the single source of truth and transcribed rather than improved.

The skill sets strict rules. Flags, versions and docker tags are copied verbatim, and benchmark numbers migrate only when tied to a reproducible SGLang version. Verified status follows the measured command. It maps legacy toggles to dimensions and playground axes, generates cell configs, and requires an equivalence audit against the original generator. It is for maintainers porting existing cookbook pages, not for brand-new models.

Written from the project's SKILL.md and checked against it.

What it can do

  • Legacy page inventoryReads the legacy generator and MDX page to list every option, command and benchmark block.
  • 5-dim mappingMaps legacy controls to hardware, strategy and other dimensions, with playground axes for the rest.
  • Config generationGenerates the cells literal from the legacy command logic, with a pure literal output.
  • Equivalence auditDiffs the generated cells token by token against the original generator for every combo.
  • Benchmark migrationCarries over measured results only when their SGLang version is a reproducible anchor.
  • Inbound anchor sweepFinds links and fragments pointing to the page so referrers can be fixed in the same PR.

What you need

  • Git checkout of the sgl-project repository with the main branch
  • GitHub CLI (gh) for checking out pull requests
  • Access to the cookbook-add-model skill assets

Try asking

  • /cookbook-migrate-model GLM-5.1
  • Migrate the Kimi-K2.6 cookbook page to the config-driven template.
  • Port the Qwen3.5 cookbook page and run the equivalence audit.

Good to know

  • Not for brand-new models; use cookbook-add-model for those.
  • Engine files _deployment.jsx and _playground.jsx must not change in a migration PR.
  • Benchmark results with moving version refs such as main branch are dropped.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/cookbook-migrate-model/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md16 KB
  • references/dimension-mapping.md23 KB

Alternatives to cookbook-migrate-model

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

cookbook-migrate-model: common questions

What does cookbook-migrate-model change on a cookbook page?

It moves a legacy monolithic generator page onto shared engines plus per-model config. The commands and measured data are transcribed as written, not improved.

Why are some benchmark numbers dropped during migration?

A result migrates only when its sglang_version is reproducible, such as a release tag, commit hash or pinned PR. Results from moving refs or other models are removed.

When should I use cookbook-add-model instead?

Use cookbook-add-model for brand-new models. This skill is only for converting an existing legacy cookbook page.

How do I install cookbook-migrate-model?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cookbook-migrate-model free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is cookbook-migrate-model safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to cookbook-migrate-model?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

cookbook-migrate-model Install

Add to stack

Loading.