AgentSkillsCN

webshop-purchase-executor

当用户在电商页面上确认某款适合的商品后,该技能会执行购买操作。当用户决定下单时,该技能会在产品验证完成后,点击“立即购买”等按钮,完成交易。

SKILL.md
--- frontmatter
name: webshop-purchase-executor
description: This skill executes the purchase action for a confirmed suitable product on an e-commerce page. It is triggered after product verification when the user decision is to buy. The skill clicks the purchase button (e.g., 'Buy Now') to complete the transaction.

Skill: webshop-purchase-executor

Purpose

Execute the final purchase transaction for a verified product on an e-commerce platform. This skill is the terminal action in a shopping workflow, initiated only after a product has been confirmed to meet the user's criteria (e.g., price, description).

When to Use

  • Trigger: You are on a product detail page.
  • Prerequisite: The product has been verified against the user's requirements (e.g., price < $40.00, "natural looking").
  • User Intent: The user has made a decision to buy the product.
  • Available Action: A purchase button (e.g., "Buy Now") is present in the list of clickable elements.

Core Action

Perform a click action on the purchase button.

Execution Logic

  1. Locate Purchase Button: Identify the purchase button from the available actions. Common identifiers include:
    • buy now
    • add to cart (if the instruction implies immediate purchase)
    • purchase
  2. Validate Context: Ensure you are on a product page and the prior verification step is logically complete.
  3. Execute Click: Perform the click[purchase_button_value] action using the exact value from the available actions list.

Important Notes

  • Do not use this skill for browsing, searching, or product comparison.
  • The skill assumes price and specification validation occurred in a previous step.
  • If multiple purchase options exist (e.g., "Buy Now", "Add to Cart & Checkout"), prefer the most direct path to complete the transaction, typically "Buy Now".