360 Secure SkillHub
360 安全技能中心

Buy Apparel

该 Skill 以 Lobster Thread 为服装商家目录与路由层,按国家发现商家,再连接各商家的 Shopify Storefront MCP 完成商品搜索、详情、购物车更新与结账链接生成;支持订阅商品的处理,最终返回结构化购买摘要与结账链接,由买家自行完成付款。

abuiles
abuiles
热度 22.33
最近更新 2026-03-18 11:46:48
分类:生活依赖:第三方 API / MCP 服务应用场景:购物 / 推荐

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add buy-apparel
Metadata
name
buy-apparel
description
Buy clothing, apparel staples, and fashion pieces through Lobster Thread. Use when a buyer wants an agent to discover apparel labels, fashion merchants, and clothing shops, compare styles and staples, build a cart, and hand back a Shopify checkout link for approval and payment.
homepage
https://lobsterthread.com

Buy Apparel

Version: 1.0.0 Base URL: https://lobsterthread.com

Buy Apparel helps an OpenClaw agent discover apparel labels, fashion merchants, and clothing shops, compare styles and staples, build personalized carts, and hand back a secure Shopify checkout link for the buyer to complete the purchase.

Use this skill when the buyer wants to shop for clothing, apparel staples, and fashion pieces. Use Lobster Thread as the directory and routing layer, then use each merchant's Shopify Storefront MCP for live catalog, cart, and checkout work.

What this skill does

  • Uses Lobster Thread as the directory and routing layer for apparel labels and fashion merchants
  • Uses each merchant's Shopify Storefront MCP endpoint for live catalog, cart, and checkout work
  • Keeps the buyer in control of payment by handing off Shopify checkout instead of completing payment directly

Refresh

  • Re-fetch https://lobsterthread.com/skill.md when starting a new session or if the deploy may have changed
  • Treat merchant MCP data as the source of truth for products, pricing, availability, cart state, and checkout URLs

Install

  1. POST to https://lobsterthread.com/claws/register
  2. Save claw_id and api_key locally
  3. Do not lose the key

Discovery

  1. Start with GET https://lobsterthread.com/countries.md to see supported countries
  2. Choose a country that matches the buyer's location when possible
  3. Fetch GET https://lobsterthread.com/countries/{country_code}.md
  4. Use GET https://lobsterthread.com/offers/{country_code}.md to prioritize active offers
  5. Choose a merchant before using Shopify Storefront MCP

Merchant Connect

  1. GET https://lobsterthread.com/merchants/{slug}/connect.md
  2. Read the returned merchant MCP URL
  3. Connect to that merchant's Shopify Storefront MCP
  4. Use that merchant MCP for:
    • catalog search
    • product details and availability
    • policy questions
    • cart retrieval
    • cart updates
    • checkout URL generation

Do not infer merchant MCP URLs yourself when a connect response is available.

Prefer the .md endpoints for agent consumption. Use the JSON endpoints only when a structured machine response is required.

Subscription Products

When a product or variant supports a subscription, inspect subscription fields before updating the cart.

  1. Check for:
    • requiresSellingPlan or requires_selling_plan
    • variant-level selling plan requirements
    • sellingPlanGroups
    • sellingPlanAllocations
    • available sellingPlanId values
  2. If a subscription is optional, present both one-time and subscription choices.
  3. If a selling plan is required, do not attempt a normal cart add without a sellingPlanId.
  4. Ask the buyer to choose a cadence unless a clear preference already exists in local memory.
  5. Highlight subscription savings when priceAdjustments, price, or compareAtPrice show the subscription is cheaper than the one-time purchase.
  6. Try the merchant MCP cart and checkout flow first.
  7. If the merchant MCP cannot create a subscription cart or checkout, use Shopify Storefront GraphQL cartCreate as the subscription-only fallback. Use the same shop behind the merchant MCP URL. Prefer documented tokenless access when it works for that merchant. Use a storefront access token only when merchant context provides one.
  8. In the GraphQL fallback, send:
    • merchandiseId
    • quantity
    • sellingPlanId
    • cart attributes, including lb_source__ = lobsterthread
  9. Request:
    • checkoutUrl
    • sellingPlanAllocation
    • userErrors

Cart Rule

When updating carts, attach the private cart attribute:

  • lb_source__ = lobsterthread

Final Handoff

When you finish, return a structured summary with:

  • merchant
  • product
  • variant
  • purchase_type
  • selling_plan_name
  • selling_plan_id
  • cadence
  • savings_summary
  • checkout_url
  • resolution_path

Use resolution_path = mcp_cart when the merchant MCP created the cart. Use resolution_path = storefront_graphql_fallback when you had to fall back for a subscription checkout.

Say clearly when:

  • the item is subscription-only
  • the available cadences are every 1, 2, or 4 weeks, monthly, or similar
  • the subscription saves money versus one-time purchase
  • the merchant MCP could not attach the selling plan and you used Storefront GraphQL instead

Safety

  • This skill is for merchant discovery and Shopify Storefront MCP routing, not product truth storage
  • Keep buyer preferences and prior purchases in your own local memory
  • Do not attempt payment completion
  • Return the checkout URL to the buyer for approval and payment