Skip to content
Back to skills

Documentation

ASecurity

Technical documentation patterns, structure, maintenance, and avoiding common documentation failures.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
documentationgoapidocumentation

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add clawic/skills --skill documentation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Documentation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Documentation
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/clawic-documentation/badge)](https://www.skillsdirectory.com/skills/clawic-documentation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Documentation
slug: documentation
version: 1.0.0
description: Technical documentation patterns, structure, maintenance, and avoiding common documentation failures.
homepage: https://clawic.com/skills/documentation
metadata:
  category: writing
  skills:
  - documentation
  - technical-writing
  - readme
  - api-docs
  clawdbot:
    emoji: πŸ“š
    displayName: Documentation
---

## Structure Hierarchy

- README: what it is, how to install, quick example β€” 5 minutes to first success
- Getting Started: guided tutorial for beginners β€” one complete workflow
- Guides: task-oriented ("How to X") β€” goal-focused, not feature-focused
- Reference: exhaustive API/CLI docs β€” complete but not for learning
- Troubleshooting: common errors with solutions β€” search-optimized

## README Essentials

1. One-sentence description β€” what problem it solves
2. Installation β€” copy-paste command that works
3. Quick start β€” minimal example that actually runs
4. Link to full docs β€” don't cram everything in README

Missing any of these = users bounce before trying.

## Code Examples

- Every example must be tested β€” untested examples rot within months
- Show complete runnable code, not fragments β€” users copy-paste
- Include expected output β€” confirms they did it right
- Bad: `client.query(...)` / Good: full script with imports, setup, and output
- Version-pin examples: `npm install package@2.1.0` not `npm install package`

## API Documentation

- Every endpoint needs: method, path, parameters, request body, response, error codes
- Show real request/response bodies β€” not just schemas
- Include authentication in every example β€” most common missing piece
- Document rate limits and pagination upfront β€” not buried in footnotes
- Error responses need as much detail as success responses

## What Gets Outdated

- Screenshots β€” UI changes, screenshots don't
- Version numbers β€” hardcoded versions become wrong
- Links β€” external sites move, break constantly
- "Current" anything β€” write timelessly or add review dates
- Feature flags and experimental warnings β€” often forgotten after GA

## Maintenance Patterns

- Docs live next to code β€” same repo, same PR. Separate repos drift
- CI checks for broken links β€” `markdown-link-check` or equivalent
- Runnable examples as tests β€” if example breaks, build fails
- Review date in docs: "Last verified: 2024-01" β€” signals freshness
- Delete aggressively β€” outdated docs worse than no docs

## Common Failures

- Documenting implementation, not usage β€” users don't care how it works internally
- Assuming context β€” define acronyms, link prerequisites
- Wall of text β€” use headings, bullets, code blocks liberally
- "See X for more info" without link β€” friction kills follow-through
- Changelog as documentation β€” changes β‰  how to use current version

## Writing Style

- Imperative mood: "Run the command" not "You can run the command"
- Second person: "you" not "the user"
- Present tense: "This returns X" not "This will return X"
- Short sentences β€” one idea per sentence
- Active voice: "The function returns X" not "X is returned by the function"

## Searchability

- Use words users search for β€” not internal jargon
- Error messages verbatim in troubleshooting β€” users paste exact errors
- Multiple ways to describe same thing β€” alias common variations
- H2/H3 headings are SEO β€” match user queries
- Avoid clever titles β€” "Getting Started" beats "Your Journey Begins"

## Versioned Documentation

- Major versions need separate docs β€” v1 users shouldn't see v2 docs
- Migration guides between versions β€” step-by-step, not just changelog
- Default to latest stable, link to older versions
- Mark deprecated features clearly β€” don't just remove
- URL structure: `/docs/v2/` not query params

## README Anti-patterns

- Badge spam β€” 15 badges before content
- Massive feature lists β€” save for marketing page
- No installation instructions β€” assuming everyone knows
- Screenshots without context β€” what am I looking at?
- License-only README β€” legal compliance β‰  documentation

Files in this skill

  • SKILL.md4 KB
  • _meta.json178 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…