360 Secure SkillHub
360 安全技能中心

Cook Like Hoc

该 Skill 通过 Python 脚本在 CookLikeHOC 菜谱仓库中对用户给出的菜名做模糊匹配,返回最接近的 markdown 菜谱内容并整理输出;覆盖主食、炒菜、汤、炖菜、蒸菜、饮品等分类,未匹配到时提示该菜谱不在数据库中。

xiaoxiangxie
xiaoxiangxie
热度 39.71
最近更新 2026-05-11 17:42:41
分类:生活依赖:代码执行 / 读写文件 / 第三方 API应用场景:食谱

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cook-like-hoc
Metadata
name
cook-like-hoc
description
Search and display recipes from the open-source Gar-b-age/CookLikeHOC repository. Use when the user asks to "cook like hoc", "像老乡鸡那样做饭", "老乡鸡菜谱", "做菜", or wants to find a specific recipe from the CookLikeHOC database.

CookLikeHOC Skill

This skill allows you to retrieve recipe instructions from the CookLikeHOC repository. It contains recipes from the "老乡鸡菜品溯源报告".

Prerequisites

  • Python 3 installed
  • Built-in urllib and json modules (no external libraries required)

Workflows

1. Searching for a Recipe

When the user asks for a recipe or wants to know how to cook a dish from the CookLikeHOC database, run the search_recipe.py script.

Command:

python ~/.agents/skills/cook-like-hoc/scripts/search_recipe.py "<Recipe Name>"

Example:

python ~/.agents/skills/cook-like-hoc/scripts/search_recipe.py "肥肠鸡"

How to handle the output

  • The Python script performs fuzzy matching. It will return the markdown recipe for the exact or closest match.
  • Output the recipe to the user, formatting it cleanly as markdown.
  • If it says Could not find any recipe matching, inform the user that the recipe isn't in the database and perhaps suggest one from the provided examples.

Supported categories & recipes

The repository has categories like 主食 (Staple Food), 炒菜 (Stir-fried), 汤 (Soup), 炖菜 (Stew), 炸品 (Fried), 烤类 (Roasted), 烫菜 (Blanched), 煮锅 (Boiled Pots), 砂锅菜 (Casserole), 蒸菜 (Steamed), 配料 (Ingredients), and 饮品 (Drinks). The script searches across all markdown files in these categories automatically.