Webshop search constructor

From zjunlp/SkillNet · View interactive version

Webshop search constructor is an AI agent skill from the GitHub repository zjunlp/SkillNet. This skill formulates an effective search query from structured product criteria. It is used when initiating a product search on an e-commerce platform, converting attributes into a concise, relevant keyword string. The input is a set of parsed criteria (e.g., 'jewelry box', '10 slots', 'easy to cle

How to use this skill

Skill file

Instructions

When tasked with finding a product on an e-commerce platform, use this skill to construct the initial search query.

Core Process

  1. Receive Criteria: You will be given a set of structured product criteria (e.g., product type, attributes, price limit).
  2. Construct Query: Use the construct_search_query.py script to transform the criteria into a single, optimized search string. The script handles formatting and keyword ordering.
  3. Execute Action: Format the script's output into the required platform action: search[<constructed_query>].

Workflow Example

Input Criteria: {'product': 'jewelry box', 'attributes': ['10 slots', 'easy to clean'], 'price_limit': 60.00}

Skill Execution:

  1. Run the script: python scripts/construct_search_query.py --product "jewelry box" --attributes "10 slots" "easy to clean" --price-limit 60.00
  2. The script returns: jewelry box, 10 slots, less than $60, easy to clean
  3. You output the final action: search[jewelry box, 10 slots, less than $60, easy to clean]

Important 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.