Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wpsnote/wpsnote-skills --skill web-importergit clone --depth 1 https://github.com/wpsnote/wpsnote-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wpsnote/wpsnote-skills/web-importer)<a href="https://agentmods.dev/skills/wpsnote/wpsnote-skills/web-importer"><img src="https://agentmods.dev/badge/skills/wpsnote/wpsnote-skills/web-importer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wpsnote/wpsnote-skills/web-importer"><img src="https://agentmods.dev/badge/skills/wpsnote/wpsnote-skills/web-importer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00187 | $0.01944 |
| Opus 5.5 | $0.00075 | $0.00778 |
| Sonnet 5.5 | $0.00037 | $0.00389 |
| Haiku 4.5 | $0.00019 | $0.00194 |
Grade A, and why
web-importer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Web Importer — 网页高质量导入 WPS 笔记
将网页或微信公众号文章直接导入 WPS 笔记,保留原文的颜色、粗体、标题推断、blockquote 高亮块,图片按位置插入。
现已支持 X/Twitter 推文和 Thread:统一通过 web_fetch 获取当前可见内容,抓到图片链接时按原文位置插入笔记。
核心原则
不要把抓取回来的 Markdown 原样写进 WPS 笔记。当前入口是 web_fetch / web_search,抓回来的主内容需要先整理为 WPS XML,再写入笔记;图片仍然单独插入。
正确路径:
网页 URL
↓
web_fetch / web_search / batch_web_search
↓
网页正文 + 图片链接
↓
整理成 WPS XML
↓
create_note + batch_edit(正文 + 图片占位符写入 WPS)
↓
get_note_outline / read_blocks(找占位符)
↓
insert_image(逐张插图)
快速使用
# 用户直接给 URL
web_fetch "https://mp.weixin.qq.com/s/xxxxx"
create_note
batch_edit
insert_image
sync_note
# 用户只给标题或模糊描述
web_search "文章标题或关键词"
ask_user(候选链接不唯一时)
web_fetch "确认后的 URL"
create_note
batch_edit
insert_image
sync_note
两种模式对比
| 直接抓取模式 | 搜索定位模式 | |
|---|---|---|
| 入口 | 用户直接给 URL | 用户只给标题 / 关键词 |
| 获取正文 | web_fetch |
web_search / batch_web_search + web_fetch |
| 输出 | 直接写入 WPS 笔记 | 直接写入 WPS 笔记 |
| 候选确认 | 一般不需要 | 多个候选时用 ask_user |
| 图片 | insert_image 按位置插入 |
insert_image 按位置插入 |
| 回读验收 | read_note / read_section / read_blocks |
read_note / read_section / read_blocks |
X/Twitter 支持说明
X 的内容仍然可能受到动态渲染、登录态和线程展开限制影响。当前 Skill 统一依赖 web_fetch 返回的可见正文和图片链接,不额外假设浏览器渲染能力。
工作流程
X 推文 URL
↓
web_fetch 获取当前可见正文
↓
提取正文 + 图片链接
↓
整理成 WPS XML
↓
写入 WPS 笔记
注意事项
| 场景 | 说明 |
|---|---|
| 公开推文 | 优先导入当前可见正文 |
| 需要登录的推文 | 可能拿不到正文,需明确告诉用户 |
| 长 Thread | 只导入当前工具能稳定抓到的内容 |
| 视频 | 仅保留可见文字与可插入图片,不承诺视频本体 |
| 转推 / 引用推文 | 以当前抓到的主内容为准 |
html_to_segments 解析逻辑
当前不再依赖 html_to_segments 本地脚本,但处理目标不变:把网页结构整理为 WPS XML,并尽量保留原文层级和重点样式。
网页内容 → WPS XML 映射
| 网页结构 / Markdown | WPS XML |
|---|---|
**加粗** / 粗体语义 |
<strong> |
*斜体* / 斜体语义 |
<em> |
| 一级到三级标题 | <h1> / <h2> / <h3> |
| 引用块 | <blockquote> |
| 无序 / 有序列表 | <ul> / <li> |
| 表格 | <table> |
| 链接 | 在段落中保留文本和 URL |
颜色映射精度
如果抓取结果能明确保留颜色语义,可在 WPS XML 中映射到可用样式;如果抓取结果已丢失颜色信息,就不要伪造颜色。
section 展平逻辑
网页存在多层嵌套时,按最终阅读顺序展平为标题、正文、引用、列表、表格和图片占位符,再写入 WPS。
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 207 lines · 187 tokens per session scan A af3dd76154e8
web-importer is a skill published in the GitHub repository wpsnote/wpsnote-skills (183 stars, last pushed today), licensed MIT. It adds 187 tokens to every session and 1,944 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
research-hub
Use research-hub to operate Zotero, Obsidian, and NotebookLM research workflows through CLI, MCP, REST, and dashboard. Trigger when the user asks to find papers, ingest sources, organize a literature review, build Obsidian research notes, upload sources to NotebookLM, inspect clusters, generate AI briefs, or maintain…
write-docs-cn
A guide to writing project documentation, especially README files. It explains how tutorials differ from reference material and where each kind of information belongs.
write-tech-cn
A writing guide for Chinese technical documents such as READMEs, tutorials, blogs, and technical explanations. It focuses on direct conclusions, clear actions, natural Chinese, and consistent technical terms.
pdf-image-text-extractor
A tool for reading text from images and PDF files, including scanned documents. OCR means recognizing printed or handwritten characters in an image and turning them into editable text.
bilibili-keywords-search
A search tool for finding newly published videos on Bilibili, a Chinese video-sharing platform, by keyword. It can sort results, limit them by publication date, and show additional result pages.
youtube-digest
A transcript extractor for YouTube videos. It reads available subtitles or automatically generated captions, can translate non-Chinese captions into Chinese, and can export the text to Excel, a spreadsheet application.