← 返回 Skills 市场
johnwhoyou

Foodpanda.ph Ordering

作者 John Carlo Joyo · GitHub ↗ · v1.1.0
cross-platform ⚠ suspicious
350
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install foodpanda-order
功能描述
Order food from foodpanda.ph using the foodpanda-cli command-line tool. Use when the user wants to search restaurants, browse menus, build a cart, or place a...
使用说明 (SKILL.md)

foodpanda-cli

A command-line tool for ordering food delivery from foodpanda.ph. All commands output structured JSON to stdout. Designed for the Philippines market only.

Prerequisites & Installation

Ensure Node.js 18+ and npm are available, then install globally:

npm install -g foodpanda-cli

Verify the installation:

foodpanda-cli --version

Initial Setup (One-Time)

Before using any other commands, complete these two setup steps:

1. Set delivery location

Provide the user's delivery coordinates (latitude and longitude in the Philippines):

foodpanda-cli location \x3Clatitude> \x3Clongitude>

Example:

foodpanda-cli location 14.5995 120.9842
# => {"success": true, "latitude": 14.5995, "longitude": 120.9842}

2. Log in

Opens a browser window for the user to log in to their foodpanda account. The session token is captured automatically. This step requires user interaction.

foodpanda-cli login

An optional --timeout \x3Cseconds> flag controls how long to wait (default: 120s).

Command Reference

Search & Discovery

Search restaurants:

foodpanda-cli search \x3Cquery> [--cuisine \x3Ctype>] [--limit \x3Cn>]

Returns an array of matching restaurants with id (vendor code), name, cuisine, rating, delivery_fee, delivery_time, is_open, and optionally chain_code.

List chain outlets:

foodpanda-cli outlets \x3Cchain_code>

Lists all branches of a restaurant chain. Use the chain_code from search results.

Get restaurant details:

foodpanda-cli restaurant \x3Cvendor_code>

Returns full details: address, description, opening hours, delivery availability.

Menu & Items

Browse menu:

foodpanda-cli menu \x3Cvendor_code>

Returns the menu organized by category. Each item includes code, name, price, and description. Use item codes for adding to cart.

Get item details (toppings & variations):

foodpanda-cli item \x3Cvendor_code> \x3Cproduct_code>

Returns full item details including topping_groups (with options, prices, and min/max quantities) and variation info. Always check this before adding items with customizations.

Cart Management

Add items to cart:

foodpanda-cli add \x3Cvendor_code> --items '\x3Cjson_array>'

The --items flag takes a JSON array. Each element:

[
  {
    "item_id": "product-code",
    "quantity": 1,
    "topping_ids": ["101", "205"],
    "special_instructions": "No onions"
  }
]

Only item_id and quantity are required. topping_ids and special_instructions are optional.

View cart:

foodpanda-cli cart

Returns the current cart with all items, quantities, prices, fees, and total. Returns {"message": "Cart is empty."} if empty.

Remove item from cart:

foodpanda-cli remove \x3Ccart_item_id>

Remove an item by its cart_item_id (e.g., cart-1, cart-2). These IDs are shown in cart output.

Ordering

Preview order:

foodpanda-cli preview

Returns the full order preview: cart contents, selected delivery address, available payment methods, and totals. Always run this before placing an order.

Place order:

foodpanda-cli order --payment \x3Cmethod> [--instructions \x3Ctext>]

Places the order. Returns order_id, status, estimated_delivery_time, and total.

Currently only payment_on_delivery (Cash on Delivery) is supported as the payment method.

Recommended Workflow

Follow these steps when the user wants to order food:

  1. Check setup — Ensure location and login are configured. If the user hasn't set these up, run location and login first.
  2. Search — Ask the user what they want to eat, then run search to find restaurants.
  3. Present options — Show the user matching restaurants with names, cuisines, ratings, and delivery times.
  4. Browse menu — Once the user picks a restaurant, run menu to see available items.
  5. Check item details — If the user wants customizations, run item to see available toppings and variations.
  6. Build cart — Use add to add items. Show the user the cart after each addition.
  7. Preview — Run preview to show the final order summary with delivery address and total.
  8. Confirm and order — ONLY after the user explicitly confirms, run order --payment payment_on_delivery.

Important Rules

  • ALWAYS confirm with the user before running the order command. This places a real order with real money. Never run it without explicit user approval.
  • Payment: Only payment_on_delivery (Cash on Delivery) works. Do not attempt other payment methods.
  • Cart switching: Adding items from a different restaurant clears the existing cart. Warn the user before doing this.
  • Errors: All errors are returned as {"error": "message"}. If you get an authentication error, prompt the user to run login again.
  • Location required: All commands except location and login require a delivery location to be set first.
  • Philippines only: This tool only works with foodpanda.ph for delivery addresses in the Philippines.

