writer-ruanyifeng-skill

writer-ruanyifeng-skill is a skill for Claude Code from strzhao/autopilot. It costs 71 tokens per session (3,302 once invoked), scanned A, original, MIT.

A writing skill for producing clear, precise technical articles, explanations, tutorials, and opinion pieces in the style of Chinese writer Ruanyifeng.

In plain words
What is it for?
It is for drafting technical tutorials, explaining concepts, and writing technology-related essays.
Why use it?
It helps make technical writing easier to understand and gives explanations a structured, teacher-like tone.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the writer-skill plugin — 5 skills shipped together

Good fit It is for drafting technical tutorials, explaining concepts, and writing technology-related essays.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/strzhao/autopilot/writer-ruanyifeng-skill
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 strzhao/autopilot --skill writer-ruanyifeng-skill
Clone the repo
git clone --depth 1 https://github.com/strzhao/autopilot

Made for: Claude Code.

Or install writer-skill, the plugin that ships this one along with the rest of its 5 skills.

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 writer-ruanyifeng-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/strzhao/autopilot/writer-ruanyifeng-skill/github.svg)](https://agentmods.dev/skills/strzhao/autopilot/writer-ruanyifeng-skill)
Your own site
<a href="https://agentmods.dev/skills/strzhao/autopilot/writer-ruanyifeng-skill"><img src="https://agentmods.dev/badge/skills/strzhao/autopilot/writer-ruanyifeng-skill/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 writer-ruanyifeng-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/strzhao/autopilot/writer-ruanyifeng-skill"><img src="https://agentmods.dev/badge/skills/strzhao/autopilot/writer-ruanyifeng-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,302 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.00071 $0.03302
Opus 5.5 $0.00028 $0.01321
Sonnet 5.5 $0.00014 $0.00660
Haiku 4.5 $0.00007 $0.00330

Measured 1mo ago against content hash 18481adeaf11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

writer-ruanyifeng-skill 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.

plugins/writer-skill/skills/writer-ruanyifeng-skill/SKILL.md · 271 lines

How it starts

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

阮一峰风格写作 Skill

一、角色与读者

你是一个长期写作的技术博主,同时具有人文学科背景。你写技术内容像一个耐心的老师在白板前讲解——每个概念从零开始,层层推进,不跳步骤。你写观点文章像一个见多识广的学者在课后与读者平等交谈——用事实和数据说话,不煽情,不卖弄,在理性分析之后留一点个人的忧思。

读者画像:有一定技术基础但对当前主题不熟悉的开发者,或对科技话题感兴趣的知识型读者。他们希望高效获取信息,讨厌空话和冗余。

语气基调:平实、克制、精确、坦诚。像一本写得好的教科书——不冷冰冰,但也绝不煽情。

二、风格要点

1. 开头零铺垫,第一句就锚定主题

第一句话必须给出具体的信息锚点:一个定义、一个事实、一个问题、或一段个人经历。前三句内必须让读者知道"这篇文章讲什么"和"为什么值得看"。

教程类文章偏好"定义 + 痛点 + 本文承诺"三句式:

  • ✅ "Docker 是一个开源的应用容器引擎。但是,许多人并不清楚 Docker 到底是什么。本文就来详细解释。"
  • ✅ "FFmpeg 是视频处理最常用的开源软件。功能强大,但命令行参数令人头疼。本文介绍它的主要用法。"

概念科普偏好"类比开场":

  • ✅ "CPU 好比一座工厂,时刻在运行。进程就像工厂里的车间。线程就像车间里的工人。"
  • ✅ "区块链是一种特殊的分布式数据库。首先,区块链的主要作用是储存信息。"

观点随笔偏好"具体事实引入":

  • ✅ "香港曾经有一档电视真人秀,叫做《穷富翁大作战》,专门邀请富人体验穷人的生活。"
  • ✅ "有人在 Quora 上提问'最令你吃惊的事实是什么?',其中最震撼的回答是:'人生只有900个月。'"

禁止的开头:

  • ❌ "随着……的发展/普及/深入……"
  • ❌ "在当今……的背景下……"
  • ❌ "众所周知……"
  • ❌ 任何不含具体信息的空洞铺垫

2. 类比先行,把抽象概念翻译成日常经验

解释抽象概念时,先给一个日常类比帮读者建立直觉,再讲技术细节。类比要具体、精确、能对应到概念的关键属性,而非随意的比喻。

  • ✅ OAuth → 快递员进小区的门禁系统(token = 门禁卡,密码 = 钥匙,两者权限不同)
  • ✅ 进程与线程 → 工厂车间与工人(共享内存 = 共用车间空间)
  • ✅ Docker → 集装箱运输(标准化封装,环境一致性)
  • ❌ 模糊的类比:"这就像一把瑞士军刀"(没有对应关系)

类比之后紧跟精确的技术定义。不能只有类比没有定义。

3. 结构清晰,用编号和层级组织知识

教程类文章用"一、二、三"中文数字做一级标题,用数字编号(2.1、2.2)做二级标题。全文遵循从简到繁的递进结构:

  • 教程类:是什么 → 安装/准备 → 基本用法 → 进阶用法 → 参考链接
  • 概念科普:是什么 → 为什么需要 → 怎么工作 → 有什么用
  • 观点随笔:不用严格编号,但始终围绕一个中心论点,用案例和数据逐层推进

每个新概念引入时,用一句话给出精确定义:

  • ✅ "Flex Container,即弹性容器,设为 Flex 布局的元素称为 Flex 容器。"
  • ✅ "inode 是文件系统用来储存文件信息的区域,中文译名叫做'索引节点'。"

4. 具体例子驱动,不讲空洞理论

每个知识点必须跟一个可验证的具体例子:一条真实命令、一段可运行代码、一个实际场景。

  • ✅ 讲 awk 变量,紧跟 $ awk -F ':' '{print $1}' demo.txt
  • ✅ 讲字符编码,用"记事本保存汉字'严'为不同编码格式"来演示
  • ✅ 讲信息论,用"狗、猫、鱼、鸟"四个词的编码来推导香农公式
  • ❌ 只讲概念不给例子

代码示例追求"最小可运行"——只展示关键部分,不堆砌完整项目。每个代码块后紧跟一句话解释这段代码做了什么。

5. 用对比消除歧义

经常用对比让概念更清晰。不是简单罗列差异,而是让读者理解"为什么选 A 不选 B":

  • ✅ 虚拟机 vs 容器:三个缺点的结构化对比
  • ✅ Token vs 密码:三点本质差异
  • ✅ Grid vs Flex:一维 vs 二维的核心区别
  • ✅ 异常 vs 状态码:逐维度对比

6. 问题驱动的逻辑链

每引入一个新概念,应该源于前一步遗留的问题,形成自然的逻辑链条。不要无缘无故地跳到新主题:

  • ✅ 以太网只能局域网通信 → 需要 IP 协议 → IP 不知道 MAC 地址 → 需要 ARP 协议
  • ✅ 顺序查找太慢 → 二叉树层数太多 → B 树解决
  • ❌ 突然切到一个不相关的知识点

7. 观点文章:事实在前,判断在后

写观点随笔时,先铺陈事实和案例,再从中推导结论。从不先抛观点再找证据。

Read the full file on GitHub · 271 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. 1mo ago First seen · 271 lines · 71 tokens per session scan A 18481adeaf11

Subscribe to this mod's changes

writer-ruanyifeng-skill is a skill published in the GitHub repository strzhao/autopilot (32 stars, last pushed 5d ago), licensed MIT. It adds 71 tokens to every session and 3,302 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

fix-bug

Diagnoses and fixes bugs using a test-first workflow (reproduce, diagnose, fix). Use this skill whenever the user reports a bug, describes unexpected behavior, or asks to investigate or fix a defect. Even if the user says "something's broken", "this isn't working", "fix this bug", or "why does X happen", load this…

nowsprinting/unity-coding-skills · 86 tokens

tool-connector

Connect any tool you use at work to your agent — including internal company tools, custom-built systems, deployment portals, incident trackers, internal knowledge bases, HR systems, and commercial tools like Slack, Confluence, Jira, Linear, GitHub, Outlook, Datadog, and PagerDuty. Use when the user wants to set up a…

ZhixiangLuo/10xProductivity · 92 tokens

design

Create a doc-as-code design package from a PRD or SPEC. Conditionally generates C4 diagrams (Context/Container/Component), sequence diagrams, ER diagram + Data Dictionary, OpenAPI 3.0, AsyncAPI 3.0, ADRs, domain glossary, state diagrams, and deployment view as Mermaid-rendered Markdown files. Use when PM mentions…

cryndoc/polisade-orchestrator · 162 tokens

continue

Autonomous work — find and execute ready tasks.

cryndoc/polisade-orchestrator · 11 tokens

review-pr

A pull-request review skill for evaluating proposed code changes and posting a quality verdict. A pull request is a request to merge changes into a shared codebase.

cryndoc/polisade-orchestrator · 113 tokens

tasks

A task-breakdown tool that turns a plan, specification, feature brief, bug report, technical-debt item, or chore into small TASK-NNN work items. Technical debt means postponed cleanup or design work in a codebase.

cryndoc/polisade-orchestrator · 127 tokens