/cooklang:cooklang-validationfrom cooklang
Validates Cooklang .cook recipes for syntax errors, broken references, and rule violations like duplicate quantities or separate ingredient lists. Use when checking or fixing Cooklang files.
Ships in cooklang. 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.
None: SKILL.md is the whole skill.
Needs the Cook MCP server (tools like validate and read_recipe). If these tools are missing, the Cook MCP server isn't connected: if you installed the cooklang plugin or extension, check that its cook server is running (e.g. /mcp) or reinstall it; otherwise add it from https://github.com/cook-md/cook-mcp. Do not judge validity by eye alone instead.
Use when checking or validating a .cook recipe for syntax errors, or when asked to fix or clean up Cooklang. The cooklang-editing and recipe-import skills also self-check against these rules before they save a file.
These rules are for .cook recipes. Menu files (.menu) share most syntax but are not the focus here — if the task is about a meal plan, follow the meal-planning skill (cooklang://skills/meal-planning).
validate: with path for one file or folder, with no arguments for the whole collection, or with content (plus as_path) for text that is not saved yet. It reports parse errors and warnings and recipe references that don't resolve; for a folder or the whole collection it also lists ingredients missing from config/aisle.conf — run validate with no arguments to see ingredients with no aisle. (It warns "Unnecessary scaling lock modifier" on fixed quantities {=…}: a known parser quirk; keep the = and ignore that warning.)read_recipe (skip if the content is already in hand) and check it against every rule below too — some of them (a separate ingredient list, repeated quantities) parse fine and only show up as wrong data.servings, which scaling, plans and nutrition need).validate on the corrected text (content), then save it with write_recipe (full file content).= Ingredients or = Shopping List that lists @ingredient{qty} declarations is invalid — reason: Cooklang derives the ingredient list from inline tags, so a manual list plus inline references double-counts every ingredient. Move each quantity into the step that uses it and delete the section.
= Ingredients / @bacon{6%slices} … then = Instructions / Cook the @bacon...Cook the @bacon{6%slices} in a #skillet over medium heat.@name{qty} becomes its own entry in the derived ingredient list, so repeating the quantity duplicates it there.
@bacon{6%slices} in one step and @bacon{6%slices} in another.@bacon{6%slices} the first time, then @bacon after.{}. An inline @ or # name without braces captures only the first word — reason: the parser stops at the first space.
Toast all the @white sandwich bread slices (captures only "white").Toast all the @white sandwich bread{} and #baking sheet{}.--- markers at the file start — reason: the old >> metadata lines are deprecated and must not be used; write_recipe refuses them. Convert any you find into frontmatter keys.
--- / servings: 2 / ---{n%unit}. The % separates amount from unit — reason: {n unit} treats the whole thing as one amount and {n/unit} is a fraction.
@milk{1 cup}, @milk{1/cup}@milk{1%cup}, @milk{1/2%cup}@./path with no .cook extension. Reason: the spec's reference form has no extension.
@./sauces/pesto.cook{150%g}@./sauces/pesto{150%g}| Excuse | Rebuttal |
|---|---|
| "I only pointed out the errors, that's enough." | If the user wanted a fix, validate the corrected content and save it with write_recipe. Listing errors does not change the file. |
"validate passed, so the recipe is fine." | Rules 1, 2, 3, 5, 6 and 7 get through validate; check them by eye. |
| "The recipe already has an ingredients list, keep it." | A separate ingredient list is the violation (rule 1). Remove it and put the quantities inline; do not preserve it. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cooklang/cooklang-skills --plugin cooklang14 skills in this plugin
/cooklang-editingUse when writing a new Cooklang recipe or editing or fixing a .cook file - ingredients, cookware, timers, steps, sections, or resizing a recipe for good. For metadata/frontmatter changes use the metadata skill; to just show scaled amounts use scale-recipe. Not for meal plans (.menu) or importing from a URL/text./export-recipeUse when the user wants a Cooklang recipe (.cook) or meal plan (.menu) in another format - Markdown for a blog or notes, JSON or YAML for an app, plain text to paste or print, HTML, LaTeX - or a reusable export template. Not for importing into Cooklang (recipe-import)./meal-planningUse when building or editing a Cooklang meal plan (.menu file), weekly plans, multi-day menus, or matching servings across days. Not for a single recipe. With a numeric nutrition target ("35% protein", "1800 kcal/day"), screen candidates with nutrition-reports first, then build the plan here; nutrition-goals is only for changing an already-chosen recipe to hit a number./metadataUse when adding, normalizing, or fixing YAML frontmatter in Cooklang .cook recipes or .menu plans (title, tags, source, servings/yield, times, diet, locale, images), including converting old >> metadata lines and bulk metadata changes across a library./nutrition-goalsUse when the user wants to change AN EXISTING Cooklang recipe (.cook) or meal plan (.menu) so it hits numeric nutrition targets ("make this 600 kcal per serving", "get my week to 150 g protein a day", "more protein, same calories"). Measures with the Cook nutrition service, edits, and verifies. Not for evaluation-only questions (nutrition-reports), and not for picking or screening recipes that already meet a number (nutrition-reports screening, then meal-planning)./nutrition-reportsUse when the user wants a nutrition or dietitian-style evaluation of a Cooklang recipe (.cook) or meal plan (.menu) - calories, macros, micronutrients, passed/failed checks against targets, exclusions/allergens, a plan's per-day nutrition - or wants to SCREEN recipes that already meet a number ("which of my recipes are over 35% protein?"). Not for changing a recipe or plan to hit targets - that is nutrition-goals.Other plugins' skills for the same job