agentleFS
rjdelleceserjdellecese/confect/.agents/skills/writing-technical-documentation/SKILL.md

writing-technical-documentation

Skill381 starsChanged 8 days agoISCView on GitHub

Guides writing clear, well-structured technical documentation following Mintlify's best practices (Diátaxis framework, audience awareness, style/tone, navigation, SEO/AEO). Use when writing, reviewing, or improving documentation, guides, tutorials, API references, or any user-facing technical content.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    How-to guides: Write from the user's perspective, not the product's.

    line 25
  2. Distinctive:

    Before writing, answer: _What is the reader trying to accomplish?

    line 40
  3. Distinctive:

    No vague references ("this", "it" without clear antecedent)

    line 49
  4. Distinctive:

    When standardizing, lean on established guides:

    line 74
  5. Distinctive:

    Semantic markup: use heading levels hierarchically.

    line 85
  6. Distinctive:

    Use screenshots, GIFs, and videos sparingly and intentionally.

    line 98
  7. Distinctive:

    Always provide alt text for images, subtitles for videos, and transcripts for audio.

    line 106
  8. Distinctive:

    Document errors and edge cases with causes and solutions

    line 128
  9. Distinctive:

    Plan periodic resets: every 1-2 years, consider a structured audit and rewrite of the most impactful sections.

    line 136

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Writing technical documentation

Best practices for technical documentation, distilled from Mintlify's Guide to Technical Writing.

Content types (Diátaxis framework)

Categorize every page into exactly one type before writing:

TypeReader GoalStructureAssumed Knowledge
TutorialLearn through practiceSequential steps, guided tasksNone (beginner)
How-to guideSolve a specific problemProblem-solution, logical sequenceSome (intermediate)
ReferenceLook up precise detailsScannable facts, tables, specsSignificant (experienced)
ExplanationUnderstand conceptsConceptual discussion, backgroundAny level

Writing approach per type

Tutorials: Set expectations upfront on what the reader will achieve. Use incremental steps. Minimize choices. Point out milestones. Focus on actions over theory.

How-to guides: Write from the user's perspective, not the product's. Describe a logical sequence. Skip obvious steps ("Press enter to submit"). Minimize extraneous context.

Reference: Optimize for scannability. Prioritize consistency (tables, naming, specs). Avoid explanatory prose. Provide copy-paste-ready examples.

Explanation: Provide background context and design decisions. Acknowledge alternatives. Connect to other product areas or industry concepts.

Know your audience

Each piece of content should target one specific persona. Common personas:

  • Technical decision maker evaluating architecture
  • End user learning to get started or complete tasks
  • Developer integrating the product
  • AI agents/LLMs retrieving structured answers

Before writing, answer: What is the reader trying to accomplish? How much do they already know?

Writing for AI agents

Practices that help LLMs also help humans:

  • Clear, descriptive headings
  • Correct semantic markup
  • Explicit prerequisites
  • No vague references ("this", "it" without clear antecedent)
  • Consistent terminology
  • Defined acronyms and jargon
  • Complete, runnable code examples

Style and tone

Core principles

  1. Be concise—readers want to achieve a goal, not read prose. Cut unnecessary words.
  2. Clarity over cleverness—simple, direct language. Avoid jargon and complex sentences.
  3. Active voice—"Create a configuration file" not "A configuration file should be created."
  4. Skimmable—use headings to orient. Break up text-heavy paragraphs.
  5. Second person—address the reader as "you."

Common mistakes to avoid

  • Spelling and grammar errors (erode trust in the product)
  • Inconsistent terminology ("API key" in one place, "API token" in another)
  • Product-centric language the user wouldn't understand
  • "Duh" documentation ("Click Save to save")
  • Colloquialisms (hurt clarity, especially with localization)

Style guide references

When standardizing, lean on established guides:

Navigation and organization

Structural principles

  • Descriptive headings: accurately describe what follows; avoid vague or clever labels.
  • Self-contained pages: each page should be understandable independently (users and AI may land on any page).
  • Semantic markup: use heading levels hierarchically; lists for lists, tables for tabular data, code blocks for code.
  • Logical ordering: definitions before edge cases, common use case before advanced scenarios.
  • Consistent terminology: one term per concept, everywhere.

Common pitfalls

  • Overloaded categories (too many top-level sections)
  • Buried essential content
  • Unclear section names
  • Outdated or deprecated content left without markers

Media

Use screenshots, GIFs, and videos sparingly and intentionally. Media is supplementary, not primary.

MediaWhen to useMaintenance cost
ScreenshotUI elements that are hard to describe in textLow (~5 min to update)
GIFShort, complex workflows or promotional contentMedium (~1 hour)
VideoAbstract concepts and long workflowsHigh (several hours)

Always provide alt text for images, subtitles for videos, and transcripts for audio.

SEO and answer engine optimization

Content SEO

  • Clear H1/H2/H3 structure with keywords in headings
  • Short paragraphs and bullet points
  • Descriptive internal links ("Learn more about rate limiting" not "Click here")

Technical SEO

  • Meta titles (50-60 chars) and descriptions (150-160 chars) per page
  • Descriptive alt text on images
  • Mobile-friendly layout
  • Up-to-date sitemap

AEO (for AI-powered search)

  • Define terms explicitly on first use
  • Provide complete, runnable code examples
  • Make each section self-contained (AI retrieves sections independently)
  • Document errors and edge cases with causes and solutions
  • Mark deprecated features clearly

Maintenance

  • Automate: track stale content, detect product changes, enforce standards with linters (e.g. Vale).
  • Prioritize: focus review effort on high-traffic pages, not every page equally.
  • Remove wrong docs: outdated/misleading content is worse than no content.
  • Plan periodic resets: every 1-2 years, consider a structured audit and rewrite of the most impactful sections.

Content freshness

Optimize for evergreen content. If something represents a point-in-time snapshot, it's better as a blog post. Avoid embedding frequently-changing information (e.g. pricing) directly in docs.

Additional resources

For the full guide with expert quotes and detailed examples, see reference.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.