pp-food52

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Food52 — Printing Press CLI

Food52 — Printing Press CLI

Prerequisites: Install the CLI

前提条件:安装CLI

This skill drives the
food52-pp-cli
binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
  1. Install via the Printing Press installer:
    bash
    npx -y @mvanhorn/printing-press install food52 --cli-only
  2. Verify:
    food52-pp-cli --version
  3. Ensure
    $GOPATH/bin
    (or
    $HOME/go/bin
    ) is on
    $PATH
    .
If the
npx
install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.23+):
bash
go install github.com/mvanhorn/printing-press-library/library/food-and-dining/food52/cmd/food52-pp-cli@latest
If
--version
reports "command not found" after install, the install step did not put the binary on
$PATH
. Do not proceed with skill commands until verification succeeds.
本技能驱动
food52-pp-cli
二进制文件。在调用本技能的任何命令之前,必须确认CLI已安装。如果未安装,请先执行以下步骤:
  1. 通过Printing Press安装器安装:
    bash
    npx -y @mvanhorn/printing-press install food52 --cli-only
  2. 验证安装:
    food52-pp-cli --version
  3. 确保
    $GOPATH/bin
    (或
    $HOME/go/bin
    )已添加到
    $PATH
    环境变量中。
npx
安装失败(无Node环境、离线等情况),可改用Go直接安装(要求Go 1.23+版本):
bash
go install github.com/mvanhorn/printing-press-library/library/food-and-dining/food52/cmd/food52-pp-cli@latest
如果安装后执行
--version
提示“command not found”,说明安装程序未将二进制文件添加到
$PATH
中。请在验证成功前不要执行技能命令。

When to Use This CLI

何时使用该CLI

Reach for this CLI when an agent needs Food52-quality recipes (community-curated, editor-tested) without rendering a browser or scraping HTML. The pantry match and offline FTS commands turn it into an edit-friendly cookbook the agent can keep on disk between sessions. Use the live
recipes search
for one-off lookups; sync + offline
search
for repeated queries against the same recipes.
当需要获取Food52品质的食谱(社区精选、编辑测试)且无需打开浏览器或抓取HTML时,使用该CLI。食材匹配和离线全文检索功能可让它成为代理在会话间保存在本地的可编辑食谱集。单次查询使用在线
recipes search
;重复查询同一食谱则使用同步+离线
search

When Not to Use This CLI

何时不使用该CLI

Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.
请勿在需要创建、更新、删除、发布、评论、点赞、邀请、订购、发送消息、预订、购买或修改远程状态的请求中激活该CLI。本CLI仅提供用于查看、导出、同步和分析的只读命令。

Unique Capabilities

独特功能

These capabilities aren't available in any other tool for this API.
这些功能是其他同类型API工具所不具备的。

Local state that compounds

可累积的本地状态

  • pantry match
    — Find Food52 recipes whose ingredients overlap your local pantry, ranked by coverage.
    Reach for this when the user asks 'what can I make with what I have' rather than searching for one dish at a time.
    bash
    food52-pp-cli pantry match --min-coverage 0.7 --json
  • search
    — Full-text search across every recipe and article you have synced, with type filtering.
    Use this for lookups that can't justify a Typesense round trip or when offline.
    bash
    food52-pp-cli search "miso" --type recipe --json
  • sync recipes
    — Pull recipes for one or more tags into the local FTS-indexed store.
    Run before pantry match or offline search to seed the local cookbook.
    bash
    food52-pp-cli sync recipes chicken vegetarian --limit 100
  • articles for-recipe
    — Find synced articles that mention a given recipe in their relatedReading.
    Use when the user wants the editorial context behind a recipe they've found.
    bash
    food52-pp-cli articles for-recipe sarah-fennel-s-best-lunch-lady-brownie-recipe
  • pantry match
    — 查找食材与本地 pantry 重叠的Food52食谱,并按匹配度排序。
    当用户询问“用现有的食材能做什么”而非单次搜索某道菜时使用此功能。
    bash
    food52-pp-cli pantry match --min-coverage 0.7 --json
  • search
    — 对已同步的所有食谱和文章进行全文检索,并支持类型过滤。
    当无法通过Typesense查询或处于离线状态时使用此功能。
    bash
    food52-pp-cli search "miso" --type recipe --json
  • sync recipes
    — 将一个或多个标签对应的食谱拉取到本地全文检索索引库中。
    在执行食材匹配或离线搜索前运行此命令,以初始化本地食谱集。
    bash
    food52-pp-cli sync recipes chicken vegetarian --limit 100
  • articles for-recipe
    — 查找在相关推荐中提及指定食谱的已同步文章。
    当用户需要了解所找到食谱背后的编辑背景时使用此功能。
    bash
    food52-pp-cli articles for-recipe sarah-fennel-s-best-lunch-lady-brownie-recipe

