Community编程与开发github.com

CTctikki/taobao-tmall-top-merchants-skill

Codex Skill:按商品类目采集淘宝/天猫TOP商家并补齐工商招商信息

taobao-tmall-top-merchants-skill 是什么?

taobao-tmall-top-merchants-skill is a Codex agent skill that codex Skill:按商品类目采集淘宝/天猫TOP商家并补齐工商招商信息.

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add CTctikki/taobao-tmall-top-merchants-skill

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Taobao/Tmall Top Merchant List

Mode Selection

  • Category Discovery Mode: When the user provides only a product category and asks to find quality merchants, execute Taobao candidate discovery, store product structure audit, and formal admission thresholds.
  • User-Specified List Mode: When the user directly provides one or more store names, multiple links, text, tables, spreadsheets, or mixed information, Codex extracts and deduplicates autonomously, without requiring a fixed file format or dedicated parsing script. If the input includes both a category and a specific store list, the list takes precedence; only continue discovering new stores if the user explicitly requests expansion.

In user-specified list mode, all stores in the list enter the formal merchant admission pipeline; do not run mine_taobao.py, audit_shops.py, or trigger Taobao pages for enterprise field supplementation. Do not fabricate target SPUs, in-store target product ratios, payment count display lower bounds, or Top 30 conclusions; the workbook must clearly mark "User-specified list, does not represent Top 30 or main category admission compliance." If the user also provides business license screenshots, qualification page screenshots, or license text, directly extract the platform business license company name and credit code into platform_qualifications.json; do not guess the entity based on the store name.

Codex should normalize as much as possible from the raw information: category, store name, platform, store link, company and contact information provided by the user, responsible person, and source. Preserve the original input for traceability; missing fields should not disqualify stores. Identify the platform only based on clear links or reliable page signals; write "To be verified" in the absence of valid evidence; do not guess based on the store name.

Input

Category discovery mode only requires the user to confirm a product category. If the user has not specified a category or provided a store list, ask once; do not continue asking for parameters that can be inferred from pages or public data.

Default admission criteria: target SPU >=10, in-store target product ratio >=30%; >=50% marks "High Match". Taobao stores/C-stores and Tmall stores use the same thresholds; store type is not a disqualifying condition.

Initial Hard Thresholds

  • Formal tasks must provide and successfully verify Qichacha Key + Fengniao Key, both indispensable; Fengniao public quota cannot replace the user's own Key, and Aiqicha, Tianyancha, or other enterprise MCPs cannot replace the specified qcc-company.
  • If either Key is missing, stop the task first, and simultaneously provide Qichacha https://agent.qcc.com/profile/api-key and Fengniao https://www.riskbird.com/center/apiKey. Ask the user to send both Keys to Codex; do not ask the user to configure environment variables themselves.
  • After receiving both Keys, Codex must not repeat them. Run python scripts/configure_enterprise_keys.py, passing the Qichacha Key and Fengniao Key sequentially through standard input only, then run bootstrap.ps1; Keys must not appear in command parameters, logs, workbooks, documents, Git, or final responses.
  • Pre-checks must actually verify both services, not just check if they are installed. If either Key is invalid, quota insufficient, or service unavailable, refuse to continue the merchant recruitment task.
  • webcli must simultaneously satisfy connectivity.ok=true and at least one profile's extensionConnected=true. If not connected, run webcli extension install to download the extension and guide in simple steps: open chrome://extensions in Chrome → enable "Developer mode" → "Load unpacked extension" → select ~/.webcli/extension → pin Browser Bridge → keep Chrome open. Do not skip the connection check just because the top-level ok=true.

Execution Order

