documentation

软件研发 工程流程 · 其它 2 文件 EN 原文

写技术文档

Creates, structures, and reviews technical documentation following the Diátaxis framework (tutorials, how-to guides, reference, and explanation pages). Use when a user needs to write or reorganize docs, structure a tutorial vs. a how-to guide, build reference docs or API documentation, create explanation pages, choose between Diátaxis documentation types, or improve existing documentation structure. Trigger terms include: documentation structure, Diátaxis, tutorials vs how-to guides, organize docs, user guide, reference docs, technical writing.

说明语言:英文

来源mcollinaskills ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/mcollina/skills --skill documentation

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: documentation description: "Creates, structures, and reviews technical documentation following the Diátaxis framework (tutorials, how-to guides, reference, and explanation pages). Use when a user needs to write or reorganize docs, structure a tutorial vs. a how-to guide, build reference docs or API documentation, create explanation pages, choose between Diátaxis documentation types, or improve existing documentation structure. Trigger terms include: documentation structure, Diátaxis, tutorials vs how-to guides, organize docs, user guide, reference docs, technical writing." metadata: tags: documentation, technical-writing, tutorials, guides, reference, diataxis ---

When to use

Use this skill when you need to create, review, or improve technical documentation following the Diátaxis framework. Examples include:

Instructions

Organize documentation into four distinct types — tutorials, how-to guides, reference material, and explanations — each serving different user needs and contexts.

Always ask clarifying questions about the user's context, audience, and goals before creating documentation.


Step 1 — Identify the documentation type

Use the following decision checklist based on user signals:

User signalDocumentation type
"I'm new to X and want to learn it" / "walk me through"Tutorial
"How do I…?" / "I need to accomplish X"How-to guide
"What are the parameters/options/syntax for X?"Reference
"Why does X work this way?" / "Help me understand X"Explanation

Quick decision tree:


Step 2 — Apply type-specific patterns

Tutorials (learning-oriented)

Example intro:

"In this tutorial, you will build a simple REST API using Express. By the end, you will have a running server that responds to GET requests. No prior Express experience is needed."

How-to guides (problem-oriented)

Example intro:

"This guide shows how to add JWT authentication to an existing Express app. It assumes you have a working Express server and basic familiarity with middleware."

Reference (information-oriented)

Example entry:

timeout (integer, default: 5000) Maximum time in milliseconds to wait for a response before the request fails. Example: { timeout: 3000 }

Explanations (understanding-oriented)

Example intro:

"Authentication and authorisation are often confused. This page explains the distinction, why both matter, and how common patterns (sessions, tokens, OAuth) approach each concern differently."

Step 3 — Maintain separation and integration


Step 4 — Validate before delivering

TypeValidation check
TutorialCan a beginner complete it end-to-end without external help?
How-to guideDoes it solve the stated problem for an experienced user?
ReferenceCan the user find a specific fact in under 30 seconds?
ExplanationDoes the user understand the why, not just the what?
同类技能
ai-research-exploreai-research-reproductionairflow-dag-patternsanalyze-projectangular-migrationanti-reversing-techniquesapi-design-principlesarchitecture-patterns
本页内容来自开源项目 mcollina, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。