一键导入
ppd-extractor
PPD(Product Page Data)块提取器。从 ppd.html 中提取 Core/Buybox/Twister/Overview/Bullets/Images 六个子阶段的结构化数据,输出 ppd_extracted.md。当 agent 需要提取 PPD 块时调度此技能。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
PPD(Product Page Data)块提取器。从 ppd.html 中提取 Core/Buybox/Twister/Overview/Bullets/Images 六个子阶段的结构化数据,输出 ppd_extracted.md。当 agent 需要提取 PPD 块时调度此技能。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Amazon 商品 HTML 提取器的测试技能集,覆盖 TDD 工作流(先测试后代码、9 步 CHECKPOINT 流程)和 Golden Fixture 比对(风格锚点 + 三次重试降级)两大测试策略。当 agent 需要为提取器编写测试、运行 pytest、或进行 Golden Output 比对时调度此技能。
当需要分析 Amazon Bestsellers Top50 的用户评论结构、购买动机、高频痛点、产品实用性判断时触发此 skill。 包括但不限于:评论层级分布、用户核心购买理由、差评痛点提炼、产品切入机会识别等。 示例触发语:「分析用户评论」「用户最在意什么」「差评集中在哪里」「产品体验痛点是什么」「新品应该改进什么」
Amazon 商品子 HTML 块的结构化提取器(清洗器)。读取分块后的子 HTML,清洗 DOM 噪声,输出结构化 Markdown。包含 4 个子技能(ppd / customer-reviews / aplus / product-details),每个负责一种块类型。当 agent 需要从子 HTML 中提取结构化数据时调度此技能。
基于风格锚点(Style Anchors)的 Golden Output Fixture 比对策略。从已验证的 Golden 模板中提取结构锚点(节标题、表格字段名、Bullet 前缀),与提取器输出比对。包含三次重试 + 人工审核降级机制。Golden 模板文件存放在 templates/ 子目录中。
| name | ppd-extractor |
| description | PPD(Product Page Data)块提取器。从 ppd.html 中提取 Core/Buybox/Twister/Overview/Bullets/Images 六个子阶段的结构化数据,输出 ppd_extracted.md。当 agent 需要提取 PPD 块时调度此技能。 |
| type | skill |
输入:ppd.html
输出:ppd_extracted.md
复杂度:复杂,6 个子阶段
#productOverview_feature_div#productFactsDesktopExpander#feature-bullets 下的 <li> 列表#altImages 或 #imageBlock 中提取参照 ppd_agent_prompt_zh.md 的完整规范:
$33.99 $ 33 . 99)、空值处理N/A,不得臆造Current price 不允许为 N/A,必须提取到真实的购买价格。
提取优先级(逐级 fallback):
#corePrice_feature_div, .a-price .a-offscreen 等)#buybox, #newBuyBoxPrice, #price_inside_buybox 等)如果所有路径均未命中,才写 N/A 并在 manifest 中标记 price_missing: true 以便人工复查。
# PPD Extracted
## Core
- Title: ...
- Average stars: ...
- Rating count: ...
- Current price: $xx.xx
- Original/List price: $xx.xx
- Discount: xx%
- Discount amount: $x.xx
## Buybox
- Merchant ID: ...
- Availability: ...
- Quantity options: 1, 2, 3, ...
- Ships from: ...
- Sold by: ...
## Style Options (Twister)
- Current selection: ...
| Option | Current Price | List Price | Discount | Prime | Status |
| --- | --- | --- | --- | --- | --- |
| ... | ... | ... | ... | ... | ... |
## Product Overview
| Field | Value |
| --- | --- |
| Brand | ... |
| Material | ... |
## Feature Bullets
- Bullet 1 text...
- Bullet 2 text...
## Image Assets
- https://...jpg
- https://...jpg
chunker/ppd_extract.py — PPD 提取器实现tests/test_ppd_extract.py — PPD 提取器测试