К основному содержанию
скилл CX Codex

documentation · mcollina — скилл для Claude Code: что делает и как установить

Скилл структурирует техническую документацию по фреймворку Diátaxis. Он помогает писать туториалы, инструкции how-to, справочники и концептуальные статьи без каши в структуре.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add mcollina/skills --skill documentation -a claude-code
Открыть на GitHub

Что делает documentation

Скилл делит документацию на четыре типа: туториалы для новичков, пошаговые руководства для решения конкретных задач, справочные материалы и концептуальные объяснения. Перед генерацией текста агент обязан задать уточняющие вопросы про контекст, аудиторию и цели документа.

Для каждого типа задан чёткий шаблон структуры и правила проверки. Например, туториал требует нумерованных шагов с немедленно проверяемым результатом на каждом этапе. Справочник строится по схеме «имя, тип, значение по умолчанию, описание и пример», чтобы нужный факт находился быстрее тридцати секунд.

Главное правило здесь — не смешивать разные типы в одном документе. Если туториалу нужны подробности параметров, он ссылается на справочник, а не раздувает текст отступлениями.

Какие задачи решает

  • Разделить документацию проекта на туториалы, how-to, справочники и объяснения
  • Сформировать структуру API-документации с единым форматом параметров
  • Написать пошаговый обучающий туториал для новичков
  • Проверить существующие статьи документации на смешение стилей

Примеры запросов агенту

  • Помоги составить API-справочник для нашего REST-сервиса по схеме Diátaxis
  • Напиши туториал по запуску проекта для новых разработчиков
  • Проверь этот гайд: в нём перемешаны пошаговые инструкции и теория архитектуры

Как установить documentation

1Через Skills CLI (Vercel)

npx skills add mcollina/skills --skill documentation -a claude-code

2Вручную: положить файлы

~/.claude/skills/documentation/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/documentation/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора11

fastify-best-practices Скилл обучает ассистента архитектуре серверов на Fastify для Node.js. Он помогает настраивать маршруты, плагины, валидацию схем и логирование через Pino. CX Codex +1 81 400установок node Даёт агенту правила для Node.js и TypeScript: от запуска .ts без сборки до потоков, тестов и остановки сервиса. CX Codex +1 5 900установок typescript-magician Устраняет ошибки TypeScript, заменяет any на строгие типы и строит типобезопасные дженерики. Помогает навести порядок в типах кодовой базы. CX Codex +1 2 800установок nodejs-core Скилл для правок и отладки ядра Node.js: коммиты и PR в nodejs/node, нативные краши, V8, node-gyp, N-API и libuv. CX Codex +1 1 900установок octocat Скилл связывает агента с Git и GitHub через gh CLI. Он пригодится для PR, issue, проверок CI, веток и анализа истории репозитория. CX Codex +1 1 300установок init Собирает AGENTS.md из того, что агент не выведет из кода: нестандартные команды, ловушки, локальные договорённости. И выкидывает из файла всё остальное. CX Codex +1 1 300установок oauth Настраивает авторизацию OAuth 2.0 и 2.1 в приложениях на Fastify с защитой через PKCE и ротацией токенов. Пригодится для проверки JWT, настройки сессий и устранения ошибок redirect URI. CX Codex +1 1 300установок skill-optimizer Скилл для тех, кто пишет и правит скиллы: помогает понять, почему модель их не применяет, и не ухудшают ли они вывод. CX Codex +1 1 400установок

Другие версии documentation

Похожие

