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-add-model

Skill by sgl-project

Adds a new model to the SGLang Cookbook docs by filling config-driven templates. It creates a per-model config, a benchmarks file, an MDX page, a docs.json nav entry and a homepage vendor card. Aimed at contributors who maintain the SGLang docs.

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

Install cookbook-add-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-add-model ~/.claude/skills/cookbook-add-model

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

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

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

About

The cookbook-add-model skill guides an assistant through adding a model to the SGLang Cookbook, a Mintlify docs site in the docs/ folder. The cookbook is config-driven: two shared engines contain no model-specific code, so a new model is added as data. The skill copies model-agnostic templates into a per-model config JSX under src/snippets/configs/, an MDX page, a docs.json nav entry and a homepage vendor card.

It works interactively in phases. It collects the model card, variants, quantizations, tested hardware and verified launch recipes, and asks which sglang build the recipes ran on rather than guessing. It also covers NEW-tag hygiene and a duplicate pull request check. It is intended for contributors who add or maintain model pages in the sgl-project/sglang repository.

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

What it can do

  • Collect model inputsGathers the Hugging Face model card, variants, quantizations, tested hardware and launch recipes.
  • Instantiate templatesCopies the config, benchmarks and MDX page templates to their per-model paths and fills the placeholder tokens.
  • Prune and fill cellsRemoves unsupported hardware and playground axes, then replaces example cells with verified recipes.
  • Update docs.json navAdds the new model page to the docs.json navigation.
  • NEW-tag hygieneHandles the NEW tag on cookbook pages as part of the workflow.
  • Homepage vendor cardAdds a vendor card to the homepage, with guidance for new vendor logos.
  • Duplicate PR checkRuns a gh pr list search on the sglang repository to find existing pull requests for the model.
  • Diffusion pagesUses a separate diffusion template and adds a ComfyUI support section.

What you need

  • GitHub CLI (gh) for the duplicate pull request check
  • Access to the sgl-project/sglang repository
  • A public Hugging Face model page or repository
  • Verified launch recipes and benchmark results for the model

Try asking

  • Use cookbook-add-model to add a new model page to the SGLang Cookbook
  • Create the per-model config JSX for this Hugging Face repo
  • Check my new cookbook page for leftover __TOKEN__ placeholders

Good to know

  • Runs only when invoked manually with /cookbook-add-model.
  • Legacy-template pages should use the separate cookbook-migrate-model skill.
  • Diffusion pages use a separate template and reference file.
  • Cells should be verified recipes, and only tested combinations get verified: true.

Security check

A

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

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

Inside the skill

  • SKILL.md17 KB
  • references/authoring-reference.md26 KB
  • references/diffusion-authoring.md6 KB
  • references/engine-axis.md13 KB
  • references/mintlify-authoring.md7 KB
Show all 11 files
  • references/vendor-logo.md3 KB
  • templates/benchmarks.jsx.tmpl2 KB
  • templates/config.jsx.tmpl18 KB
  • templates/diffusion-config.jsx.tmpl6 KB
  • templates/diffusion-page.mdx.tmpl2 KB
  • templates/page.mdx.tmpl6 KB

Alternatives to cookbook-add-model

All alternatives →

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

cookbook-add-model: common questions

Does this skill change the shared SGLang Cookbook engines?

No. The skill states that adding a model means adding data, with no engine edits.

Which sglang version goes in the Docker image tag?

The skill asks the user for the build the recipes ran on. If unsure, it defaults to lmsysorg/sglang:dev rather than guessing a release.

Can it migrate an existing legacy cookbook page?

Not with this skill. Pages that import a monolithic deployment generator should use the cookbook-migrate-model skill.

How do I install cookbook-add-model?

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

Is cookbook-add-model free?

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

Is cookbook-add-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-add-model?

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

cookbook-add-model Install

Add to stack

Loading.