Editorial signals others ignore

其他工具忽略的编辑标识

  • recipes top
    — Show only Food52 Test-Kitchen-approved recipes for a tag, with a rating floor.
    Pick this over a broad search when the user wants 'a recipe Food52's editors signed off on,' not just any community recipe.
    bash
    food52-pp-cli recipes top chicken --min-rating 4 --limit 5 --json
  • recipes top
    — 仅显示Food52测试厨房认证的指定标签食谱,并可设置最低评分门槛。
    当用户需要“经Food52编辑认可的食谱”而非普通社区食谱时,优先使用此功能而非宽泛搜索。
    bash
    food52-pp-cli recipes top chicken --min-rating 4 --limit 5 --json

Recipe transforms

食谱转换

  • scale
    — Scale a recipe's ingredients to a different number of servings using its Schema.org recipeYield.
    Use when the user is cooking for a different headcount than the recipe's default yield.
    bash
    food52-pp-cli scale mom-s-japanese-curry-chicken-with-radish-and-cauliflower --servings 8 --json
  • print
    — Render a recipe as ingredients + numbered steps with no nav, no images, no ads, no comments — ready to pipe to lp or paste into notes.
    Use when the user wants to actually cook from the recipe rather than browse it.
    bash
    food52-pp-cli print sarah-fennel-s-best-lunch-lady-brownie-recipe
  • scale
    — 根据食谱的Schema.org recipeYield字段调整食材分量至不同份数。
    当用户烹饪人数与食谱默认份数不同时使用此功能。
    bash
    food52-pp-cli scale mom-s-japanese-curry-chicken-with-radish-and-cauliflower --servings 8 --json
  • print
    — 将食谱渲染为食材列表+编号步骤的格式,无导航、无图片、无广告、无评论——可直接打印或粘贴到笔记中。
    当用户需要实际按照食谱烹饪而非浏览时使用此功能。
    bash
    food52-pp-cli print sarah-fennel-s-best-lunch-lady-brownie-recipe

HTTP Transport

HTTP传输

This CLI uses Chrome-compatible HTTP transport for browser-facing endpoints. It does not require a resident browser process for normal API calls.
该CLI使用兼容Chrome的HTTP传输方式访问面向浏览器的端点,正常API调用无需常驻浏览器进程。

Discovery Signals

发现信号

This CLI was generated with browser-observed traffic context.
  • Capture coverage: 0 API entries from 0 total network entries
  • Protocols: ssr_embedded_data (100% confidence), next_data_json (100% confidence), rest_json (100% confidence), schema_org_jsonld (100% confidence)
  • Auth signals: none
  • Generation hints: browser_http_transport
  • Candidate command ideas: recipes search; recipes browse; recipes get; tags list; verticals list; articles browse; articles get
  • Caveats: scope_note: Hotline (/hotline, /hotline/questions/<topic>) returns only siteSettings in pageProps and renders no question/answer data in the DOM. The community Q&A is effectively unreachable for unauthenticated read scrapers. Excluded from CLI scope.; scope_note: Shop endpoints exist on shop.food52.com and food52.myshopify.com/api/2025-01/graphql.json but require Shopify Storefront API token discovery; deferred from v1.; scope_note: buildId (Pq8fQj0nm7uTx90i5u0si at the time of browser-sniff) and _app.js bundle hash change on every Food52 deploy. The CLI's runtime discovery (buildId from NEXT_DATA.buildId, key from regex over the active _app-<hash>.js) handles rotation transparently.; scope_note: Typesense /collections endpoint requires the admin key (search-only key returns 403 there). The CLI does not list collections; it queries the known collection name 'recipes_production_food52_current' directly.