Steps 3 to 7 below are only for category discovery mode. List mode skips steps 3 to 7, does not run create_job.py, mine_taobao.py, audit_shops.py, or audit_storefronts.py; after input normalization, directly proceed to enterprise candidate verification and list mode workbook generation. List mode does not forcibly run verify_job.py when there is no standard collection task JSON, but must still complete field checks, formula recalculation, full worksheet visual inspection, and key scanning.

  1. First, determine the mode. For category discovery mode, run powershell -ExecutionPolicy Bypass -File scripts/bootstrap.ps1; for user-specified list mode, run the same script with -SkipTaobaoCheck, only verifying the workbook and enterprise data source environment, without opening Taobao pages. The script checks and installs necessary dependencies, Fengniao Skill, qcc-company, and webcli extension via preflight.py --install-missing; if automatic installation fails, stop and provide clear fix instructions, do not skip environment checks.
  2. Only when qcc-company and Fengniao Skill are both installed, both user private Keys are configured, and lightweight verification succeeds, the enterprise environment is considered ready. See references/mcp-setup.md for details.
  3. If Taobao is not logged in or shows a CAPTCHA/slider, open Taobao and ask the user to complete login; maintain the same browser session, reuse cache on recovery, and avoid restarting from scratch at high frequency.
  4. Run scripts/create_job.py <category>. Check the generated query terms, target terms, and exclusion terms; only confirm product boundaries with the user in case of obvious ambiguity.
  5. Run scripts/mine_taobao.py to discover Taobao and Tmall candidate stores. Default 2 pages per query, 20-second interval; no concurrent bombing. Raw candidates are only discovery evidence and do not equal the subsequent audit queue.
  6. Run scripts/audit_shops.py to reverse-lookup product structure by exact store name and apply the 30% threshold. Default sort by target product payment count display lower bound, discovered target SPU, and query coverage; filter out low-sales and multi-category stores, auditing at most 30 stores per category; if fewer than 30, do not fill with low-quality merchants. Taobao/C-stores with category operation signals in their names and low exposure can still enter tiered recall to avoid missing stores due to platform sorting bias. If the user explicitly requires "Top N by sales per category" (e.g., Top 30), set sales_top_n_mode=true, max_candidate_shops=N, minimum_payment_lower_bound=0, minimum_quality_query_coverage=1: for each category, only audit the top N stores by target product payment count display lower bound, without feeding hundreds of raw discovery candidates into subsequent steps; finally, only retain quality merchants meeting SPU and ratio thresholds.
  7. Run scripts/audit_storefronts.py to obtain formal store links, shopId, sellerId, and store type. For Tmall stores, hover over "View Qualifications" in the store header, open the corresponding liangzhao.htm for "View Merchant Public Information", and write the business license company name, unified social credit code, legal representative, address, establishment date, and evidence URL into platform_qualifications.json; if the qualification page triggers a slider or _____tmd__, record "Entity not confirmed" and wait for manual verification; do not substitute with the first enterprise search result.
  8. For enterprise queries, first run scripts/company_source_routing.py to generate a dynamic plan. When only store name/brand name is available, use "Fengniao fuzzy discovery → Qichacha precise verification → Fengniao fill-in"; when full company name or unified social credit code is already available, use "Qichacha precise verification → Fengniao fill-in". If either data source is unavailable, stop; do not bypass the dual-source threshold. Fengniao commands are uniformly executed via python scripts/run_fengniao.py, so that the newly written user-level Keys take effect without restart; the call sequence is discover "enterprise basic info", biz_fuzzy_search to obtain internal entid, biz_basic_info to query details; entid is not written to the delivery table. In case of conflict between Qichacha and Fengniao, adjudicate by: "platform qualification page > consistent credit code > trademark/brand official website > enterprise name similarity > phone/email"; do not forcefully select based on the platform that returns first. If trademark cross-verification is needed, create trademark_queries.json and run scripts/crosscheck_trademarks.py. Combine evidence to generate subjects.json, then run enrich to supplement business and contact information.
  9. For category discovery mode, run scripts/build_workbook.py to generate six sheets: Overview, Formal Admission Merchants, Entity Verification, Unconfirmed Fields, Disqualified Merchants, and Metrics & Reuse. For user-specified list mode, Codex directly generates six categories of information based on the actual input structure: Overview, Formal Admission Merchants, Entity Verification, Unconfirmed Fields, Raw Input, and Metrics Explanation, without forcibly applying the collection task JSON format. In the formal sheet, place enterprise search results in the "Candidates for Connection (Non-Store Entity, To Be Verified)" and candidate contact information columns, while writing the platform license entity separately into the formal entity column; candidate contact information cannot inversely prove the store entity.
  10. Run scripts/verify_job.py, and use spreadsheet tools to complete formula recalculation and visual inspection of all worksheets before delivery.

Judgment Discipline

  • "Accurate Hit" means correct product attribution, not all fields must be filled.
  • Product titles must hit target terms; electrical, accessories, consumables, pets, or clearly irrelevant products are excluded according to task configuration.
  • Store SPU is counted by unique product ID; target ratio = target SPU / precise store SPU.
  • Payment count uses the aggregate of visible display lower bounds from search cards; do not claim as monthly sales in the last 30 days.
  • Enterprise abbreviation/brand name first goes through entity recognition; full company name or unified social credit code is required to query business details.
  • Dynamic routing is determined by input precision; one platform is not always prioritized. When the platform qualification page entity is already clear, directly enter the precise entity route.
  • When enterprise queries return multiple candidates, all candidates must be retained and marked as pending confirmation; do not guess or automatically select the first one.
  • Contact information alone cannot prove the store entity; when only phone/email are available, candidates must remain with selected: false.
  • Unconfirmed entity does not mean hiding connection information: all obtained candidate company phones, emails, and addresses must be fully displayed in the formal sheet under a "To Be Verified" column, allowing contact before verification.
  • The current license-holding operating entity confirmed by the store qualification page has the highest priority. Trademark rights holders or brand evidence can only increase confidence; if the current operating entity has not yet been confirmed, the role must be written as "Trademark Rights Holder" and the pending confirmation item retained.
  • The platform business license entity must be consistent with the formal sheet's "Company Name" and "Unified Social Credit Code"; once a platform license exists, any inconsistent enterprise search candidates must be downgraded to "Non-Store Entity, Candidate Connection Lead", even if old data had selected: true.
  • Platform qualifications can only come from independent platform_qualifications.json qualification records; manually writing evidence_type: platform_qualification in company_enrichment.json does not prove the entity. The credit code closure must simultaneously save the enterprise business code, the matched_credit_code from the source side, and the evidence source; only when the two codes match verbatim can selected: true.
  • Trademark/brand official website evidence alone cannot be written into the formal entity; without a platform business license or credit code closure, the formal company, legal representative, address, and credit code must all be left blank; do not package a similarly named enterprise as the entity.
  • When multi-source results conflict, retain each candidate and source; only set selected: true when the full name/credit code can be closed with platform qualification, brand trademark, or official website evidence.
  • Leave undisclosed fields blank; do not fabricate phone, email, legal representative, address, or establishment date.
  • The workbook must retain all obtained and deduplicated phone numbers and emails, and automatically expand row height based on content; do not truncate data for layout purposes.
  • Write all source URLs into the workbook; explain the role and confidence level for each entity.
  • Every store in the user-specified list must be traceable in both the formal sheet and the raw input; failed enterprise queries, insufficient quota, or missing links can only enter unconfirmed fields, not become a reason to delete the store.

Risk Control and Recovery

  • Maintain 18–22 second interval between accesses; stop immediately upon encountering risk control; do not switch accounts or bypass verification.
  • Only operate the browser session where the user is already logged in; do not export cookies.
  • When the user requests headless execution, enterprise queries, workbook generation, recalculation, and export must use CLI/API with --headless; do not open or take over a visible browser window. If Taobao collection results already exist, reuse them directly; do not re-trigger the browser to supplement enterprise fields.
  • Before running scripts, resolve the Skill root directory and task directory to absolute paths; do not simultaneously prepend the repository prefix with the current working directory. Write intermediate JSON to work/<job>/ for each step. Re-runs must skip completed queries and stores. For Browser Bridge, a single operation aborted, timeout, or connection reset can be retried at most once; MTop requests within a page exit bounded by MTOP_REQUEST_TIMEOUT; if a single store still fails, write to audit_errors.json and continue with other stores. In addition to visible CAPTCHA text, also detect hidden challenge iframes pointing to _____tmd__; both are Taobao risk controls and must stop immediately, not be treated as ordinary timeouts for automatic retry. If a particular low-value store consistently occupies the session, switch to a new session and explicitly skip it with --skip-shop; do not silently lose it.
  • FN_API_KEY, other API Keys, Bearer Tokens, Cookies, and Authorization headers must not appear in command parameters, scripts, logs, Git, workbooks, manuals, or final responses; users can send both Keys to Codex, and the configuration assistant writes them to the Windows current user security configuration via standard input; Codex must not repeat them in any response.

Detailed References

  • Full Workflow: references/workflow.md
  • Data Contract: references/data-contract.md
  • MCP Setup: references/mcp-setup.md
  • Category Rules: references/category-rules.md

相关技能