Skip to content
Agentmart
Submit a tool

content-extract

Robust URL-to-Markdown extraction for OpenClaw workflows.

Skill by aAAaqwq

IndexedMIT★ 111
Write a review

Chalk Labs

Need help deploying content-extract?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/aaaaqwq-content-extract

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Robust URL-to-Markdown extraction for OpenClaw workflows. Use when the user wants to "extract/summarize/convert a webpage to markdown" (especially WeChat mp.weixin.qq.com) and web_fetch/browser is blocked or messy. Uses a cheap probe via web_fetch first, then falls back to the official MinerU API (via the local mineru-extract skill) and returns a traceable result contract with source links.

Use cases: documents, backend, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/content-extract

What's inside

Skill name
content-extract
Description
Robust URL-to-Markdown extraction for OpenClaw workflows. Use when the user wants to "extract/summarize/convert a webpage to markdown" (especially WeChat mp.weixin.qq.com) and web_fetch/browser is blocked or messy. Uses a cheap probe via web_fetch first, then falls back to the official MinerU API (via the local mineru-extract skill) and returns a traceable result contract with source links.
License
MIT
Instructions
90 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (4)

  • SKILL.md
  • domain-whitelist.md · references/
  • heuristics.md · references/
  • content_extract.py · scripts/

SKILL.md (first lines)

# content-extract — 上层内容解析入口(MCP 语义对齐,但不跑 MCP Server)

- Author: Daniel Li
- Copyright © Daniel Li. All rights reserved.

目标:把“给我一个 URL → 产出可读 Markdown + 可追溯入口”变成一个**统一入口**,供后续所有业务 skill(github-explorer、写作类 skills、日报等)复用。

核心原则(来自你发的 Excel Skill 拆解文章的启发):

- **行为规约层**:永远给出可追溯入口(原文 URL + 解析产物路径/链接),绝不编造来源。
- **Token 探针**:先用低成本 probe 判断可不可以直接抓;不行再走重解析(MinerU)。
- **反弹机制**:失败时返回“下一步动作建议”,而不是一堆异常栈。

## 工作流(Decision Tree)

输入:`url`

0) **Domain Whitelist(跳过 probe)**:若 URL 属于高概率反爬/动态站点(微信/知乎等),直接走 MinerU

- 白名单文件:`references/domain-whitelist.md`
- 对命中白名单的 URL:强制 `model_version=MinerU-HTML`

1) **Probe(低成本)**:优先用 `web_fetch(url)`

- 目标:拿到正文 markdown(便宜、快)
- 判断“失败/不合格”条件(见 `references/heuristics.md`)包括:
  - 403/401/反爬
  - 只有“环境异常/验证码/请在微信打开”等提示
  - 内容极短/明显导航页/丢正文

2) **Fallback(高保真)**:走 MinerU 官方 API

- 调用下游 driver:`skills/mineru-extract/scripts/mineru_parse_documents.py`
- 对 HTML 页面(微信等):强制 `model_version=MinerU-HTML`

3) **输出统一结果合同(Result Contract)**

无论用 probe 还是 MinerU,都返回同一套结构:

```json
{
  "ok": true,
  "source_url": "...",
  "engine": "web_fetch" ,
  "markdown": "...",
  "artifacts": {
    "out_dir": "...",
    "markdown_path": "...",
    "zip_path": "..."
  },
  "sources": [
    "原文URL",
    "(如使用MinerU)MinerU full_zip_url",
    "(如使用MinerU)本地markdown_path"
  ],
  "notes": ["任何重要限制/失败原因/下一步建议"]
}
```

> 注意:`engine` 可能是 `web_fetch` 或 `mineru`。

## MinerU 调用(给 agent 的确定性脚本)

当需要 MinerU 时,用这个命令(返回 JSON,且可把 markdown 内联进 JSON,便于下游总结):

```bash
python3 mineru-extract/scripts/mineru_parse_documents.py \
  --file-sources "<URL>" \
  --model-version MinerU-HTML \
  --emit-markdown --max-chars 20000
```

> **路径说明**: 上述命令假设你在 skills 安装根目录下执行。如果 mineru-extract 安装在其他位置,请替换为实际路径。

## 交付规范(强制)

- 输出必须包含 `sources`(原文入口 + 解析产物入口)。
- 如果 MinerU 成功:必须把 `markdown_path`(本地路径)写进 `sources`,方便复查。
- 如果两条链路都失败:必须明确失败原因,并给出下一步(例如:让 Boss 提供可访问镜像链接 / 允许我用浏览器 relay 导出 HTML / 走上传 HTML 文件解析的兜底方案)。

## 本 skill 自身不做什么

- 不跑 MCP Server(避免常驻服务与运维负担)
- 不试图绕过登录/验证码(这属于访问层问题;我们只做解析层和工作流路由)

## References

- MinerU API docs: https://mineru.net/apiManage/docs
- MinerU output files: https://opendatalab.github.io/MinerU/reference/output_files/

From aAAaqwq/AGI-Super-Team, MIT.

More from aAAaqwq/AGI-Super-Team

Signals

Stars
111
Forks
25
Open issues
1
Last commit (this folder)
Mar 31, 2026 (7 months ago)
Last release
Sep 20, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from aAAaqwq

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get content-extract running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying content-extract?

CallGet help
Cite this page

content-extract skill. Agent Mart. https://agentmart.dev/skills/aaaaqwq-content-extract (last updated 2026-10-24)