本CLI基于浏览器观测到的流量上下文生成:
  • 捕获覆盖范围:0个API条目,共0个网络条目
  • 协议:ssr_embedded_data(100%置信度)、next_data_json(100%置信度)、rest_json(100%置信度)、schema_org_jsonld(100%置信度)
  • 认证信号:无
  • 生成提示:browser_http_transport
  • 候选命令思路:recipes search; recipes browse; recipes get; tags list; verticals list; articles browse; articles get
  • 注意事项:scope_note: Hotline(/hotline、/hotline/questions/<topic>)仅在pageProps中返回siteSettings,DOM中不渲染问答数据。未认证的只读抓取工具无法获取社区问答内容,已排除在CLI范围之外;scope_note: Shop端点位于shop.food52.com和food52.myshopify.com/api/2025-01/graphql.json,但需要Shopify Storefront API令牌,v1版本暂不支持;scope_note: buildId(浏览器嗅探时为Pq8fQj0nm7uTx90i5u0si)和_app.js包哈希值在每次Food52部署时都会变化。CLI的运行时发现机制(从__NEXT_DATA__.buildId获取buildId,从活跃的_app-<hash>.js中通过正则提取密钥)可自动处理这种变化;scope_note: Typesense /collections端点需要管理员密钥(仅搜索密钥会返回403)。CLI不列出集合,直接查询已知集合名称'recipes_production_food52_current'。

Command Reference

命令参考

articles — Browse and read Food52 stories (articles) from the food and life verticals
  • food52-pp-cli articles browse
    — Browse the latest Food52 articles in a vertical (food, life)
  • food52-pp-cli articles get
    — Get a Food52 article (story) by slug
recipes — Browse Food52 recipes by tag and fetch single recipe details (extracted from Next.js NEXT_DATA embedded in SSR HTML)
  • food52-pp-cli recipes browse
    — Browse Food52 recipes filtered by a tag (e.g. chicken, breakfast, vegetarian)
  • food52-pp-cli recipes get
    — Get full structured details for a single Food52 recipe by slug
Hand-written commands
  • food52-pp-cli recipes search <query>
    — Search Food52 recipes via Typesense (host + search-only key auto-discovered from the public JS bundle)
  • food52-pp-cli recipes top <tag>
    — Show only Test-Kitchen-approved recipes for a tag, with an optional rating floor (--min-rating)
  • food52-pp-cli articles browse-sub <vertical> <subvertical>
    — Browse a Food52 article subvertical (e.g. food baking, food drinks, life travel)
  • food52-pp-cli articles for-recipe <slug>
    — Find synced articles whose relatedReading mentions the given recipe slug
  • food52-pp-cli tags list
    — List Food52 recipe tags discovered from the homepage navigation (chicken, breakfast, vegetarian, dessert, pasta, ...)
  • food52-pp-cli sync recipes <tag> [<tag>...]
    — Pull recipes for one or more tags into the local FTS-indexed store
  • food52-pp-cli sync articles <vertical> [<subvertical>]
    — Pull article listings for a vertical (or subvertical) into the local store
  • food52-pp-cli search <query>
    — Search the local store across recipes and articles (FTS5, offline)
  • food52-pp-cli pantry add <ingredient> [<ingredient>...]
    — Add ingredients to your local pantry
  • food52-pp-cli pantry list
    — Show your local pantry
  • food52-pp-cli pantry remove <ingredient>
    — Remove an ingredient from your pantry
  • food52-pp-cli pantry match
    — Find synced recipes whose ingredients match (or mostly match) your pantry
  • food52-pp-cli scale <slug-or-url>
    — Scale a recipe's ingredients to a different number of servings (parses recipeYield from the recipe's JSON-LD)
  • food52-pp-cli print <slug-or-url>
    — Print a clean cooking-friendly view of a recipe (ingredients + numbered steps, no nav, no images, ready to paste or...
  • food52-pp-cli open <slug-or-url>
    — Print a Food52 recipe or article URL; pass --launch to actually open it in the default browser
articles — 浏览和查看Food52的美食与生活类文章
  • food52-pp-cli articles browse
    — 浏览Food52某一分类(美食、生活)下的最新文章
  • food52-pp-cli articles get
    — 通过slug获取Food52文章详情
recipes — 按标签浏览Food52食谱,并获取单个食谱详情(从SSR HTML中嵌入的Next.js __NEXT_DATA__提取)
  • food52-pp-cli recipes browse
    — 按标签浏览Food52食谱(如chicken、breakfast、vegetarian)
  • food52-pp-cli recipes get
    — 通过slug获取单个Food52食谱的完整结构化详情
手动编写的命令
  • food52-pp-cli recipes search <query>
    — 通过Typesense搜索Food52食谱(主机和仅搜索密钥从公共JS包自动发现)
  • food52-pp-cli recipes top <tag>
    — 显示指定标签下经测试厨房认证的食谱,可设置最低评分门槛(--min-rating)
  • food52-pp-cli articles browse-sub <vertical> <subvertical>
    — 浏览Food52文章子分类(如food baking、food drinks、life travel)
  • food52-pp-cli articles for-recipe <slug>
    — 查找相关推荐中提及指定食谱slug的已同步文章
  • food52-pp-cli tags list
    — 列出从首页导航发现的Food52食谱标签(chicken、breakfast、vegetarian、dessert、pasta等)
  • food52-pp-cli sync recipes <tag> [<tag>...]
    — 将一个或多个标签对应的食谱拉取到本地全文检索索引库中
  • food52-pp-cli sync articles <vertical> [<subvertical>]
    — 将某一分类(或子分类)的文章列表拉取到本地库中
  • food52-pp-cli search <query>
    — 在本地库中搜索食谱和文章(FTS5,离线可用)
  • food52-pp-cli pantry add <ingredient> [<ingredient>...]
    — 向本地pantry添加食材
  • food52-pp-cli pantry list
    — 查看本地pantry
  • food52-pp-cli pantry remove <ingredient>
    — 从本地pantry移除食材
  • food52-pp-cli pantry match
    — 查找食材与本地pantry匹配(或大部分匹配)的已同步食谱
  • food52-pp-cli scale <slug-or-url>
    — 将食谱食材分量调整至不同份数(从食谱的JSON-LD中解析recipeYield)
  • food52-pp-cli print <slug-or-url>
    — 打印适合烹饪的简洁食谱视图(食材+编号步骤,无导航、无图片,可直接粘贴或打印)
  • food52-pp-cli open <slug-or-url>
    — 打印Food52食谱或文章的URL;添加--launch参数可在默认浏览器中打开

Finding the right command

查找合适的命令

When you know what you want to do but not which command does it, ask the CLI directly:
bash
food52-pp-cli which "<capability in your own words>"
which
resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code
0
means at least one match; exit code
2
means no confident match — fall back to
--help
or use a narrower query.
当你知道要做什么但不确定使用哪个命令时,可直接询问CLI:
bash
food52-pp-cli which "<用自己的话描述功能>"
which
命令会将自然语言的功能查询解析为CLI精选功能索引中最匹配的命令。退出码
0
表示至少有一个匹配项;退出码
2
表示无明确匹配项——请使用
--help
或更精确的查询。

Recipes

食谱示例

Find a TK-approved chicken recipe under 5 ingredients

查找测试厨房认证的5种食材以内的鸡肉食谱

bash
food52-pp-cli recipes search chicken --tag 5-ingredients-or-fewer --json --select 'hits.document.title,hits.document.slug,hits.document.testKitchenApproved'
Typesense search filtered by tag, projecting just the fields an agent needs to pick a recipe.
bash
food52-pp-cli recipes search chicken --tag 5-ingredients-or-fewer --json --select 'hits.document.title,hits.document.slug,hits.document.testKitchenApproved'
通过标签过滤的Typesense搜索,仅返回代理选择食谱所需的字段。

Get the full recipe in JSON for downstream meal planning

获取完整的JSON格式食谱用于后续餐食规划

bash
food52-pp-cli recipes get mom-s-japanese-curry-chicken-with-radish-and-cauliflower --json --select 'recipe.title,recipe.recipeDetails.ingredients,recipe.recipeDetails.instructions,recipe.averageRating'
Pulls structured ingredients + steps for piping into a meal planner or shopping list builder.
bash
food52-pp-cli recipes get mom-s-japanese-curry-chicken-with-radish-and-cauliflower --json --select 'recipe.title,recipe.recipeDetails.ingredients,recipe.recipeDetails.instructions,recipe.averageRating'
提取结构化的食材和步骤,可导入餐食规划器或购物清单生成工具。

Build an offline weeknight cookbook in one shot

一键构建离线工作日晚餐食谱集

bash
food52-pp-cli sync recipes weeknight quick-and-easy 30-minutes-or-fewer && food52-pp-cli search 'weeknight' --json
Pulls three high-signal tags into the local store, then queries via FTS5 — works on a plane.
bash
food52-pp-cli sync recipes weeknight quick-and-easy 30-minutes-or-fewer && food52-pp-cli search 'weeknight' --json
将三个高价值标签的食谱拉取到本地库,然后通过FTS5查询——可在飞机等离线环境使用。

What can I make right now?

现在我能做什么菜?

bash
food52-pp-cli pantry match --min-coverage 0.6 --json --select 'matches.title,matches.coverage,matches.missing_ingredients'
Joins your local pantry against every synced recipe, returning the ones you can mostly make.
bash
food52-pp-cli pantry match --min-coverage 0.6 --json --select 'matches.title,matches.coverage,matches.missing_ingredients'
将本地pantry与所有已同步食谱匹配,返回大部分食材都具备的食谱。

Auth Setup

认证设置

No authentication required.
Run
food52-pp-cli doctor
to verify setup.
无需认证。
运行
food52-pp-cli doctor
验证设置是否正确。

Agent Mode

代理模式

Add
--agent
to any command. Expands to:
--json --compact --no-input --no-color --yes
.
  • Pipeable — JSON on stdout, errors on stderr
  • Filterable
    --select
    keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
    bash
    food52-pp-cli articles get best-mothers-day-gift-ideas --agent --select id,name,status
  • Previewable
    --dry-run
    shows the request without sending
  • Offline-friendly — sync/search commands can use the local SQLite store when available
  • Non-interactive — never prompts, every input is a flag
  • Read-only — do not use this CLI for create, update, delete, publish, comment, upvote, invite, order, send, or other mutating requests
在任何命令后添加
--agent
参数,等效于:
--json --compact --no-input --no-color --yes
  • 可管道传输 — 标准输出为JSON,错误信息输出到标准错误
  • 可过滤
    --select
    参数保留指定字段。点路径可深入嵌套结构;数组遍历每个元素。对于冗长的API,这是保持上下文精简的关键:
    bash
    food52-pp-cli articles get best-mothers-day-gift-ideas --agent --select id,name,status
  • 可预览
    --dry-run
    参数显示请求但不发送
  • 离线友好 — 同步/搜索命令可使用本地SQLite存储(若可用)
  • 非交互式 — 从不提示,所有输入均通过标志参数提供
  • 只读 — 请勿使用该CLI执行创建、更新、删除、发布、评论、点赞、邀请、订购、发送或其他修改状态的请求

Response envelope

响应信封

Commands that read from the local store or the API wrap output in a provenance envelope:
json
{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}
Parse
.results
for data and
.meta.source
to know whether it's live or local. A human-readable
N results (live)
summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.
从本地存储或API读取数据的命令会将输出包装在来源信封中:
json
{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}
解析
.results
获取数据,
.meta.source
可判断数据来自在线还是本地。仅当标准输出为终端时,才会将人类可读的
N results (live)
摘要输出到标准错误;管道/代理消费者仅会在标准输出获取纯JSON。

Agent Feedback

代理反馈

When you (or the agent) notice something off about this CLI, record it:
food52-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
food52-pp-cli feedback --stdin < notes.txt
food52-pp-cli feedback list --json --limit 10
Entries are stored locally at
~/.food52-pp-cli/feedback.jsonl
. They are never POSTed unless
FOOD52_FEEDBACK_ENDPOINT
is set AND either
--send
is passed or
FOOD52_FEEDBACK_AUTO_SEND=true
. Default behavior is local-only.
Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当你(或代理)发现该CLI存在问题时,可记录反馈:
food52-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
food52-pp-cli feedback --stdin < notes.txt
food52-pp-cli feedback list --json --limit 10
反馈条目存储在本地
~/.food52-pp-cli/feedback.jsonl
文件中。仅当设置了
FOOD52_FEEDBACK_ENDPOINT
且添加了
--send
参数或设置
FOOD52_FEEDBACK_AUTO_SEND=true
时,才会发送反馈。默认仅本地存储。
请记录让你感到意外的内容,而非正式的bug报告。简短、具体、单行描述:这样的反馈才更有价值。

Output Delivery

输出交付

Every command accepts
--deliver <sink>
. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
SinkEffect
stdout
Default; write to stdout only
file:<path>
Atomically write output to
<path>
(tmp + rename)
webhook:<url>
POST the output body to the URL (
application/json
or
application/x-ndjson
when
--compact
)
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
每个命令都支持
--deliver <sink>
参数。输出会发送到指定的接收端,同时(或替代)输出到标准输出,因此代理无需手动管道即可路由命令结果。支持三种接收端:
接收端效果
stdout
默认;仅输出到标准输出
file:<path>
原子性地将输出写入
<path>
(先写入临时文件再重命名)
webhook:<url>
将输出主体POST到指定URL(
application/json
格式,若使用
--compact
则为
application/x-ndjson
格式)
未知格式会被拒绝,并返回包含支持格式的结构化错误。Webhook失败会返回非零退出码,并在标准错误中记录URL和HTTP状态码。

Named Profiles

命名配置文件

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
food52-pp-cli profile save briefing --json
food52-pp-cli --profile briefing articles get best-mothers-day-gift-ideas
food52-pp-cli profile list --json
food52-pp-cli profile show briefing
food52-pp-cli profile delete briefing --yes
Explicit flags always win over profile values; profile values win over defaults.
agent-context
lists all available profiles under
available_profiles
so introspecting agents discover them at runtime.
配置文件是一组保存的标志值,可在多次调用中复用。当定时代理每次运行都使用相同配置调用同一命令时使用此功能——即HeyGen的“Beacon”模式。
food52-pp-cli profile save briefing --json
food52-pp-cli --profile briefing articles get best-mothers-day-gift-ideas
food52-pp-cli profile list --json
food52-pp-cli profile show briefing
food52-pp-cli profile delete briefing --yes
显式标志参数优先级高于配置文件值;配置文件值优先级高于默认值。
agent-context
会在
available_profiles
下列出所有可用配置文件,以便自省代理在运行时发现它们。

Exit Codes

退出码

CodeMeaning
0Success
2Usage error (wrong arguments)
3Resource not found
5API error (upstream issue)
7Rate limited (wait and retry)
10Config error
代码含义
0成功
2使用错误(参数错误)
3资源未找到
5API错误(上游问题)
7请求受限(请等待后重试)
10配置错误

Argument Parsing

参数解析

Parse
$ARGUMENTS
:
  1. Empty,
    help
    , or
    --help
    → show
    food52-pp-cli --help
    output
  2. Starts with
    install
    → ends with
    mcp
    → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with
    --agent
    )
解析
$ARGUMENTS
  1. 为空、
    help
    --help
    → 显示
    food52-pp-cli --help
    输出
  2. install
    开头
    → 若结尾为
    mcp
    → 安装MCP;否则 → 参考上方前提条件中的安装步骤
  3. 其他情况 → 直接使用(添加
    --agent
    参数执行CLI命令)

MCP Server Installation

MCP服务器安装

  1. Install the MCP server:
    bash
    go install github.com/mvanhorn/printing-press-library/library/food-and-dining/food52/cmd/food52-pp-mcp@latest
  2. Register with Claude Code:
    bash
    claude mcp add food52-pp-mcp -- food52-pp-mcp
  3. Verify:
    claude mcp list
  1. 安装MCP服务器:
    bash
    go install github.com/mvanhorn/printing-press-library/library/food-and-dining/food52/cmd/food52-pp-mcp@latest
  2. 注册到Claude Code:
    bash
    claude mcp add food52-pp-mcp -- food52-pp-mcp
  3. 验证:
    claude mcp list

Direct Use

直接使用

  1. Check if installed:
    which food52-pp-cli
    If not found, offer to install (see Prerequisites at the top of this skill).
  2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  3. Execute with the
    --agent
    flag:
    bash
    food52-pp-cli <command> [subcommand] [args] --agent
  4. If ambiguous, drill into subcommand help:
    food52-pp-cli <command> --help
    .
  1. 检查是否安装:
    which food52-pp-cli
    若未找到,提供安装选项(参考顶部前提条件中的安装步骤)。
  2. 将用户查询与上述独特功能和命令参考中的最佳命令匹配。
  3. 添加
    --agent
    参数执行命令:
    bash
    food52-pp-cli <command> [subcommand] [args] --agent
  4. 若存在歧义,查看子命令帮助:
    food52-pp-cli <command> --help