/cooklang:metadatafrom cooklang
Adds, normalizes, or fixes YAML frontmatter in Cooklang .cook recipes and .menu plans. Handles bulk metadata changes and converts old >> metadata lines.
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 read_recipe and write_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 rewrite files without them.
Use when adding, normalizing, or fixing recipe/menu metadata (YAML frontmatter): titles, tags, source/author, servings/yield, times, diet, locale, images, or bulk metadata changes across a library.
This skill owns all metadata guidance. The cooklang-editing and meal-planning skills defer metadata/frontmatter work to here.
Metadata is YAML frontmatter between --- markers at the very start of the file. NEVER use the old >> metadata lines — reason: they are removed from the language; only frontmatter is supported, and write_recipe refuses them. If a file still has them, convert them to frontmatter keys as part of the edit.
Changing metadata — tags, cuisine, source, any frontmatter key — on one file or many:
search_recipes (tag, or words) or list_recipes (dir for a folder) rather than reading the whole library. For a rule like "everything in Desserts/", the folder listing is the selection.read_recipe, change only the frontmatter, and keep the recipe body byte-for-byte. Match the file's existing key names, casing, order and tag style; add a frontmatter block if the file has none; never duplicate a tag.write_recipe (.cook) or write_menu (.menu), sending the full file content — there is no metadata-only write.For a brand-new file, the frontmatter is part of the content you save with write_recipe.
| Key (and synonyms) | Purpose | Example |
|---|---|---|
title | Recipe title. | Uzbek Manti |
source, source.name | Where it came from (URL or text). | https://example.org/recipe, mums |
source.url | URL when the nested form is used. | https://example.org/recipe |
author, source.author | Recipe author. | John Doe |
servings, serves, yield | People/amount. Leading number drives scaling; the rest shows as units. | 2, 15 cups worth |
course, category | Meal category or course. | dinner |
locale | ISO 639 language, optional _ then ISO 3166 country. Used for spelling and pluralisation. | en_GB, fr |
time, time required, duration | Total prep + cook time. Prefer HhMm. | 1h30m |
prep time, time.prep | Prep only. | 2 hour 30 min |
cook time, time.cook | Cooking only. | 10 minutes |
difficulty | Difficulty level. | easy |
cuisine | Cuisine. | French |
diet | Dietary suitability; string or array. | gluten-free, [vegan, halal] |
tags | Descriptive tags (array). | [baking, summer] |
image, images, picture, pictures | Image URL, or array of URLs. | https://example.org/img.jpg |
description, introduction | Notes about the recipe. | Traditional Uzbek dish… |
serves and servings is harder to maintain.servings/yield accurate — reason: they drive recipe scaling and any shopping-list or menu math built on top.search_recipes with tag matches the frontmatter tags list, so consistent tags make the library searchable.| Excuse | Rebuttal |
|---|---|
| "It's only metadata, I'll rewrite the body from memory." | write_recipe saves exactly what you send. Copy the body from read_recipe's source unchanged. |
| "The metadata edit is tiny, I'll say it's done." | Say it's done after write_recipe succeeds, and name the file. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 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./cooklang-validationUse when checking or validating Cooklang - one .cook recipe, a folder, or the whole collection - for syntax errors and broken references, or when asked to fix or clean up Cooklang (e.g. a stray ingredient list or unbraced multi-word names)./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).npx claudepluginhub cooklang/cooklang-skills --plugin cooklangOther plugins' skills for the same job