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.
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-modelRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sgl-project/sglang /tmp/sglang && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sglang/.agents/skills/cookbook-migrate-model ~/.gemini/antigravity-cli/skills/cookbook-migrate-modelAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cookbook-migrate-model in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
