documentation

Write, review, classify, and improve technical documentation. Use when the user asks to write docs, create a tutorial, write a how-to guide, write a getting started guide, document a function or API, explain a concept, review or audit existing documentation, or improve unclear or mixed-content docs.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "documentation" with this command: npx skills add hackmamba-io/docs-best-practices-skill/hackmamba-io-docs-best-practices-skill-documentation

Documentation Skill

Technical documentation serves four distinct user needs. Each need requires a different kind of writing. Mixing types is the most common cause of poor documentation.

The Four Types

TypeUser StateContent KindUser Need
TutorialLearningAction"Help me learn by doing"
How-to GuideWorkingAction"Help me accomplish this task"
ReferenceWorkingKnowledge"Give me the facts I need"
ExplanationLearningKnowledge"Help me understand why"

Classify Before You Write

Ask these two questions:

  1. Is the user learning or working?
  2. Is the content action-based or knowledge-based?

Cross the answers:

  • Learning + Action = Tutorial
  • Learning + Knowledge = Explanation
  • Working + Action = How-to Guide
  • Working + Knowledge = Reference

If the content spans more than one quadrant, split it into separate documents and cross-link them.

Quick Rules Per Type

Tutorial — beginner, learning by doing. Lead with action. No choices for the learner. Minimal explanation (link out). End by describing what was accomplished. See TUTORIALS.md for full rules and template.

How-to Guide — competent user, completing a real task. Title with "How to [task]". Write from the user's goal, not the product's features. Strip explanation — link to it. See HOWTO.md for full rules and template.

Reference — user consulting facts while working. Neutral description only. Mirror the product's architecture. No instructions, no explanation. See REFERENCE.md for full rules and template.

Explanation — user wants to understand why. Answer design decisions, tradeoffs, history. Draw connections. No step-by-step instructions. See EXPLANATION.md for full rules and template.

The Most Common Failures

  • Tutorial/how-to conflation: A tutorial that assumes skill, or a guide that teaches from scratch. Fix: ask "is this user learning or working?"
  • Explanation inside a tutorial: Pausing to discuss why things work. Fix: extract to an explanation doc, replace with one sentence and a link.
  • Instructional reference: API docs that say "To use this, first configure…". Fix: move instructions to a how-to guide.
  • Feature-titled how-to guides: "Database Settings" instead of "How to configure a read replica". Fix: rewrite titles as user tasks.
  • Incomplete reference: Undocumented parameters or fields. Fix: audit reference against the product surface.

Iterative Improvement Workflow

Do not restructure everything at once. Instead:

  1. Choose any single piece of documentation.
  2. Assess: what type should this be? Does it serve that purpose? Who is the reader?
  3. Decide on one specific improvement.
  4. Make that change and consider it complete.
  5. Repeat.

Structure should emerge from improvement, not be imposed from above.

Style at a Glance

TutorialHow-to GuideReferenceExplanation
VoiceWarm, guidingDirect, efficientNeutral, impersonalConversational
PersonSecond ("you will…")Second ("do X")Third ("returns…")Any
InstructionsYes — they are the docYes — they are the docNoNo
ExplanationMinimal, link outNoneNoneYes — it's the point
TonePatientCrispAuthoritativeCurious

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

RepoRead

Analyze GitHub repositories using RepoRead AI. Use when the user asks to "analyze a repo", "generate docs", "security audit a repo", "create a README", or wa...

Registry SourceRecently Updated
1620Profile unavailable
Security

anydocs - Generic Documentation Indexing & Search

Generic Documentation Indexing & Search. Index any documentation site (SPA/static) and search it instantly.

Registry SourceRecently Updated
1.2K0Profile unavailable
Security

Durable Files Weekly Review (Public)

Run a weekly token-optimization audit for durable instruction files in any OpenClaw workspace, generate a markdown report, and propose approval-gated cleanup...

Registry SourceRecently Updated
1650Profile unavailable
Automation

Book-PDF:书籍级PDF手册生成器

深度调研一个主题,生成100页+书籍级PDF手册。模块化HTML片段架构 + 语义化版本管理 + 多Agent并行写作 + Playwright渲染PDF。 当用户需要制作完整的PDF手册、电子书、橙皮书、参考指南时触发。即使用户只是说「做一本书」「做个PDF手册」「做个完整指南」「做一本XX的手册」也应触发。...

Registry SourceRecently Updated
70Profile unavailable