/cooklang:export-recipefrom cooklang
Exports Cooklang recipes (.cook) or meal plans (.menu) to Markdown, JSON, YAML, plain text, HTML, LaTeX, or custom formats. Requires the Cook MCP server.
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.
Use when the user wants a recipe or plan turned into Markdown, JSON, YAML, plain text, HTML, LaTeX or another format to share, paste, print or feed to another program.
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 rewrite a recipe from memory instead.
There is no export tool. Build the export from one of two sources, and never retype quantities yourself.
read_recipe (one-off exports)read_recipe (path, optional scale) returns the parsed recipe; build the format from it:
recipe.metadata.map — frontmatter (title, servings, tags, times, source…). title is also top-level.recipe.ingredients[] — name, note (the (…) preparation), quantity (null when none), and reference set for @./ sub-recipes. A quantity is {unit, value} where value is tagged by type: a plain number sits at quantity.value.value.value ({"type": "number", "value": {"type": "regular", "value": 200.0}}), but it can also be a range or free text, so don't assume a number.recipe.cookware[] — name; recipe.timers[] — quantity in the same shape.recipe.sections[] — optional name, then content: steps (items are text pieces plus ingredient / cookware / timer entries pointing by index into the lists above) and text blocks (notes). Rebuild a step's sentence by substituting each indexed item.scale, every quantity is already scaled (scale-recipe skill).Use this route for the structure (which fields, what shape). To print quantities and step sentences, Route 2 is safer: {{ i.quantity }} renders the amount and unit exactly as the apps do, ranges and text included, and steps come out with amounts filled in.
Good for JSON, where you choose the shape: keep it simple and say which fields you included, for example
{
"title": "Carbonara",
"servings": 2,
"tags": ["pasta"],
"ingredients": [{"name": "spaghetti", "quantity": 200, "unit": "g", "note": null}],
"cookware": ["large pot"],
"steps": ["Cook 200 g spaghetti in a large pot for 10 minutes."]
}
If the user names a target schema (schema.org Recipe JSON-LD, another app's import format), map onto that instead.
render_report with a template (repeatable exports)A Jinja template renders the same layout for any recipe, and can be saved and reused. Plain templates render locally with no login. The template context has metadata, ingredients (.name, .quantity, .note), cookware (.name), sections (each has .name; iterating one yields its steps, which print as numbered lines with quantities filled in) and scale. A Markdown export:
# {{ metadata.title | default("Recipe") }}
{% if metadata.servings %}**Servings:** {{ metadata.servings }}
{% endif %}
## Ingredients
{% for i in ingredients -%}
- {% if i.quantity %}{{ i.quantity }} {% endif %}{{ i.name }}{% if i.note %} ({{ i.note }}){% endif %}
{% endfor %}
{% if cookware %}## Equipment
{% for c in cookware -%}
- {{ c.name }}
{% endfor %}{% endif %}
## Method
{% for section in sections %}
{% if section.name %}### {{ section.name }}
{% endif %}{% for content in section %}
{{ content }}
{%- endfor %}
{% endfor %}
Call render_report with template (inline) and input_path (plus scale if wanted). Plain text is the same template without the Markdown marks; HTML wraps the same loops in tags. Any text format works the same way, since the template is just Jinja: YAML and LaTeX come from a template written in that format (saved as export.yaml.jinja / export.tex.jinja). Mind whitespace control (-%}) where indentation matters, as in YAML. For a .menu, the template reads plan instead of ingredients; see the report-authoring skill for the plan context, filters and datastore functions.
If the user will export again, offer to save the template with write_config (path e.g. reports/export.md.jinja; the inner extension names the format: .md.jinja, .txt.jinja, .html.jinja, .yaml.jinja, .tex.jinja) and render it later with template_path.
write_recipe / write_menu save Cooklang and write_config saves only config and templates. Show the export in the reply, or, if the user wants a file, save it with your client's own file tools and say where.list_recipes with dir, then one read_recipe or render_report per file. Tell the user how many files first if it is more than about 10.source / author from the frontmatter in the export so the original stays credited..cook file.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./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)./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