documentation-standards
БесплатноБез исполняемых скриптовНе проверенUse when writing README files, API documentation, user guides, or technical documentation following industry standards from Google, Microsoft, and GitLab…
от MadAppGang★ 290 звёзд на GitHubОб этом скилле
Documentation Standards
Overview
Comprehensive documentation standards based on research from Google, Microsoft, GitLab, Red Hat style guides, and 60+ additional sources. Provides templates, best practices, and anti-pattern detection for AI agents writing documentation.
15 Best Practices (Ranked by Consensus)
UNANIMOUS (100% Agreement)
1. Use Active Voice and Present Tense
Why: Reduces cognitive load 20-30%, shortens sentences 15-25%
Implementation:
BAD (passive): The request is processed by the server.
GOOD (active): The server processes the request.
BAD (future): The program will save your file.
GOOD (present): The program saves your file.
Validation: Check for "is/are/was/were + past participle" patterns
2. Start with 5-Minute Quick Start
Why: 70% of visitors are first-time users, time-to-first-success critical
Implementation:
## Quick Start
```bash
npm install my-tool
npx my-tool init
npx my-tool start
Visit http://localhost:3000
That's it!
**Validation**: Can a new user succeed in under 5 minutes with zero context?
---
#### 3. Use Progressive Disclosure (Three-Tier Structure)
**Why**: Accommodates all skill levels, reduces overwhelm
**Implementation**:
Tier 1: Quick Start (2-5 min) -> Copy-paste code, immediate success, no explanations
Tier 2: Tutorial (15-30 min) -> Step-by-step with explanations, build one feature
Tier 3: Reference (lookup) -> Complete API docs, searchable, advanced patterns
---
#### 4. Use Second Person ("You")
**Why**: Increases engagement, reduces word count 15-25%
**Implementation**:
```markdown
BAD: The user should configure the settings.
GOOD: Configure the settings.
BAD: One can install the plugin by...
GOOD: Install the plugin by...
5. Keep Sentences Under 25 Words
Why: Comprehension drops 30% when sentences exceed 30 words
Implementation:
BAD (42 words): The configuration file, which should be located in the
root directory of your project and named .claude, contains all the settings
that are required for the plugin system to function correctly and load
the appropriate agents.
GOOD (18 words): Place the `.claude` configuration file in your project
root. It contains settings for the plugin system and agents.
6. Use Lists and Tables for Comparison
Why: 70% faster comprehension vs paragraphs
Implementation:
## Prerequisites
Before starting, you need:
- [ ] Node.js 18+ installed
- [ ] Git access to GitHub
- [ ] API token configured
## Tool Comparison
| Tool | Best For | Stars | Learning Curve |
|------|----------|-------|----------------|
| Docusaurus | React | 55k+ | Medium |
| VitePress | Vue | 12k+ | Low |
STRONG (67%+ Agreement)
7. Use Language-Specific Documentation Tools
Why: Deep language integration, automatic type inference
Decision Matrix:
Language -> Tool:
- TypeScript -> TSDoc comments + TypeDoc generator
- Python -> Google/NumPy docstrings + Sphinx
- Rust -> /// comments + rustdoc
- Go -> Plain comments + godoc
- Java -> Javadoc
8. Follow Diataxis Framework
Why: Clear taxonomy reduces confusion
Four Types:
| Type | Purpose | Length | When to Use |
|---|---|---|---|
| Tutorial | Teach by doing | 15-60 min | "I'm new, show me" |
| How-To | Solve problem | 5-15 min | "I need to do X" |
| Reference | Describe what exists | As needed | "What parameters?" |
| Explanation | Clarify concepts | 5-30 min | "Why does this work?" |
9. Show Code Examples with Expected Output
Why: Users know what success looks like
Implementation:
### Example: Fetching User Data
**Code:**
```typescript
const user = await api.getUserById('user-123');
console.log(user.name, user.email);
Expected Output:
John Doe [email protected]
Error Case:
const user = await api.getUserById('invalid-id');
// Throws: NotFoundError: User with ID 'invalid-id' not found
---
#### 10. Provide Troubleshooting Section
**Why**: 50%+ of support questions are error-related
**Template**:
```markdown
## Troubleshooting
### Issue: Command not found
**Symptom**: `/implement` returns "command not found"
**Cause**: Plugin not enabled
**Solution**:
1. Check `.claude/settings.json`
2. Run `/plugin reload`
3. Restart if needed
**Prevention**: Verify with `/plugin list`
11. Organize by Task ("How do I...")
Why: Users think in terms of goals, not architecture
Implementation:
## Guides
### How-To Guides (Task-Oriented)
- [How to deploy to production](deploy.md)
- [How to add authentication](auth.md)
- [How to handle file uploads](uploads.md)
12. Add Prerequisites Checklist
Why: Eliminates invisible barriers for beginners
Template:
## Prerequisites
Before starting, ensure you have:
- [ ] Node.js
Установить documentation-standards в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл documentation-standards?
Use when writing README files, API documentation, user guides, or technical documentation following industry standards from Google, Microsoft, and GitLab style guides.
Как установить скилл documentation-standards?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл documentation-standards запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic