| name | sourcing-agent-1688 |
| description | Use this skill when the user asks Codex Desktop to inspect, analyze, compare, or save data from 1688 product pages. |
1688 Sourcing Agent
Use this plugin as a Chrome DevTools-first 1688 sourcing agent.
Primary path:
- Use
chrome-devtools to inspect the user's Chrome tab.
- Read visible page state, DOM, screenshots, and network responses.
- Use
sourcing1688 tools to normalize 1688 HTML and network JSON into seller-facing product data.
Use Chrome DevTools first. Do not open a separate window unless the user explicitly asks or the plugin reports that it is using the Windows port-mode Chrome profile.
Do not run synthetic fixture, demo, or parser self-tests during a user sourcing task.
First-Run Chrome Setup
Before calling open_chrome_devtools_setup, retry chrome-devtools/list_pages once. Call setup only when Chrome DevTools still cannot connect, has no pages, or reports DevToolsActivePort.
If setup is needed:
- Call
open_chrome_devtools_setup.
- If the tool returns
endpoint_verified: true, continue with the Chrome tabs exposed by that endpoint.
- If the tool returns
needs_user_action, ask the user to open chrome://inspect/#remote-debugging in their normal signed-in Chrome profile, enable remote debugging, then restart Codex or open a new chat.
- Do not call
start_chrome_devtools as an automatic fallback for 1688 sourcing. It opens a separate recovery Chrome profile without the user's 1688 cookies/login.
- Use
start_chrome_devtools only when the user explicitly accepts a separate recovery profile or asks for port-mode troubleshooting.
- If the setup tool returns
skipped: true without endpoint_verified: true, explain that existing-session permission is pending and wait for the user to confirm setup.
- Tell the user that a Chrome setup tab was opened only when
opened is non-empty.
- Stop there until the user confirms setup is done or provides the target page.
Do not treat a setup marker as proof of connectivity unless it says status: verified or the endpoint check passes.
Do not resize, reposition, minimize, or maximize the user's Chrome windows.
If a Chrome DevTools tool call times out during first connection, do not call it a parser bug or a 1688 failure. Treat it as a pending Chrome permission dialog, tell the user to click Allow if the dialog is visible, then retry the same Chrome DevTools call after the user confirms. The bundled MCP config gives Chrome DevTools a long tool timeout so the user has time to notice and approve the prompt.
Product Page
When the user gives a 1688 product URL or asks about the current Chrome page:
- Use
list_pages and select the 1688 page.
- If needed, navigate Chrome to the provided URL.
- Use
take_snapshot, take_screenshot, and evaluate_script to inspect the visible page.
- Capture a compact visible snapshot with
evaluate_script: page URL, document title, body innerText, and visible image/video/source URLs. Call parse_1688_visible_page_snapshot first so visible price, MOQ, seller, sold count, and media are not lost.
- If more data is needed, capture rendered HTML and call
parse_1688_rendered_html_content.
- Use
list_network_requests and get_network_request for relevant 1688 responses.
- Pass useful JSON bodies to
parse_1688_network_payload_content.
- For reviews, click/open the buyer review area (
买家评价) when visible, capture body text plus review-related network responses, then call parse_1688_review_snapshot.
- Summarize product fit for a Korean seller: product type, price in CNY and estimated KRW when a rate is available, options, seller signals, visible demand signals, review tags, image/video assets, risks, and next buying checks.
Search
When the user asks for sourcing candidates:
- Call
expand_sourcing_keywords.
- Treat returned keywords as seed terms only. They are not a closed dictionary.
- If the tool returns
strategy: agent_generate_terms, or the seed terms look too broad, generate 5-8 practical Chinese 1688 search terms yourself from the user's Korean intent. Do not search a Korean placeholder on 1688.
- If no 1688 tab is open, open a new tab in the verified Chrome session to the 1688 search URL for the best Chinese keyword. Do not wait for the user to open 1688 manually when the task is a keyword search.
- Use Chrome DevTools to search 1688 with the best Chinese keyword first. For
s.1688.com search URLs, GBK-percent-encode Chinese keywords; UTF-8 encoded Chinese keywords can render as broken text and return unrelated results.
- Inspect visible related searches, product titles, seller category words, and network responses. Use those live signals to refine the next query instead of relying only on the seed list.
- Capture at least 10 visible candidate cards unless the user asks for fewer or the page has fewer visible results. Scroll/load more before giving up at 3-5 items.
- Capture product card fields with
evaluate_script: title, URL, price text, sold text, seller/shop name, image URL, and visible badges. If a card URL is a dj.1688.com ad redirect, also look for a nearby detail.1688.com, detail.m.1688.com, or offerId= URL in the same card before passing it to the parser.
- Call
parse_1688_search_results_snapshot with the captured items. Pass a current or user-provided CNY/KRW rate when available.
- Present the result in Korean with a real product explanation, CNY price, estimated KRW price, sold count, seller/shop, why it may be a candidate, and what to check next. Translate/summarize Chinese titles yourself; parser category hints are not final user-facing descriptions.
Save Assets
When the user asks to save images or page data:
- Capture rendered HTML from Chrome.
- Call
download_1688_product_assets_from_html_content.
- Return saved directory, manifest path, counts, and failures.