Article Fetch logo

Article Fetch

Community
threerocks
article-fetch

文章抓取:把一篇文章转成干净的 Markdown(article.md,带标题、作者、平台、日期、链接的 front matter)。支持 X/Twitter 长文、帖子与线程(FxTwitter,不需要登录)、普通网页、微信公众号文章、本地 Markdown / 文本 / HTML 文件。article2media 的第一步,也可以单独用。Use when the user wants an article, X post or thread, web page or 公众号文章 fetched / saved / converted to Markdown (抓取文章、把这篇存成 markdown、提取正文、导出原文), or when another article2media skill needs the original text from a URL.

Overview

Publisherthreerocks
Repositoryarticle2media
Skill namearticle-fetch
Stars
610
Forks
96
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by threerocks on GitHub. Read the source before you install it.

Installation

Install the Article Fetch AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/threerocks/article2media/tree/main/skills/article-fetch
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/threerocks/article2media.git /tmp/article2media
mkdir -p .claude/skills
cp -r /tmp/article2media/skills/article-fetch .claude/skills/article-fetch
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Article Fetch in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Article Fetch on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Article Fetch is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

文章抓取(article-fetch)

路径约定:文中的 ${CLAUDE_SKILL_DIR} 指本 SKILL.md 所在的目录。宿主没有替换这个变量时(命令里原样出现 ${CLAUDE_SKILL_DIR}),把它换成这个目录的绝对路径再运行;../<名字>/ 指同级的另一个 skill 目录。

把任意文章变成 article.md:后面所有能力(改写、翻译、长图、卡片、公众号、口播、白板、漫画)都从这份文件开始。视频不归这里管,用 video-transcript。

参数:$ARGUMENTS

1. 环境检查(本会话第一次)

bash
node ${CLAUDE_SKILL_DIR}/scripts/doctor.mjs

需要 Node 22+;网页和公众号要用到本机 Chrome。缺的是要用户自己安装的东西时,把修复建议转告用户,然后停下;其他失败(例如 Chrome 启动超时)先自己排查、重试一次。

2. 抓取

bash
node ${CLAUDE_SKILL_DIR}/scripts/fetch.mjs "<url 或文件>"            # 默认输出到 ./article2media-out/<slug>/
node ${CLAUDE_SKILL_DIR}/scripts/fetch.mjs "<url>" --out <目录>      # 指定目录
  • X / Twitter:通过 FxTwitter 公开 API,长文、帖子、线程都支持,不需要登录。x.com/i/article/… 这种内部链接解析不了,请用户给发布文章的那条推文链接。
  • 普通网页:依次尝试 r.jina.ai、defuddle.md,最后用本地 Chrome 提取。加 --no-proxy 不经过第三方服务。
  • 微信公众号:直接用本地 Chrome 提取。
  • 本地文件:Markdown / 文本直接读,HTML 用 Chrome 提取正文。--title、--author 可以补标题和作者。
  • 用户直接粘贴正文:不用抓取,自己写 ./article2media-out/<简短英文 slug>/article.md:front matter 写 title、author、platform、date,正文第一行 # 标题,其余原样粘贴,不改字。
  • 给的是视频链接、音视频或字幕文件时,脚本会拒绝并提示:改用 video-transcript。

输出:<目录>/article.md、meta.json;终端打印一段 JSON(目录、标题、作者、平台、字数)。

3. 检查

完整读一遍 article.md:

  • 正文明显不全(只有摘要、被登录墙截断、只抓到评论区)时,告诉用户,请对方粘贴正文;
  • 标了 <!-- 未识别的内容块 --> 的地方可能缺内容,交付时说明。
  • 脚本提示「⚠ 正文只有 N 字,主要内容可能在视频 / 图里」时(常见于图解帖、短视频帖):X 帖子的视频写成了「封面图 + ▶ 视频链接」。先看图;视频用 ffmpeg 抽帧(第一帧常是带标注的完整图解)看画面。有配音的交给 video-transcript;只有画面文字的,把文字按原语言逐字整理进 article.md(放在对应的图 / 视频后面,用原文的分组做小标题),交付时说明哪些内容来自画面。

4. 交付

单独使用时:给出 article.md 的绝对路径、标题、作者、平台、字数,以及上面发现的缺漏。 在组合里:把目录交给下一个能力(见 ../article2media/references/pipeline.md)。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Article Fetch AI skill do?

文章抓取:把一篇文章转成干净的 Markdown(article.md,带标题、作者、平台、日期、链接的 front matter)。支持 X/Twitter 长文、帖子与线程(FxTwitter,不需要登录)、普通网页、微信公众号文章、本地 Markdown / 文本 / HTML 文件。article2media 的第一步,也可以单独用。Use when the user wants an article, X post or thread, web page or 公众号文章 fetched / saved / converted to Markdown (抓取文章、把这篇存成 markdown、提取正文、导出原文), or when another article2media skill needs the original text from a URL.

Why use Article Fetch on TypingMind?

Because you install it once and use it with any model. Article Fetch is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Article Fetch in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/threerocks/article2media/tree/main/skills/article-fetch. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Article Fetch?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Article Fetch?

As many as you like. As long as a model supports skills, you can use Article Fetch with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Article Fetch AI skill free?

Yes. It is published on GitHub by threerocks under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