Common Patterns

Filtering by cuisine

foodpanda-cli search "pizza" --cuisine "Italian" --limit 5

Ordering with toppings

  1. Get item details to find topping IDs:
    foodpanda-cli item p7nl ct-36-pd-1673
    
  2. Add with selected toppings:
    foodpanda-cli add p7nl --items '[{"item_id":"ct-36-pd-1673","quantity":1,"topping_ids":["101","205"]}]'
    

Finding a specific branch of a chain

  1. Search returns chain_code for chain restaurants
  2. List all branches:
    foodpanda-cli outlets cg0ep
    
  3. Pick the closest/preferred branch and use its vendor code for menu and ordering
安全使用建议
This skill appears to be what it claims (a foodpanda CLI workflow), but exercise caution before installing and running it: - The SKILL.md requires Node.js/npm and tells you to run 'npm install -g foodpanda-cli', yet the registry metadata did not declare these prerequisites — that's an inconsistency to be aware of. - Installing an unverified npm package globally can run arbitrary code on your machine. Look up 'foodpanda-cli' on the npm registry and verify the package owner, homepage, repository, and recent activity before installing. Prefer packages with a public repo and clear maintainer identity. - The tool opens a browser for login and 'captures the session token automatically.' Confirm where the token is stored (local file/OS keyring) and that you trust the package to handle credentials safely. - Because there is no homepage/source in the skill metadata, try to find the package on npmjs.com or GitHub. If you cannot verify the publisher or source code, consider running it in a sandboxed environment or avoid installing it. - Always follow the skill's own rule: require explicit user confirmation before running the final 'order' command to avoid accidental purchases. If you can verify the npm package and its repository, the risk is lower. If you cannot verify it, treat this skill as untrusted and avoid installing globally on a primary machine.
功能分析
Type: OpenClaw Skill Name: foodpanda-order Version: 1.1.0 The skill requires the global installation of an unverified third-party npm package (foodpanda-cli) and handles sensitive session tokens through a browser-based login process. While the instructions in SKILL.md include safety warnings such as requiring user confirmation before placing orders, the reliance on an external CLI tool for financial transactions and account access without a verified source or official affiliation with Foodpanda is a high-risk pattern.
能力评估
Purpose & Capability
The SKILL.md clearly documents a foodpanda-cli workflow and all commands align with the described purpose. However, the registry metadata lists no required binaries while the SKILL.md explicitly requires Node.js 18+ and npm and instructs the user to run 'npm install -g foodpanda-cli' — a mismatch between declared requirements and the actual instructions.
Instruction Scope
Instructions stay within ordering-related tasks (location, search, menu, cart, preview, order). They also instruct to open a browser for login and state 'The session token is captured automatically.' Capturing session tokens is expected for CLI OAuth flows, but it is sensitive behavior and should be explicitly validated by the user (verify how/where the token is stored and that the package is trustworthy).
Install Mechanism
There is no formal install spec in the skill bundle; instead the SKILL.md tells the user to run 'npm install -g foodpanda-cli'. Installing an npm package globally can execute arbitrary code on the host. This is a standard distribution method but the package source (no homepage or repo listed in the skill metadata) is unverified, increasing risk.
Credentials
The skill does not request environment variables, credentials, or config paths beyond normal CLI use. No excessive or unrelated secrets are declared.
Persistence & Privilege
The skill is instruction-only, has always:false, and does not request persistent platform privileges. It does require local execution (Node/npm and global install) but does not modify other skills or system-wide agent settings according to the provided metadata.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install foodpanda-order
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /foodpanda-order 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
foodpanda-cli 1.1.0 introduces comprehensive skill documentation and usage guidance. - Adds detailed SKILL.md with command references, setup steps, workflow, and common usage patterns. - Clarifies command requirements and output formats. - Documents rules for user confirmation, payment methods, and cart behavior. - Emphasizes compatibility (Node.js 18+, npm, shell access) and Philippines-only support. - Provides examples for searching, menu browsing, item customization, and chain outlet selection.
元数据
Slug foodpanda-order
版本 1.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Foodpanda.ph Ordering 是什么?

Order food from foodpanda.ph using the foodpanda-cli command-line tool. Use when the user wants to search restaurants, browse menus, build a cart, or place a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 350 次。

如何安装 Foodpanda.ph Ordering?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install foodpanda-order」即可一键安装,无需额外配置。

Foodpanda.ph Ordering 是免费的吗?

是的,Foodpanda.ph Ordering 完全免费(开源免费),可自由下载、安装和使用。

Foodpanda.ph Ordering 支持哪些平台?

Foodpanda.ph Ordering 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Foodpanda.ph Ordering?

由 John Carlo Joyo(@johnwhoyou)开发并维护,当前版本 v1.1.0。

💬 留言讨论