Gousto 食谱技能:通过 CLI 搜索 9,000 多种食谱 - Openclaw Skills

作者:互联网

2026-03-24

AI快讯

什么是 Gousto 食谱技能?

Gousto 食谱技能是专为 AI 代理和开发人员设计的专业集成,用于以编程方式访问包含 9,000 多种食谱的海量目录。通过将其合并到您的 Openclaw Skills 集合中,您可以搜索烹饪数据的本地缓存,并直接从 Gousto 官方 API 获取实时的详细说明。该技能针对速度和清晰度进行了优化,提供可供人类和 AI 模型使用的干净数据。

除了简单的搜索外,该技能还处理繁重的数据清洗工作。它会自动从食谱步骤中剥离 HTML 标签,将其转换为纯文本,并管理 API 分页以确保不遗漏任何食谱。无论您是在构建个性化膳食助手还是厨房自动化流水线,该技能都能为高质量的食品科技应用提供必要的结构化数据。

下载入口:https://github.com/openclaw/skills/tree/main/skills/dhruvkelawala/gousto

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install gousto

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 gousto。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

Gousto 食谱技能 应用场景

  • 创建从 9,000 多种专业食谱数据库中提取数据的自动化膳食规划器。
  • 直接从终端搜索晚餐灵感,无需浏览沉重的网站。
  • 通过提取结构化的食材数据来构建自定义购物清单生成器。
  • 分析营养信息和准备时间,以优化备餐。
Gousto 食谱技能 工作原理
  1. 用户运行缓存更新脚本,从 Gousto CMS API 获取食谱元数据并保存在本地。
  2. 使用 jq 针对本地 JSON 缓存执行搜索查询,提供标题和关键词的近乎即时结果。
  3. 使用特定的食谱别名(slug)按需获取详细的食谱数据,包括食材和步骤。
  4. 该技能处理原始 API 响应以删除 HTML 格式,确保输出整洁易读。

Gousto 食谱技能 配置指南

在初始化技能之前,请确保您的系统中安装了 curljq

# 首次设置:构建本地食谱缓存
./scripts/update-cache.sh

# 在本地搜索食谱
./scripts/search.sh "chicken curry"

# 获取特定食谱详情
./scripts/recipe.sh honey-soy-chicken-with-noodles

Gousto 食谱技能 数据架构与分类体系

该技能在 data/recipes.json 中维护一个本地缓存(对象数组),以便在 Openclaw Skills 环境中进行快速本地搜索。

类型 描述
title 字符串 食谱的显示名称
slug 字符串 用于查找的 URL 友好标识符
rating 数字 用户平均评分(例如 4.8)
prep_time 数字 所需总分钟数
uid 字符串 唯一的 Gousto 标识符
name: gousto
description: Search and browse 9,000+ Gousto recipes. Get full ingredients and step-by-step cooking instructions via official API.
homepage: https://github.com/dhruvkelawala/gousto-agent-skill
metadata: {"openclaw":{"emoji":"??","requires":{"bins":["curl","jq"]}}}

Gousto Recipe Skill

Search and browse 9,000+ Gousto recipes from the command line.

Quick Start

# First time: build the cache (~3 min)
./scripts/update-cache.sh

# Search recipes
./scripts/search.sh chicken
./scripts/search.sh "beef curry"

# Get full recipe with ingredients & steps
./scripts/recipe.sh honey-soy-chicken-with-noodles

Scripts

Script Purpose
search.sh Search recipes by title (uses local cache)
recipe.sh Get full recipe details with ingredients and cooking steps
update-cache.sh Rebuild local cache from Gousto API (~3 min)

API Details

Official Gousto API (recipe listing):

https://production-api.gousto.co.uk/cmsreadbroker/v1/recipes?limit=50&offset=0
  • Returns metadata: title, rating, prep_time, url
  • Paginate with offset parameter (NOT skip — that's broken!)
  • ~9,300 recipes total

Official Gousto API (single recipe):

https://production-api.gousto.co.uk/cmsreadbroker/v1/recipe/{slug}
  • Full recipe with ingredients, cooking steps, nutritional info
  • HTML in steps is stripped to plain text by the script

Cache Format

data/recipes.json — array of objects:

{
  "title": "Chicken Tikka Masala",
  "slug": "chicken-tikka-masala",
  "rating": 4.8,
  "rating_count": 12543,
  "prep_time": 35,
  "uid": "blt123..."
}

Notes

  • Cache is gitignored — run update-cache.sh after cloning
  • Search is instant (local jq filter)
  • Recipe fetch requires network (vfjr.dev proxy)