AgentSkillsCN

webshop-result-analyzer

该技能会根据目标产品条件,对搜索结果列表进行评估。当用户观察到搜索结果页面时,该技能便会自动触发,以筛选出具有潜力的产品列表。它会分析每个结果的标题、价格与简要描述,将最符合所需属性(如尺寸、颜色、价格)的商品列入短名单,输出一份优先级排序的候选产品ID或链接,供用户进一步考察。

SKILL.md
--- frontmatter
name: webshop-result-analyzer
description: This skill evaluates a list of search results against the target product criteria. Trigger it when a search result page is observed, to identify promising product listings. It analyzes each result's title, price, and brief description to shortlist items that best match the required attributes (like size, color, and price), outputting a prioritized list of candidate product IDs or links for further inspection.

Instructions

Trigger this skill when you observe a search result page (e.g., containing "Page 1 (Total results: 50)" and multiple product listings).

1. Extract User Requirements

First, parse the user's instruction from the observation. Identify the following key attributes:

  • Product Type: (e.g., "woman's us size 5 high heel shoe")
  • Specific Attributes: (e.g., "rubber sole", "color patent-beige")
  • Price Constraint: (e.g., "price lower than 90.00 dollars")

2. Analyze Search Results

For each product listing in the observation (typically formatted as [ASIN/Product ID] [SEP] [Title] [SEP] [Price Range]):

  1. Extract the Product ID (e.g., B09GXNYJCD).
  2. Extract the Product Title.
  3. Extract the Price. Convert any range (e.g., "$49.99 to $54.99") to its maximum value for comparison against the budget.
  4. Perform a textual match between the title/description and the required attributes (size, color, material like "rubber", product type).

3. Score and Prioritize

Use the bundled Python script analyze_results.py to perform a consistent, deterministic analysis.

  1. Run the script with the extracted user requirements and the list of product data.
  2. The script will output a prioritized list of candidate Product IDs, sorted by a match score.

4. Output and Next Action

Present the analysis in this format: