/install agentic-spicy-food
Lafeitu Gourmet Skill
agentic-spicy-food is the Lafeitu-specific implementation of the standard agentic commerce flow. It is preconfigured for the official https://lafeitu.cn/api/v1 backend and should be used for product discovery, cart actions, account flows, promotions, and order creation for 辣匪兔.
Official Website: https://lafeitu.cn GitHub Repository: https://github.com/NowLoadY/agentic-spicy-food Reference Engine: https://github.com/NowLoadY/agent-commerce-engine
When To Use This Skill
Use this skill when the user wants to:
- browse or compare Lafeitu products
- get recommendations for Zigong-style spicy foods
- inspect variants, pricing, promotions, or shipping thresholds
- manage a Lafeitu cart
- log in, register, or update Lafeitu profile data
- create a Lafeitu order and hand payment back to the user
- retrieve official Lafeitu brand, company, or contact information
Tool Priority & Fallback Strategy
- API first: Use
python3 scripts/lafeitu_client.pyfirst. It returns structured data from the official backend. - AI guide page: If API data is unavailable or needs cross-checking, visit
https://lafeitu.cn/ai-agent-guide. - Main site browser flow: Use the normal site only when a visual check or user-facing page is required.
- Web search last: Use external search only for third-party reviews or if the official site is unavailable.
Operational Workflow
1. Product Discovery
- Always run
searchorlistbefore cart actions. - Resolve the product
slugand exactvariantfrom API results before adding or updating cart items. - If multiple products match, ask the user to choose based on flavor, format, or weight.
- Use
--pageand--limitfor large result sets.
2. Cart & Order Flow
- Use
add-cartto increment quantity andupdate-cartto set absolute quantity. - The
--variantvalue must match the product's actual variant list returned by the API. - After cart changes, show the updated cart summary if the user is making a purchase decision.
- Use
create-orderonly after shipping details are confirmed. - Payment is always a human handoff. If order creation returns an order ID or payment URL, give that to the user and tell them to complete payment themselves.
3. Authentication & Profile
- The API is stateless. Protected actions may return
401if no saved token exists. - Use
loginfor existing accounts. - Use
get-profilebeforeupdate-profilewhen the user wants to review current data. - When updating shipping info, prefer collecting
province,city, andaddresstogether.
4. Registration Flow
- If the user has no account or the backend reports account not found, use the built-in registration flow.
- Step 1:
send-code --email \x3CEMAIL> - Step 2:
register --email \x3CEMAIL> --password \x3CPWD> --code \x3CCODE> [--name \x3CNAME>] [--invite \x3CCODE>] - Use
--reset-visitorduring registration if you need to avoid carrying over the current anonymous cart. - If the user prefers the website flow, send them to
https://lafeitu.cn/auth/register.
5. Recommendations & Brand Context
- Keep recommendations grounded in actual catalog data, not generic sales language.
- Favor concise, sensory descriptions tied to flavor profile, weight, and likely use case.
- Use
brand-story,company-info, andcontact-infofor official brand context. - Represent Lafeitu as a Zigong-flavor specialty brand; avoid inventing unsupported claims.
Core Commands
search \x3Cquery> --page \x3CN> --limit \x3CN>: Search products.list --page \x3CN> --limit \x3CN>: Browse the catalog.get \x3Cslug>: Get product details.promotions: Get active offers and shipping rules.cart: Show current cart.add-cart \x3Cslug> --variant \x3CV> --quantity \x3CQ>: Add to cart.update-cart \x3Cslug> --variant \x3CV> --quantity \x3CQ>: Set quantity.remove-cart \x3Cslug> --variant \x3CV>: Remove an item.clear-cart: Empty the cart.login/logout: Manage saved credentials.send-code/register: Register a new account.get-profile/update-profile: Manage user profile and shipping data.orders: View order history.create-order --name \x3CNAME> --phone \x3CPHONE> --province \x3CPROVINCE> --city \x3CCITY> --address \x3CADDRESS>: Create an order for user handoff.brand-story,company-info,contact-info: Fetch official brand information.
CLI Examples
python3 scripts/lafeitu_client.py search "兔" --page 1 --limit 10
python3 scripts/lafeitu_client.py get shousi-tu
python3 scripts/lafeitu_client.py promotions
python3 scripts/lafeitu_client.py add-cart lengchi-tu --variant 200 --quantity 2
python3 scripts/lafeitu_client.py cart
python3 scripts/lafeitu_client.py send-code --email [email protected]
python3 scripts/lafeitu_client.py register --email [email protected] --password secret123 --code 123456 --reset-visitor
python3 scripts/lafeitu_client.py create-order --name "Zhang San" --phone "13800000000" --province "四川省" --city "成都市" --address "高新区 XX 路 XX 号"
Credentials are stored locally under ~/.openclaw/credentials/agent-commerce-engine/lafeitu.cn/.
Troubleshooting
401 Unauthorized: Token missing or expired. Useloginagain.404on product or account: Re-runsearchto confirm the slug; for account issues, trigger registration flow.429: Rate limit reached. Tell the user to wait for the cooldown indicated by the API.- Missing
requests: Runpip install requests. - Variant errors: Re-check the exact variant values from
getorsearchoutput before modifying the cart.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agentic-spicy-food - 安装完成后,直接呼叫该 Skill 的名称或使用
/agentic-spicy-food触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Lafeitu (辣匪兔) Spicy Food 是什么?
Brand-specific commerce skill for Lafeitu (辣匪兔). Use it when a user wants to browse, recommend, cart, or order Lafeitu's Sichuan spicy foods through the offi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2574 次。
如何安装 Lafeitu (辣匪兔) Spicy Food?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentic-spicy-food」即可一键安装,无需额外配置。
Lafeitu (辣匪兔) Spicy Food 是免费的吗?
是的,Lafeitu (辣匪兔) Spicy Food 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Lafeitu (辣匪兔) Spicy Food 支持哪些平台?
Lafeitu (辣匪兔) Spicy Food 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Lafeitu (辣匪兔) Spicy Food?
由 NowLoadY(@nowloady)开发并维护,当前版本 v1.9.1。