微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Paprika Recipe Importer

Paprika Recipe Importer · v1.0.0
安全 unknown 级 作者 nogara 公开目录收录
993 下载 0 安装 4.5k 收藏 2 浏览

简介

Paprika Recipe Importer

原始描述

Convert recipe text (pasted text, video transcript, image description, or any raw content) into a .paprikarecipes file that can be imported directly into the...

通过你的 Agent 添加

安装目录:paprika-recipe-importer/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/paprika-recipe-importer/
Codex CLI~/.codex/skills/paprika-recipe-importer/
DeepSeek Harness~/.agents/skills/paprika-recipe-importer/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: paprika-recipe-importer description: > Convert recipe text (pasted text, video transcript, image description, or any raw content) into a .paprikarecipes file that can be imported directly into the Paprika Recipe Manager app. Use when the user shares a recipe in any format (text, transcript, image) and wants a Paprika import file. Triggers on phrases like "create a Paprika file", "import into Paprika", "save this recipe to Paprika", or when a recipe is shared and export to Paprika is implied.

Paprika Recipe Importer

Convert recipe content (any format/language) into a .paprikarecipes file for Paprika 3.

Workflow

  1. Extract recipe fields from the input (text, image, transcript, URL content).
  2. Build a JSON recipe object — only include fields actually present in the source; do NOT invent values.
  3. Run the packaging script to produce the .paprikarecipes file.
  4. Deliver the file to the user.

Step 1 — Extract Fields

Parse the input and populate only the fields that exist in the source:

JSON field Notes
name Recipe title. Required.
ingredients Newline-separated list. Format: quantity unit ingredient.
directions Newline-separated steps.
description Intro/summary paragraph, if present.
notes Tips, variations, author notes.
servings e.g. "4 porções" or "serves 6"
prep_time e.g. "15 min"
cook_time e.g. "30 min"
total_time e.g. "45 min"
source Author name, site name, person.
source_url Original URL, if available.
categories JSON array of strings, e.g. ["Jantar", "Massas"]
difficulty "Easy", "Medium", or "Hard" — only if explicitly stated.
rating Integer 1–5 — only if explicitly stated.
nutritional_info Any nutritional data present.

Rules:

  • Never fabricate values not present in the source.
  • Keep the original language (Portuguese, English, mixed — whatever the source uses).
  • Ingredients: one per line, preserve quantities and units exactly.
  • Directions: one step per line; numbered steps → strip the number (Paprika handles display).

Step 2 — Build JSON

Write the recipe as a JSON file to a temp path, e.g. /tmp/<recipe-name>.json.

Step 3 — Run the Script

python3 ~/.openclaw/skills/paprika-recipe-importer/scripts/build_paprikarecipes.py \
  /tmp/<recipe-name>.json \
  /tmp/<recipe-name>.paprikarecipes

The script accepts a single JSON object or a JSON array (for multiple recipes).

Step 4 — Deliver

Send the .paprikarecipes file to the user. Mention:

  • How to import: File → Import in Paprika (or double-click the file on macOS/iOS).
  • Which fields were found and which were absent from the source.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill