cooklang-editing
Skill1 starsChanged 38 days agoMITView on GitHub
Use 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.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cooklang/cooklang-skillsword for word, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- cooklang/cooklang-skills★ 9100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- cooklang-validationSkill
- export-recipeSkill
- meal-planningSkill
- metadataSkill
- nutrition-goalsSkill
- nutrition-reportsSkill
- organize-collectionSkill
- pantrySkill
- recipe-importSkill
- recipe-searchSkill
- report-authoringSkill
- scale-recipeSkill
- shopping-listSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use when creating, editing, scaling, or fixing .cook recipe files.
- Very specific: line 16
If editing an existing file, read it with read_recipe first (use the path exactly as list_recipes / search_recipes returned it).
- Very specific: line 17
If creating a file, look at the collection layout with list_recipes and pick an idiomatic folder and name that match the existing ones.
- Distinctive: line 27
Ask for what you can't know (how many it serves, the user's quantities) instead of inventing it.
- Very specific: line 39
Do not set force: true to write_recipe to get past validation errors.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: cooklang-editing
Needs the Cook MCP server (tools like read_recipe and validate). 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 write or save Cooklang without them.
Use when creating, editing, scaling, or fixing .cook recipe files.
This skill is for .cook recipes only. If the task is actually about a .menu meal plan, follow the meal-planning skill (cooklang://skills/meal-planning) instead. For metadata/frontmatter changes (title, tags, source, servings, etc.), follow the metadata skill (cooklang://skills/metadata).
Workflow
- If editing an existing file, read it with
read_recipefirst (use the path exactly aslist_recipes/search_recipesreturned it); understand its style and structure. - If creating a file, look at the collection layout with
list_recipesand pick an idiomatic folder and name that match the existing ones. - Make the change using Cooklang syntax. For scaling, fixed quantities (
@salt{=1%tsp}), or recipe references (@./path), consult thecooklang://syntaxresource.validatewarns "Unnecessary scaling lock modifier" on fixed quantities ({=…}): a known parser quirk; keep the=and ignore that warning. - Self-check the content against the cooklang-validation rules — no separate ingredient section, each quantity declared once inline, multi-word names braced — then run
validatewith the new text ascontent(andas_pathset to where it will be saved). Fix every error before saving. - Save with
write_recipe, always sending the full file content (there is no partial edit). It validates again and refuses to save content with errors. - Tell the user what you saved and where.
Writing a new recipe
From a description, a family recipe from memory, or a dish the user names:
- Ask for what you can't know (how many it serves, the user's quantities) instead of inventing it; a sensible default is fine for things like oven temperature if you say so.
- Frontmatter with at least
titleandservings; addtime(orprep time/cook time) andtagswhen known. Leavesourceout unless there is one. - One paragraph per step, separated by a blank line: lines with no blank line between them join into one step.
- Mark everything inline where the step uses it:
@onion{1}(finely diced)(preparation in parentheses),#large pot{},~{15%minutes}.= Saucestarts a section in a multi-part recipe; a line starting with>is a note;--starts a comment. - Show the draft, adjust, then validate and save as in the workflow above.
Rules
- Metadata is YAML frontmatter, never the deprecated
>>lines — for metadata-focused work, follow the metadata skill. - Recipe images live beside the file with a matching name (
Baked Potato.jpg), or as step images (Baked Potato.3.jpg); see the syntax reference under Images. - Match the surrounding file's conventions (units, casing, section style) — reason: a recipe that mixes styles is harder for the user to maintain.
- Touch only the file the task names. If a change demonstrably needs another file (e.g. a referenced sub-recipe), name that file and explain why before editing it.
- Do not set
force: truetowrite_recipeto get past validation errors; fix them. Use it only when the user explicitly wants a file saved as-is.
Do not skip the checks
| Excuse | Rebuttal |
| "The edit is tiny, I'll skip validation." | write_recipe overwrites the user's file for real. Run validate on the new content first; a broken recipe breaks every app that reads it. |
| "I'll send just the changed lines." | write_recipe replaces the whole file. Send the complete recipe, or you delete the rest of it. |
| "I described the change, that's enough." | If the user asked for the change, save it with write_recipe and say what you saved. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

