跳到正文
Skillpedia
写作15k · #11001

technical-writing

它能做什么

该技能为技术文本设定了清晰的写作标准。适合希望文档、拉取请求说明和提交信息易于阅读的工程师和写作者。

适用场景

  • ✓当你编写或审阅文档、自述文件或 RFC 的时候。
  • ✓当你撰写拉取请求描述或提交信息的时候。
  • ✓当你的技术文本冗长、含糊或充满术语的时候。

技能链接

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/technical-writing/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/technical-writing/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请审阅这份自述文件,把它改得简短清楚,方便团队里的新开发者阅读。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会应用一套写作规则:围绕读者的需要组织文档,使用朴素的句子,删去不起作用的词语,并使用文件和命令的真实名称。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Technical writing

In Claude Code, read the Claude Code adapter once per session before you follow this skill. It maps the Cursor names in pstack skills to Claude Code.

Write so a tired engineer understands on the first read. Apply all four layers.

Three rules sit above the layers:

  • Cut every word that does no work. If the sentence survives without a word, the word goes. "In order to" is "to". "It is important to note that" is nothing.
  • Use the short, everyday word. "Use", not "utilize". "Help", not "facilitate". "Do", not "perform". A long word has to buy its length with precision.
  • When a rule makes a sentence worse, fix the sentence another way or leave it alone. A sentence that follows every rule and sounds like a machine wrote it has failed.

The codebase is the word list. Write the real symbol, file, flag, or command name, not a synonym or a description of it.

Don't invent jargon. Use the words a developer would say out loud: "move", "delete", "a budget that only decreases", not "evacuate", "ratchet", or "endgame". A named pattern is fine when the doc says what it means the first time. Propose a new offender and its replacement as an addition to unslop's abstract-metaphor rule in your reply, with the diff. Don't edit that skill.

Vary the rhythm

A doc can obey every layer and still read machine-written: every sentence clipped short, no view anywhere, nothing specific.

  • Mix sentence lengths on purpose. Short sentences land a point. Longer ones carry a fact with its condition or consequence.
  • One thought per sentence does not mean one length per sentence. Split the sentence that carries two thoughts. Keep the long sentence that carries one.
  • Have a view where the mode allows it. Explanation weighs trade-offs, so say what you make of them instead of listing pros and cons. Reference stays dry.
  • Be specific over sterile. Not "schema changes can cause issues" but "a column rename fails the build".

Pick the mode first (Diátaxis)

One document, one mode. Two questions pick it: does the content inform action (doing) or understanding (thinking), and does it serve learning or work?

  • Action + learning: tutorial.
  • Action + work: how-to.
  • Understanding + work: reference.
  • Understanding + learning: explanation.

Use the compass on a whole document or on one sentence.

Tutorial: learning by doing. The learner's success is your job, not theirs. Open by saying what the learner will build, not what they will "learn". Every step produces a visible result, early and often. Tell them what they should see: the expected output, the prompt change, the log line. Cut explanation to one clause and a link. Stay concrete. Write as "we", in commands: "First, do x. Now, do y."

How-to: steps to a goal. Solve a problem a person has, not an operation the machine can perform. Assume competence and skip teaching. Action only: no digressions, no background, no completeness for its own sake. Link those instead. Allow forks and judgment: "If you want x, do y." Name the guide by the task: "How to calibrate the radar array", not "Radar array calibration".

Reference: facts for lookup. Only describe. No instruction, no persuasion, no opinion. Be dry, complete, and sure. State facts, options, limits, and errors with no hedging. Mirror the structure of the thing described, so code and docs can be navigated together. Put material where readers expect it. Generate from code where possible.

Explanation: understanding and why. One bounded topic, readable away from the product. Each title should tolerate an implicit "About..." in front. Anchor on a real why question. Give context: design decisions, history, constraints, alternatives. Opinion is allowed here and nowhere else.

Don't mix modes: no reference tables inside a tutorial, no tutorial hand-holding inside reference, no arguing inside a how-to. Split and link instead.

Write sentences to the reader (Google developer style)

  • Talk to the reader as "you", in the present tense. "Will" only for things that genuinely happen later.
  • Say who does what: "the compiler checks", not "is checked". Passive is fine only when the actor is unknown or beside the point.
  • Write instructions as commands: "Click Submit." State facts plainly. Never "should be done".
  • Put the condition before the instruction: "To delete the document, click Delete."
  • Put the common case first. Exceptions after.
  • Sound like a
常见问题

它遵循某一种风格指南吗?

不。它会叠加几种标准,例如文档结构模型和 Google 开发者风格指南。

它会把开发者术语换成通俗的词吗?

它更倾向于开发者日常口语中使用的词,同时保留文件、命令行参数和命令的真实名称。

它涵盖提交信息吗?

涵盖。它适用于文档、RFC、自述文件、拉取请求描述和提交信息。

详情

作者的原始描述

Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.

repo: cursor/plugins

热度

GitHub 星标
15k
排名
#11001
许可证
—
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能