AI SummaryThis skill parses natural language shopping queries to extract structured product requirements like attributes, price limits, and specifications for e-commerce agents. It benefits developers building AI-powered shopping assistants and agents that need intelligent query understanding.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "webshop-query-parser" skill in my project. Please run this command in my terminal: # Install skill into your project (2 files) mkdir -p .claude/skills/webshop-query-parser && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/webshop-query-parser/SKILL.md "https://raw.githubusercontent.com/zjunlp/SkillNet/main/experiments/src/skills/webshop/webshop-query-parser/SKILL.md" && mkdir -p .claude/skills/webshop-query-parser/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/webshop-query-parser/references/query_components.md "https://raw.githubusercontent.com/zjunlp/SkillNet/main/experiments/src/skills/webshop/webshop-query-parser/references/query_components.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
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 skill outputs a structured set of search criteria to guide subsequent product discovery.
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: • Product Type/Name: The primary item the user wants (e.g., "popcorn"). • Key Attributes: Descriptive features like "gluten free", "organic", "vegan", etc. • Price Constraints: Any upper or lower price limits (e.g., "lower than 140.00 dollars"). • Other Specifications: Brand, size, quantity, or other qualifying terms.
Procedure
• Run the Parser: Execute the bundled script parse_query.py on the user's instruction. • 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. • 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. • Example: For "i need gluten free popcorn, and price lower than 140.00 dollars", the script will output {'product': 'popcorn', 'attributes': ['gluten free'], 'price_max': 140.0}. Your initial search should be search[gluten free popcorn].
Output
After parsing, hold the structured criteria in memory. Use it to: • Guide the formulation of search[keywords] actions. • Evaluate product listings and details during click actions to check for constraint compliance (especially price). • Inform your reasoning in the Thought: part of your response.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster