juejin-article-to-markdown

juejin-article-to-markdown is a skill for Claude Code, Codex from HK-hub/AgentSkills. It costs 74 tokens per session (4,008 once invoked), scanned A, original, MIT.

A tool for turning articles from Juejin, a Chinese technology publishing site, into clean Markdown files.

In plain words
What is it for?
It helps save Juejin articles as notes while preserving metadata, code blocks, tables, images, and useful formatting.
Why use it?
It removes page navigation, comments, recommendations, buttons, and other website content that gets in the way when copying an article.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps save Juejin articles as notes while preserving metadata, code blocks, tables, images, and useful formatting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hk-hub/agentskills/juejin-article-to-markdown
Install

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.

Any agent
npx skills add HK-hub/AgentSkills --skill juejin-article-to-markdown
Clone the repo
git clone --depth 1 https://github.com/HK-hub/AgentSkills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for juejin-article-to-markdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/hk-hub/agentskills/juejin-article-to-markdown/github.svg)](https://agentmods.dev/skills/hk-hub/agentskills/juejin-article-to-markdown)
Your own site
<a href="https://agentmods.dev/skills/hk-hub/agentskills/juejin-article-to-markdown"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/juejin-article-to-markdown/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.

agentmods 80×15 button for juejin-article-to-markdown

Your own site · 80×15
<a href="https://agentmods.dev/skills/hk-hub/agentskills/juejin-article-to-markdown"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/juejin-article-to-markdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.04008
Opus 5 $0.00037 $0.02004
Sonnet 5 $0.00015 $0.00802
Haiku 4.5 $0.00007 $0.00401

Measured 9d ago against content hash 1eb67e781beb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

juejin-article-to-markdown 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 9d 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.

juejin-article-to-markdown/SKILL.md · 506 lines

How it starts

The opening of the file, as written. The whole thing — 506 lines — stays where its author put it; the contents beside it link to each section on GitHub.

掘金文章转 Markdown

概述

掘金文章页面包含大量无关内容(导航栏、侧边栏、评论区、推荐文章、代码块按钮等),直接复制粘贴会产生格式问题。此 Skill 提供一套完整的处理流程,将掘金文章转换为干净、规范的 Markdown 文件。

触发条件

  • 用户提供掘金文章链接(juejin.cn/post/
  • 用户说"保存掘金文章"、"另存掘金为 Markdown"
  • 用户想要整理掘金文章到笔记库

完整处理流程

第一步:获取文章内容

同时获取 HTML 和 Markdown 两种格式(并行请求):

# 请求 1:HTML 格式(用于提取元信息和图片位置)
mcp__ScraplingServer__stealthy_fetch
  - url: 掘金文章链接
  - extraction_type: html
  - main_content_only: true
  - wait: 2000

# 请求 2:Markdown 格式(用于提取正文内容)
mcp__ScraplingServer__stealthy_fetch
  - url: 掘金文章链接
  - extraction_type: markdown
  - main_content_only: true
  - wait: 2000

第二步:提取文章元信息

从 HTML 或 Markdown 开头提取:

字段 提取方式 说明
标题 <h1># 标题 文章主标题
作者 作者名称字段 作者用户名
发布日期 日期字段 格式:YYYY-MM-DD
阅读量 阅读数字段 可选
标签 标签列表 文章标签
专栏 专栏名称 可选

第三步:清理无关内容

必须移除的内容:

  1. 导航栏和页眉

    • 首页、沸点、课程、数据标注、AI Coding 等导航
    • 搜索框
    • 创作者中心
    • 登录/注册按钮
  2. 侧边栏和推荐

    • 搜索建议
    • 精选内容
    • 为你推荐文章列表
    • 目录(可选择性保留简化版)
  3. 评论区

    • 评论列表
    • 评论输入框
    • 点赞、屏蔽、举报按钮
  4. 页脚和推广

    • 下载APP提示
    • 微信公众号二维码
    • 新浪微博链接
    • AI代码助手推广
  5. 代码块无关内容

    • "体验AI代码助手"按钮文字
    • "代码解读"按钮文字
    • "复制代码"按钮文字
  6. 互动元素

    • 点赞、收藏、分享按钮
    • 关注按钮
    • 专栏订阅按钮

第四步:处理代码块

掘金代码块会包含无关的按钮文字,需要清理:

清理模式:

# 原始(有问题)
```bash

体验AI代码助手

代码解读

复制代码

# 实际代码
git clone https://github.com/xxx

清理后

# 实际代码
git clone https://github.com/xxx

**处理规则:**
1. 识别代码块开始(```language)
2. 删除代码块开头的空白行
3. 删除"体验AI代码助手"、"代码解读"、"复制代码"等无关行
4. 保留实际代码内容
5. 确保代码块正确闭合

### 第五步:处理图片

**掘金图片特点:**

| 域名 | 处理方式 | 说明 |
|------|---------|------|
| `p*-xtjj-sign.byteimg.com` | **保留** | 文章正文图片 |
| `p*-juejin-sign.byteimg.com` | **保留** | 文章正文图片 |
| `p1-juejin.byteimg.com` | **保留** | 封面图等 |
| `lf-web-assets.juejin.cn` | **丢弃** | Logo、图标等装饰 |
| `p*-passport.byteacctimg.com` | **丢弃** | 用户头像 |

**图片链接格式:**

https://p9-xtjj-sign.byteimg.com/tos-cn-i-73owjymdk6/xxx~tplv-73owjymdk6-jj-mark-v1:0:0:0:0:q75.awebp?rk3s=xxx&x-expires=xxx&x-signature=xxx

Read the full file on GitHub · 506 lines

Changes

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.

  1. 9d ago First seen · 506 lines · 74 tokens per session scan A 1eb67e781beb

Subscribe to this mod's changes

juejin-article-to-markdown is a skill published in the GitHub repository HK-hub/AgentSkills (6 stars, last pushed 25d ago), licensed MIT. It adds 74 tokens to every session and 4,008 once invoked, about $0.0004 per session on Opus 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-09-03.