documentation-writer официальный github Скилл для создания технической документации по фреймворку Diátaxis: туториалы, гайды, справки и объяснения. Предлагает структуру перед написанием. 27 757установок writing-documentation-with-diataxis sammcj Скилл раскладывает техническую документацию на четыре типа по фреймворку Diataxis и помогает писать или проверять каждый из них. CX Codex +1 615установок technical-writing Mindrally Задаёт правила для написания подробных руководств и документации для разработчиков. Помогает создавать технические статьи без клише и воды. CX Codex +1 1 200установок developer-docs-structure-audit Samuel Berthe Проводит инвентаризацию и аудит структуры документации по методологии Diátaxis. Помогает найти пробелы, смешанные страницы и выстроить очередь правок. CX Codex +1 10 200установок documentation-engineer zhaono1 Скилл для написания технической документации: README, описания API, комментарии к коду и архитектурные заметки. Пригодится, когда проект оброс кодом, а доки к нему нет. CX Codex +1 711установок code-documentation aj-geddes Скилл для написания документации прямо в коде: JSDoc, Python-докстринги, JavaDoc, комментарии и описания API. Пригодится, когда нужно задокументировать функции и классы, а не переписывать их вслепую. CX Codex +1 492установок

Рядом в теме «Тексты и документация»

Всё по теме «Тексты и документация» →

Вопросы о documentation

Как установить documentation в Claude Code?

Выполните в терминале команду npx skills add mcollina/skills --skill documentation -a claude-code. Файлы скилла сохранятся в конфигурацию агента.

Что делает скилл documentation?

Он задаёт правила классификации и оформления технической документации по системе Diátaxis. Ассистент проверяет аудиторию, выбирает нужный формат и формирует структуру страниц без лишних отступлений.

Какие типы документации поддерживает скилл?

Скилл работает с четырьмя форматами: туториалы для обучения новичков на практике, how-to руководства для конкретных рабочих задач, справочники фактов и концептуальные объяснения архитектуры.

Исходный текст

SKILL.md · MIT
---
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:
- Creating user guides
- API documentation
- Tutorial content
- Restructuring existing documentation to better serve different user needs and contexts

## 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 signal | Documentation 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:
- Is the user **learning by doing** for the first time? → Tutorial
- Do they need to **solve a specific problem** they already understand? → How-to guide
- Do they need **technical facts** to look up? → Reference
- Do they want **conceptual background**? → Explanation

---

### Step 2 — Apply type-specific patterns

#### Tutorials (learning-oriented)
- **Title pattern:** Start with a verb — *"Build your first X"*, *"Create a Y from scratch"*
- Structure: Goal → Prerequisites → Numbered steps → Immediate verifiable result at each step → Final outcome
- Minimise explanation; maximise doing
- Every step must produce a visible, testable result
- **Validation:** A beginner must be able to complete the tutorial without external help

**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)
- **Title pattern:** Frame as a task — *"How to configure X"*, *"How to deploy Y to Z"*
- Structure: Goal statement → Assumptions/prerequisites → Numbered steps → Expected result
- Assume baseline knowledge; skip conceptual explanations
- Allow for variation; note alternatives where they exist
- **Validation:** An experienced user can complete the task without confusion or backtracking

**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)
- **Title pattern:** Name the thing — *"Configuration options"*, *"API endpoints"*, *"CLI flags"*
- Structure: Consistent repeatable format per entry (name → type → default → description → example)
- State facts; avoid instruction beyond minimal usage examples
- Keep current; version-stamp if needed
- **Validation:** A user can look up a specific fact in under 30 seconds without reading surrounding content

**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)
- **Title pattern:** Frame as a concept — *"How X works"*, *"Understanding Y"*, *"Why Z is designed this way"*
- Structure: Context → Core concept → Alternatives/trade-offs → Higher-level perspective
- Avoid step-by-step instruction or technical specification
- **Validation:** After reading, the user can explain the concept in their own words and understands the rationale behind design decisions

**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

- Keep each document a single type — don't mix tutorial steps with reference tables or conceptual digressions
- Cross-link between types: a tutorial can link to the relevant reference page; a how-to guide can link to an explanation for background
- Use consistent headings and terminology across all types so users can navigate the full documentation system

---

### Step 4 — Validate before delivering

| Type | Validation check |
|---|---|
| Tutorial | Can a beginner complete it end-to-end without external help? |
| How-to guide | Does it solve the stated problem for an experienced user? |
| Reference | Can the user find a specific fact in under 30 seconds? |
| Explanation | Does the user understand the *why*, not just the *what*? |

© mcollina · MIT · mcollina/skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой