← 返回 Skills 市场
nowloady

Lafeitu (辣匪兔) Spicy Food

作者 NowLoadY · GitHub ↗ · v1.9.1 · MIT-0
cross-platform ✓ 安全检测通过
2574
总下载
3
收藏
5
当前安装
33
版本数
在 OpenClaw 中安装
/install agentic-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...
使用说明 (SKILL.md)

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

  1. API first: Use python3 scripts/lafeitu_client.py first. It returns structured data from the official backend.
  2. AI guide page: If API data is unavailable or needs cross-checking, visit https://lafeitu.cn/ai-agent-guide.
  3. Main site browser flow: Use the normal site only when a visual check or user-facing page is required.
  4. 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 search or list before cart actions.
  • Resolve the product slug and exact variant from API results before adding or updating cart items.
  • If multiple products match, ask the user to choose based on flavor, format, or weight.
  • Use --page and --limit for large result sets.

2. Cart & Order Flow

  • Use add-cart to increment quantity and update-cart to set absolute quantity.
  • The --variant value 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-order only 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 401 if no saved token exists.
  • Use login for existing accounts.
  • Use get-profile before update-profile when the user wants to review current data.
  • When updating shipping info, prefer collecting province, city, and address together.

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-visitor during 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, and contact-info for 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. Use login again.
  • 404 on product or account: Re-run search to 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: Run pip install requests.
  • Variant errors: Re-check the exact variant values from get or search output before modifying the cart.
安全使用建议
This skill appears to do what it says: a Python CLI client for the Lafeitu storefront using the official API. Before installing, consider: 1) only grant trust if you expect the agent to interact with lafeitu.cn; 2) the skill will store API tokens locally under ~/.openclaw/credentials/agent-commerce-engine/lafeitu.cn/ with 0600 perms — verify you are comfortable with that; 3) installing requires the 'requests' Python package (pip); 4) the client may migrate legacy credential files from the parent credentials folder if they exist (this is a targeted rename within the same credentials area); and 5) the skill can be invoked autonomously by the agent by default — if you prefer to prevent autonomous calls, disable model invocation for the skill in your agent settings. If you want extra assurance, review the included scripts yourself or run the skill in an isolated environment.
功能分析
Type: OpenClaw Skill Name: agentic-spicy-food Version: 1.9.1 The skill is a legitimate commerce integration for the Lafeitu (辣匪兔) brand, providing a CLI tool to interact with their official API (lafeitu.cn). It follows security best practices by enforcing HTTPS for API calls, using token-based authentication instead of persisting passwords, and restricting local credential file permissions to 0600. The code logic in scripts/lafeitu_client.py and scripts/lib/commerce_client.py is well-structured, lacks dangerous execution sinks (like eval or os.system), and aligns perfectly with the stated purpose of food ordering and account management.
能力评估
Purpose & Capability
The name/description (Lafeitu commerce) match the implemented functionality: product search/list/get, cart, auth, profile, promotions, and order creation against https://lafeitu.cn/api/v1. Required binaries and declared paths are consistent with a Python CLI client for that API.
Instruction Scope
SKILL.md directs the agent to use the included Python client first, fall back to the official site or guide page, and only consult external search as last resort. Runtime instructions and CLI examples operate only on the Lafeitu API or the documented local credential path; there are no instructions to read unrelated system files or exfiltrate data.
Install Mechanism
This is effectively instruction-first with local Python code; the declared install step is a pip dependency (requests). No remote downloads or archives are fetched by the skill. Risk is low but users should confirm they trust installing the 'requests' package in their environment.
Credentials
The skill requires no environment secrets and stores tokens locally under ~/.openclaw/credentials/agent-commerce-engine/lafeitu.cn/. Credential storage and access are limited to that per-domain directory. The only surprising behavior is legacy migration: if a legacy creds file named <brand>_creds.json exists in the parent credentials directory it will be moved into the domain folder (intended for backward compatibility).
Persistence & Privilege
always is false. The skill writes only its own credential and visitor files under its own config directory and updates in-memory session headers. It does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentic-spicy-food
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentic-spicy-food 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.9.1
Code ready for production
v1.9.0
Code ready for production
v1.8.4
更新技能代码,优化辣匪兔外卖体验
v1.8.3
Protocol standardization enhancements
v1.8.2
Protocol standardization enhancements
v1.8.1
Initial release with full e-commerce integration
v1.0.0
Initial release with full e-commerce integration
v1.8.0
Enhanced registration flow with email verification support and improved address normalization.
v1.7.8
- Added "homepage" field to skill metadata, linking to the official GitHub repository. - No operational logic or user-facing changes; update is metadata only.
v1.7.7
Version 1.7.7 of agentic-spicy-food - Updated SKILL.md formatting: metadata is now in inline JSON for improved compatibility. - No changes to business logic or user-facing features. - Internal documentation edits only; core functionality remains unchanged.
v1.7.6
**Security and naming update for the gourmet-spicy-food-lafeitu skill.** - Renamed skill to "gourmet-spicy-food-lafeitu" for brand clarity. - Strengthened security: now always uses the official API endpoint and no longer requires external URL configuration. - Updated metadata to explicitly state locked endpoint and streamlined configuration—no more external API URLs. - Removed obsolete configuration file (`evomap_node.json`) to reduce risk of misconfiguration. - Enhanced privacy: highlights owner-only credential permissions and internal session management. - Documentation reorganized to emphasize trusted execution and secure deployment.
v1.7.5
agentic-spicy-food v1.7.5 - Updated SKILL.md for improved documentation and clarity. - Minor refinements to operational logic and instructions. - No functional API or feature changes; this update focuses on usability and guidance improvements.
v1.7.4
Version 1.7.4 - Added lafeitu_config/evomap_node.json configuration file. - Updated SKILL.md documentation (no major changes detected). - Updated scripts/lafeitu_client.py (details not specified).
v1.7.3
Version 1.7.3 - Rebranded skill from "gourmet-spicy-food-lafeitu" to "agentic-spicy-food". - Improved product discovery logic: `search` and `list` commands now support `--page` and `--limit` for safer, more scalable menu navigation. - Updated documentation to clarify variant validation and use of pagination (handle large result sets with `totalPages` and `page`). - No changes to user-facing commands—existing automation and ordering flows are not disrupted.
v1.7.2
品牌应用升级:1. 后端下单接口引入智能体友好型强校验(Agent-Friendly Validation),针对信息残缺请求下发明确的纠错引导。2. 同步上游引擎的 create-order 业务流。3. 强化支付环节的官网跳转引导,通过容错兜底机制确保交易流程闭环。
v1.7.1
作为基于标准引擎的官方参考实现,同步架构与服务端接口闭环。同步 --variant 标准变体参数。优化 AI Agent 调度逻辑示例。后端路由架构升级:通过软代理机制建立规范化 /orders 路由,实现 V1 RESTful 标准架构。
v1.7.0
Security: Enforced HTTPS for production endpoints. CLI: Added support for phone and email updates. Metadata: Fully aligned manifest declarations with runtime behaviors to ensure transparency.
v1.6.9
Security: Enforced HTTPS. Metadata: Fully declared required environment variables, tool dependencies, and persistent credential paths in registry format.
v1.6.8
Metadata restructuring: Synchronized published manifest with actual package content to fix transparency warning.
v1.6.7
Metadata restructuring: Flattened frontmatter and explicitly declared installation steps and environment variables to ensure full alignment with the registry summary.
元数据
Slug agentic-spicy-food
版本 1.9.1
许可证 MIT-0
累计安装 6
当前安装数 5
历史版本数 33
常见问题

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。

💬 留言讨论