export-recipe
Skill1 starsChanged 38 days agoMITView on GitHub
Use 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).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cooklang/cooklang-skillsword for word, first seen Oct 6, 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-editingSkill
- cooklang-validationSkill
- 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, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
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 …
- Very specific: line 24
Use this route for the structure (which fields, what shape).
- Very specific: line 39
If the user names a target schema (schema.org Recipe JSON-LD, another app's import format), map onto that instead.
- Very specific: line 71
If the user will export again, offer to save the template with write_config (path e.g.
- Very specific: line 81
Keep source / author from the frontmatter in the export so the original stays credited.
≈ “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: export-recipe
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.
Route 1: from 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…).titleis also top-level.recipe.ingredients[]—name,note(the(…)preparation),quantity(nullwhen none), andreferenceset for@./sub-recipes. A quantity is{unit, value}wherevalueis tagged bytype: a plain number sits atquantity.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[]—quantityin the same shape.recipe.sections[]— optionalname, thencontent: steps (itemsare text pieces plusingredient/cookware/timerentries pointing byindexinto the lists above) and text blocks (notes). Rebuild a step's sentence by substituting each indexed item.- With
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.
Route 2: 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.
Where the export goes
- cook-mcp does not write export files:
write_recipe/write_menusave Cooklang andwrite_configsaves 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. - Many recipes at once ("export all of Desserts/"):
list_recipeswithdir, then oneread_recipeorrender_reportper file. Tell the user how many files first if it is more than about 10.
Rules
- Quantities, names and steps come from the tools' output, not from your reading of the source. Keep the recipe's units; convert only if asked.
- Keep
source/authorfrom the frontmatter in the export so the original stays credited. - Exporting never changes the
.cookfile.
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.

