Webshop query parser

From zjunlp/SkillNet · View interactive version

Webshop query parser is an AI agent skill from the GitHub repository zjunlp/SkillNet. This skill extracts key constraints and product requirements from a user's shopping query. It should be triggered when the agent receives a new shopping instruction, to identify product attributes (e.g., 'gluten free'), price limits (e.g., 'lower than 140.00 dollars'), and other specifications. The

How to use this skill

Skill file

Instructions

When to Use

Activate this skill immediately when a new shopping instruction is received from the user, before any search or click actions are performed.

Core Task

Parse the user's natural language instruction to extract structured search criteria. Your goal is to identify:

  1. Product Type/Name: The primary item the user wants (e.g., "popcorn").
  2. Key Attributes: Descriptive features like "gluten free", "organic", "vegan", etc.
  3. Price Constraints: Any upper or lower price limits (e.g., "lower than 140.00 dollars").
  4. Other Specifications: Brand, size, quantity, or other qualifying terms.

Procedure

  1. Run the Parser: Execute the bundled script parse_query.py on the user's instruction.
  2. Review & Refine: Examine the script's output. If the instruction is complex or ambiguous, use your judgment to refine the criteria. For example, ensure price limits are correctly interpreted as numeric ranges.
  3. Formulate Search Strategy: Use the extracted criteria to plan the initial web search. Combine the Product Type with the most critical Key Attributes to form effective initial search keywords.

Output

After parsing, hold the structured criteria in memory. Use it to:

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.