Token导航 LogoToken导航TokenDH.com
研究检索external-serviceunknown未标认证来源可访问许可证需确认审计未展示

data-extraction数据提取

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

222

周安装

9

下载量

70
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:data-extraction(数据提取)
来源仓库:https://cbskills.xcloudzen.com
仓库路径:data-extraction
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

用于从网页中提取结构化 JSON 数据的高效工具。

  • 优先尝试 JSON-LD 微数据抓取,失败时降级解析 DOM。
  • 支持商品、文章、活动等各类页面 schema 识别。
  • 对列表页与 SPA 动态内容提供备用解析策略。
  • 返回空结果时应及时切换更高阶解析方法。data-extraction 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Data Extraction — Structured Data from Pages

Goal: turn a rendered page into clean JSON. Always try the lightest-weight tool first; escalate only when it returns empty or wrong data.

Priority order

  1. page_schema(tab_id?) — JSON-LD + microdata. Products, recipes, events, articles, local-business listings usually embed complete structured data. One call, often zero parsing. Caveat: returns {"schemas": []} on plenty of pages — disambiguation / list pages (Wikipedia), Google search results, Instagram profile pages, most SPAs without server-side rendering. Don't assume schema exists; fall through to the next tool if empty.
  2. page_article(tab_id?, max_wait=10000) — Mozilla Readability + SPA wait. Returns {title, author, date, image, content} for editorial pages. Use for anything you'd call "an article." Increase max_wait to 15000 for heavy SPAs.
  3. page_headings(tab_id?) — h1–h6 outline. Cheap. Use to plan a targeted extraction before dumping the whole page.
  4. execute_script — custom DOM extractor. Use when the data you want isn't in schema and isn't article prose (price badges, review counts, custom data attributes, tabular data).
  5. page_markdown(tab_id?) — full-page Markdown dump. Includes nav/footer/sidebar. Last resort when page_article errors (dashboards, search results, listings).
  6. page_source(tab_id?) / page_text(tab_id?) — raw HTML / plain text. Fallback when selectors misbehave or paywalls are CSS-only.

Reusable scripts

Each capability has a focused JS file under scripts/. To use one:

  1. Read the script file to load it as a string.
  2. Pass the contents as the code argument to mcp__chrome-bridge__execute_script.
  3. The script returns a structured object — see the header comment at the top of each file for the exact return shape.
TaskPre-conditionScriptNotes
Product DOM fallbackpage_schema() returned [] or sparse Productscripts/product_dom_fields.jsAdapt the right-hand selectors per site.
TablesPage renderedscripts/tables_extract.jsReturns every table as {headers, rows}. Use instead of page_markdown() — markdown mangles tables.
Listing linksOn a listing/index pagescripts/listing_links.jsScoped to article h2 a, article h3 a. Edit the selector for sites that use a different wrapper.

Pattern: schema-first

navigate(url='https://www.example.com/product/xyz')
# wait for ready
data = page_schema()
# If data contains a @type=Product entry with name/price/offers, you're done.

When schema is missing or sparse, fall through to the DOM fallback:

execute_script(code=<contents of scripts/product_dom_fields.js>)

Pattern: articles

For news, blogs, docs, Substack, Medium — try page_article first:

navigate(url='https://...')
# wait
article = page_article()
# → { title, author, date, image, content } (Markdown body)

If page_article returns {error:...} (dashboards, listing pages, custom layouts), fall through to page_schema then page_markdown.

Pattern: tables

execute_script(code=<contents of scripts/tables_extract.js>)
# → [{ index, caption, headers, rows }, ...] one entry per <table>

Pattern: links / listings

execute_script(code=<contents of scripts/listing_links.js>)
# → [{ title, url }, ...]

Dynamic content

Content injected after load (infinite scroll, "Read more" expanders):

# trigger the load
execute_script(code="(function(){ window.scrollTo(0, document.body.scrollHeight); return 'scrolled'; })()")
# wait a few seconds, then re-extract
page_schema()   # or whichever tool

If content only appears after a click:

dom_click('button.expand-all')
# wait, re-extract

Return shape

Every extractor should return a plain JSON-serializable object. Good shapes:

{ source_url, captured_at, items: [{ title, url, price, ... }] }

Always include the source_url and a timestamp so downstream consumers can audit staleness. Don't return DOM nodes, HTML blobs, or images — extract the field you need and return that.

VERBATIM RULE — never summarize a body field

When the user asks for a body, description, content, full text, article, excerpt, or anything similar, the value MUST be the actual text returned by page_text / page_article().content / page_markdown — copied as-is (you may trim trailing site chrome like "RELATED NEWS", "Top Articles", "Follow Us", "Comments", footer links). You may NOT:

  • write a summary in your own words
  • paraphrase or condense
  • substitute a description like "Article covers Q1 results and analyst commentary"
  • substitute placeholder text like "Full article text can be fetched on request" or "Retrieved live content from source"
  • return only the title or only the first paragraph when the request was the body

Field names like full_text, body, content, description, excerpt are content slots, not metadata slots. If you don't have the verbatim text yet, navigate to the item and call page_text before answering.

Examples — body field

// ✓ CORRECT: the value is the actual returned text from page_text()
{
  "url": "https://news.site/q1-results",
  "full_text": "Acme Corp posted Q1 revenue of $4.2B, up 18% YoY, beating analyst consensus of $3.9B. CEO Jane Doe attributed the gain to enterprise contract renewals and a 12% lift in international bookings. Operating margin expanded to 23.4% from 21.1% a year ago, helped by lower customer-acquisition spend. The company guided FY revenue to $17–18B, in line with the Street. Shares rose 6% in after-hours trading. ..."
}

// ✗ WRONG: summary disguised as body
{
  "url": "https://news.site/q1-results",
  "full_text": "Article on Acme's Q1 earnings covering revenue beat, margin expansion, and full-year guidance."
}

// ✗ WRONG: placeholder
{
  "url": "https://news.site/q1-results",
  "full_text": "Q1 earnings article — full text available on the source page."
}

// ✗ WRONG: title repeated as body
{
  "url": "https://news.site/q1-results",
  "full_text": "Acme Corp Q1 Earnings"
}

Common failures

SignalCauseFix
page_schema returns []Site has no structured dataSkip to page_article or custom extractor
page_article returns {error}Not an article pageUse page_schema / page_markdown / custom extractor instead
Selectors match nothingPage not yet hydratedPoll document.readyState or a known element; scroll to trigger lazy load
execute_script returns undefinedBare return at top levelWrap the code in (function(){...})() (the scripts in scripts/ already do this)
execute_script errors with Invalid \escapeJS regex backslashes not double-escaped for JSONPass scripts as file contents (no JSON encoding) — the scripts/ files don't need escaping. If you must inline regex, prefer indexOf() / includes().
execute_script times out (HTTP 504)Script does something slow (image fetch, big loop)Trim the logic; return fewer fields; avoid fetch() inside the script
Paywalled content hiddenSome paywalls only hide via CSSTry page_text — the body text is often still in the DOM

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

85%
按下载量换算60

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills