openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Swiggy_T1

Order food, groceries, and book restaurants in India via Swiggy's MCP servers. Food delivery, Instamart groceries, and Dineout restaurant bookings with safety-first confirmation workflow.

开发与 DevOps

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.1

统计:⭐ 1 · 1.7k · 0 current installs · 0 all-time installs

1

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :可疑

Package:aditya4206360-prog/sr1

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :可疑

OpenClaw 评估

The skill's described purpose (Swiggy ordering via MCP) is plausible, but there are several inconsistencies and missing artifacts (claimed CLI/binary not included, undeclared file reads, vague auth/token handling) that make the package suspect until the missing pieces are explained or inspected.

目的

Name/description, package.json MCP endpoints, and CLI commands all align with a Swiggy ordering skill. However the SKILL.md repeatedly asserts a bundled `swiggy` CLI and Node.js wrapper while the package files provided do not include the CLI binary or any runtime code (no bin/swiggy present). That mismatch is an important incoherence.

说明范围

Runtime instructions ask the agent to run a local CLI (npm link => global `swiggy`) and to map address aliases from USER.md; they also instruct appending order history to memory/swiggy-orders.json. SKILL.md references reading USER.md and writing memory/swiggy-orders.json but declares no required config paths. The instruction to 'map to actual addresses from USER.md' implies reading a user file not declared in requirements and could access pers…

安装机制

No formal install spec (instruction-only) — normally lower risk — but SKILL.md and package.json claim a CLI that must be linked/installed. The repository as provided lacks the claimed executable (bin/swiggy) and any code files, which is inconsistent and suspicious (either the package is incomplete or intentionally missing runtime artifacts).

证书

The skill requests no environment variables or credentials in metadata, which is reasonable because auth is delegated to the `mcporter` skill via OAuth. However OAuth/token handling is not described (where tokens are stored, what scopes are requested), and the skill will interact with network endpoints (mcp.swiggy.com) and write order logs — the lack of declared config paths for any stored tokens or memory file is an omission worth questioning.

持久

The skill is not always-enabled and does not request elevated platform privileges. It does instruct writing order logs to memory/swiggy-orders.json (persistence within the agent's storage) which is reasonable for an order history but should be confirmed where that storage lives. No modification of other skills or system-wide settings is requested.

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Swiggy_T1」。简介:Order food, groceries, and book restaurants in India via Swiggy's MCP servers. …。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/aditya4206360-prog/sr1/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: swiggy
description: "Order food, groceries, and book restaurants in India via Swiggy's MCP servers. Food delivery, Instamart groceries, and Dineout restaurant bookings with safety-first confirmation workflow."
---

# Swiggy Skill

Order food, groceries, and book restaurants in India via Swiggy's MCP servers.

## Installation

The skill includes a `swiggy` CLI binary. After installing the skill:
```bash
cd skills/swiggy
npm link
```

This creates a global `swiggy` command. Verify with: `which swiggy`

## When to Use

- Food delivery: "Order biryani", "What's open late?", "Team lunch for 8"
- Groceries (Instamart): "Get eggs and milk", "Weekly groceries", "Recipe ingredients"
- Restaurant bookings (Dineout): "Book dinner Saturday 8pm", "Italian in Koramangala"

## Available Commands

### Food Delivery

```bash
# Search restaurants
swiggy food search "biryani" --location "Koramangala, Bengaluru"

# Get menu
swiggy food menu <restaurant-id>

# Cart management
swiggy food cart add <item-id> --quantity 2
swiggy food cart show
swiggy food cart clear

# Order (requires confirmation)
swiggy food order --address "home" --confirm
```

### Instamart (Groceries)

```bash
# Search products
swiggy im search "eggs" --location "HSR Layout, Bengaluru"

# Cart operations
swiggy im cart add <item-id> --quantity 3
swiggy im cart show
swiggy im cart clear

# Checkout (requires confirmation)
swiggy im order --address "home" --confirm
```

### Dineout (Restaurant Bookings)

```bash
# Search restaurants
swiggy dineout search "Italian Indiranagar"

# Get details
swiggy dineout details <restaurant-id>

# Check availability
swiggy dineout slots <restaurant-id> --date 2026-01-30

# Book table (free bookings only, requires confirmation)
swiggy dineout book <restaurant-id> --date 2026-01-30 --time 20:00 --guests 2 --confirm
```

## CRITICAL: Safety Rules

### ⚠️ NEVER Auto-Order
**ALWAYS get explicit confirmation before placing orders.**

1. **Show cart preview first:**
   - All items with quantities and prices
   - Total amount
   - Delivery address
   - Estimated delivery time (food/groceries)

2. **Ask for confirmation:**
   ```
   Ready to order:
   - 2x Chicken Biryani (₹500)
   - 1x Raita (₹60)
   Total: ₹560 + delivery
   Deliver to: Home (HSR Layout)
   ETA: 30-40 mins
   
   Confirm order? (yes/no)
   ```

3. **Only after user says YES:**
   - Run the order command with `--confirm` flag
   - Log to `memory/swiggy-orders.json`

### COD Warning
Swiggy MCP currently supports **Cash on Delivery only**. Orders **cannot be cancelled** once placed. Always double-check before confirming.

### Address Handling
- User may say "home", "office", etc. - map to actual addresses from USER.md or ask
- Always confirm delivery location in preview
- For Dineout, location is used for search only (not delivery)

## Workflow Examples

### Food Order Flow
```bash
# 1. Search
swiggy food search "biryani near Koramangala"

# 2. Browse menu (use restaurant ID from search)
swiggy food menu rest_12345

# 3. Add to cart
swiggy food cart add item_67890 --quantity 1

# 4. Preview cart
swiggy food cart show

# 5. Show preview to user, ask confirmation

# 6. If confirmed, order
swiggy food order --address "HSR Layout, Sector 2, Bengaluru" --confirm
```

### Grocery Shopping Flow
```bash
# 1. Search items
swiggy im search "eggs" --location "Koramangala"
swiggy im search "milk" --location "Koramangala"

# 2. Add to cart
swiggy im cart add item_11111 --quantity 2
swiggy im cart add item_22222 --quantity 1

# 3. Preview
swiggy im cart show

# 4. Confirm with user

# 5. Checkout
swiggy im order --address "Koramangala, Bengaluru" --confirm
```

### Restaurant Booking Flow
```bash
# 1. Search
swiggy dineout search "Italian Indiranagar"

# 2. Check details
swiggy dineout details rest_99999

# 3. Check slots
swiggy dineout slots rest_99999 --date 2026-01-30

# 4. Show options to user, confirm choice

# 5. Book
swiggy dineout book rest_99999 --date 2026-01-30 --time 20:00 --guests 2 --confirm
```

## Error Handling

- **No results:** Suggest broader search or different location
- **Out of stock:** Show alternatives
- **No slots available:** Suggest different times/dates
- **Authentication required:** User needs to authenticate via OAuth (handled by MCP)

## Tips

- For team orders: build cart iteratively, ask for preferences
- For budget shopping: filter results by price, show running total
- For recipe-to-cart: search each ingredient, add progressively
- For late night: mention delivery time in search criteria

## Order Logging

After successful order, append to `memory/swiggy-orders.json`:
```json
{
  "timestamp": "2026-01-28T21:16:00+05:30",
  "type": "food",
  "items": [...],
  "total": "₹560",
  "address": "HSR Layout",
  "orderId": "..."
}
```

## Authentication

Swiggy MCP uses OAuth. First use will trigger auth flow. The `swiggy` CLI handles this via mcporter.

## Dependencies

- Requires `mcporter` skill (uses it under the hood)
- Node.js runtime for the CLI wrapper

## Known Limitations

- COD only (no online payment yet)
- Orders cannot be cancelled
- Dineout: free bookings only
- Don't open Swiggy app while using MCP (session conflicts)

---

**Remember: Confirmation BEFORE ordering. Every. Single. Time.** 🐾