agentleFS
cook-mdcook-md/cook-mcp/skills/recipe-import/SKILL.md

recipe-import

Skill1 starsChanged 39 days agoMITView on GitHub

Use when bringing a recipe into the Cooklang collection from a URL, photos, or pasted text and saving it as a .cook file. Triggers - "import", "convert this to Cooklang", a pasted recipe, a link, a photo of a cookbook page. Not for editing an existing local recipe.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when bringing a recipe in from a URL, photos, or pasted text.

    line 10
  2. Very specific:

    Call import_recipe with exactly one source:

    line 14
  3. Very specific:

    Never copy a recipe out of a web page by hand when import_recipe can take the URL — it handles the page structure and returns clean …

    line 27
  4. Distinctive:

    If the source doesn't give servings or times, ask the user or leave the key out.

    line 31

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: recipe-import

Needs the Cook MCP server (tools like import_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 copy a recipe out of a page by hand without them.

Use when bringing a recipe in from a URL, photos, or pasted text.

Workflow

  1. Call import_recipe with exactly one source:
    • url — a recipe web page. Works without a login; social-media links (videos, posts) need a cook.md account and use the import allowance of Cook Basic or Cook Pro.
    • text — recipe text the user pasted. Works without a login.
    • image_paths — 1–10 photos (cookbook page, recipe card) as paths inside the collection. Photos need a cook.md account and use the import allowance of Cook Basic or Cook Pro. It returns Cooklang text (plus metadata) and does NOT save anything.
  2. On login_required, call login and show the user the code and link. On plan_required, show the user the checkout_url. If they don't want to upgrade, follow the returned next_step: read the source yourself and write the Cooklang by hand (cooklang-editing skill).
  3. Decide an output path: look at the collection layout with list_recipes, then pick a category folder and a name in the user's naming style. Check the name isn't taken — write_recipe overwrites.
  4. Merge the returned metadata into YAML frontmatter (title, source with the URL, servings, times, tags). Keep source — the user will want to find the original.
  5. Self-check against the cooklang-validation rules — no separate ingredient section, each quantity declared once inline, multi-word names braced — then run validate with the text as content and as_path set to the chosen path. Fix every error.
  6. Save with write_recipe and tell the user what you saved and where.

Rules

  • Never copy a recipe out of a web page by hand when import_recipe can take the URL — it handles the page structure and returns clean Cooklang.
  • See the cooklang://syntax resource and the metadata skill for field names if you adjust the converted output.
  • Touch only the file you are importing into. Ask before overwriting an existing recipe of the same name.
  • The import is a starting point: check that quantities and steps survived (especially from photos), and say if anything was unreadable.
  • If the source doesn't give servings or times, ask the user or leave the key out; don't invent them.
  • Writing it by hand (no import_recipe, or its next_step says so): put each quantity in the step that uses it — "1 cup flour" → @flour{1%cup}, "1/2 tsp vanilla" → @vanilla{1/2%tsp}, "3 large eggs" → @eggs{3}(large), "salt to taste" → @salt; "bake for 30 minutes" → ~{30%minutes}; "in a large bowl" → #large bowl{}.

Do not skip the save

ExcuseRebuttal
"import_recipe ran, so the recipe is imported."It only RETURNS Cooklang. Nothing is in the collection until you validate it and save it with write_recipe.
"I'll report success now and save in a moment."Save first, then report the path you saved to.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.