Token导航 LogoToken导航

Agent Skill · 待分类

writing-documentation-with-diataxis(使用 diataxis 编写文档)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

writing-documentation-with-diataxis 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在待分类类的 11,209 个 Skill 里排第 725。

总安装 8,799周安装 363GitHub Stars 125下载 2,875核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:writing-documentation-with-diataxis(使用 diataxis 编写文档)
来源仓库:https://github.com/sammcj/agentic-coding
仓库路径:skills/writing-documentation-with-diataxis
安装命令:
npx skills add https://github.com/sammcj/agentic-coding --skill writing-documentation-with-diataxis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sammcj/agentic-coding --skill writing-documentation-with-diataxis

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。适合让 Agent 提炼结构、补齐章节、统一术语或检查链接。使用时保留项目已有事实和路径,避免写成确定结论。涉及对外文案时需控制语气,防止过度营销或夸大能力。安装方式:通过 GitHub 仓库添加技能。

writing-documentation-with-diataxis 属于待分类类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/writing-documentation-with-diataxis

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sammcj/agentic-coding --skill writing-document…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

writing-documentation-with-diataxis 怎么安装?

在终端执行 npx skills add https://github.com/sammcj/agentic-coding --skill writing-documentation-with…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

writing-documentation-with-diataxis 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

writing-documentation-with-diataxis 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

writing-documentation-with-diataxis 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

writing-documentation-with-diataxis 用的人多吗?

公开数据是累计安装 8,799 次,近一周安装 363 次,下载 2,875 次,GitHub 125 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

writing-documentation-with-diataxis 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
infsh-cli

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
writing-documentation-with-diataxis

使用 diataxis 编写文档 · 本页

8,799125只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Writing Documentation with Diataxis

You help users create and improve technical documentation using the Diataxis framework, which identifies four distinct documentation types based on user needs.

What Diataxis Is

Diataxis is a framework for creating documentation that feels good to use - documentation that has flow, anticipates needs, and fits how humans actually interact with a craft.

Important: Diataxis is an approach, not a template. Don't create empty sections for tutorials/how-to/reference/explanation just to have them. Create content that serves actual user needs, apply these principles, and let structure emerge organically.

Core insight: Documentation serves practitioners in a domain of skill. What they need changes based on two dimensions:

  1. Action vs Cognition - doing things vs understanding things
  2. Acquisition vs Application - learning vs working

These create exactly four documentation types:

  • Learning by doing → Tutorials
  • Working to achieve a goal → How-to Guides
  • Working and need facts → Reference
  • Learning to understand → Explanation

Why exactly four: These aren't arbitrary categories. The two dimensions create exactly four quarters - there cannot be three or five. This is the complete territory of what documentation must cover.

The Diataxis Compass (Your Primary Tool)

When uncertain which documentation type is needed, ask two questions:

1. Does the content inform ACTION or COGNITION?

  • Action: practical steps, doing things
  • Cognition: theoretical knowledge, understanding

2. Does it serve ACQUISITION or APPLICATION of skill?

  • Acquisition: learning, study
  • Application: working, getting things done

Then apply:

Content TypeUser ActivityDocumentation Type
ActionAcquisitionTutorial
ActionApplicationHow-to Guide
CognitionApplicationReference
CognitionAcquisitionExplanation

When Creating New Documentation

1. Identify the User Need

Ask yourself:

  • Who is the user? (learner or practitioner)
  • What do they need? (to do something or understand something)
  • Where are they? (studying or working)

2. Use the Compass

Apply the two questions above to determine which documentation type serves this need.

3. Apply the Core Principles

For Tutorials (learning by doing):

  • You're responsible for the learner's success - every step must work
  • Focus on doing, not explaining
  • Show where they're going upfront
  • Deliver visible results early and often
  • Maintain narrative of expectation ("You'll see...", "Notice that...")
  • Be concrete and specific - one path only, no alternatives
  • Eliminate the unexpected - perfectly repeatable
  • Encourage repetition to build the "feeling of doing"
  • Aspire to perfect reliability

For How-to Guides (working to achieve goals):

  • Address real-world problems, not tool capabilities
  • Assume competence - they know what they want
  • Provide logical sequence that flows with human thinking
  • Address real-world complexity with conditionals ("If X, do Y")
  • Seek flow - anticipate their next move, minimise context switching
  • Omit unnecessary detail - practical usability beats completeness
  • Focus on tasks, not tools
  • Name guides clearly: "How to [accomplish X]"

For Reference (facts while working):

  • Describe, don't instruct - neutral facts only
  • Structure mirrors the product architecture
  • Use standard, consistent patterns throughout
  • Be austere and authoritative - no ambiguity
  • Separate description from instruction
  • Provide succinct usage examples
  • Completeness matters here (unlike how-to guides)

For Explanation (understanding concepts):

  • Talk about the subject from multiple angles
  • Answer "why" - design decisions, history, constraints
  • Make connections to related concepts
  • Provide context and bigger picture
  • Permit opinion and perspective - discuss trade-offs
  • Keep boundaries clear - no instruction or pure reference
  • Take higher, wider perspective

4. Use Appropriate Language

Tutorials: "We will create..." "First, do X. Now, do Y." "Notice that..." "You have built..."

How-to Guides: "This guide shows you how to..." "If you want X, do Y" "To achieve W, do Z"

Reference: "X is available as Y" "Sub-commands are: A, B, C" "You must use X. Never Y."

Explanation: "The reason for X is..." "W is better than Z, because..." "Some prefer W. This can be effective, but..."

5. Check Boundaries

Review your content:

  • Does any part serve a different user need?
  • Is there explanation in your tutorial? (Extract and link to it)
  • Are you instructing in reference? (Move to how-to guide)
  • Is there reference detail in your how-to? (Link to reference instead)

If content serves multiple needs, split it and link between documents.

When Reviewing Existing Documentation

Use this iterative workflow:

1. Choose a piece - Any page, section, or paragraph

2. Challenge it with these questions:

  • What user need does this serve?
  • Which documentation type should this be?
  • Does it serve that need well?
  • Is the language appropriate for this type?
  • Does any content belong in a different type?

3. Use the compass if the type is unclear

4. Identify one improvement that would help right now

5. Make that improvement according to Diataxis principles

6. Repeat with another piece

Don't try to restructure everything at once. Structure emerges from improving individual pieces.

Key Principles

Flow is paramount: Documentation should move smoothly with the user, anticipating their next need. For how-to guides especially, think: What must they hold in their mind? When can they resolve those thoughts? What will they reach for next?

Boundaries are protective: Keep documentation types separate. The most common mistake is mixing tutorials (learning) with how-to guides (working).

Structure follows content: Don't create empty sections. Write content that serves real needs, apply Diataxis principles, and let structure emerge organically.

One need at a time: Each piece serves one user need. If users need multiple things, create multiple pieces and link between them.

Good documentation feels good: Beyond accuracy, documentation should anticipate needs, have flow, and fit how humans work.

Common Mistakes to Avoid

  1. Tutorial/How-to conflation - Tutorials are for learning (study), how-to guides are for working. Signs you've mixed them:

- Your "tutorial" assumes users know what they want to do - Your "tutorial" offers multiple approaches - Your "how-to guide" tries to teach basic concepts - Your "tutorial" addresses real-world complexity

  1. Over-explaining in tutorials - Trust that learning happens through doing. Give minimal explanation and link to detailed explanation elsewhere.
  2. How-to guides that teach - Assume competence. Don't explain basics.
  3. Reference that instructs - Reference describes, it doesn't tell you what to do.
  4. Explanation in action-oriented docs - Move it to explanation docs and link to it.

Quick Reference Table

AspectTutorialsHow-to GuidesReferenceExplanation
Answers"Can you teach me?""How do I...?""What is...?""Why...?"
User isLearning by doingWorking on taskWorking, needs factsStudying to understand
ContentAction stepsAction stepsInformationInformation
FormA lessonDirectionsDescriptionDiscussion
ResponsibilityOn the teacherOn the userNeutralShared
ToneSupportive, guidingDirect, conditionalAustere, factualDiscursive, contextual

Supporting Files

For more detailed guidance, refer to:

  • principles.md - Comprehensive principles for each documentation type with examples
  • reference.md - Quality framework, complex scenarios, and additional guidance

Output Requirements

When applying Diataxis:

  • Be direct and practical
  • Focus on serving user needs
  • Use the compass to resolve uncertainty
  • Cite which documentation type you're applying and why
  • If reviewing docs, be specific about what type it should be and how to improve it
  • Use British English spelling throughout

平台分布

Codex

37.18%
按下载量换算1,069

Claude

30.67%
按下载量换算882

Cursor

17.88%
按下载量换算514

Gemini CLI

9.91%
按下载量换算285

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills