writing-documentation

Generate Diátaxis-based technical documentation prompts for vector embedding.

Updated Nov 4, 2025
One-click install
npx skills add https://github.com/codethread/claude-code-plugins --skill writing-documentation-codethread
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-documentation
Source: https://github.com/codethread/claude-code-plugins/tree/main/plugins/doc-writer/skills/writing-documentation
Command: npx skills add https://github.com/codethread/claude-code-plugins --skill writing-documentation-codethread

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you craft clear, effective technical documentation by applying industry-proven patterns (Diátaxis) and embedding guardrails to prevent common LLM issues. It speeds up documentation work, enhances consistency, and reduces post-publication edits.

Core Features & Use Cases

  • Diátaxis-driven patterns: Tutorials, How-Tos, References, and Explanations organized to fit real-world documentation goals.
  • Claude Code documentation discipline: Guidance on testing Claude's base knowledge, documenting unique conventions, and trimming boilerplate content.
  • Quality safeguards: Built-in checks, explicit warnings, and production-ready considerations to minimize misinterpretation and security risks.
  • Use Case: Write a complete API reference for a new microservice in a fraction of the time, with a structured outline and ready-to-publish examples.

Quick Start

Start by outlining the problem, decide the documentation type (Tutorial, How-To, Reference, or Explanation), draft the sections, and finish with a concise Quick Start that demonstrates a runnable example.

Frequently Asked Questions about writing-documentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure technical documentation using Diátaxis?

Diátaxis organizes documentation into four types—Tutorial, How-To, Reference, and Explanation—each serving a distinct user need. Tutorials teach through hands-on tasks; How-Tos solve specific problems; References provide quick lookup; Explanations build conceptual understanding. This framework ensures your documentation matches how users actually search for and consume information.

What's the best way to write API reference documentation?

API reference documentation should follow the Reference format: list endpoints, parameters, return values, and error codes with concise, scannable descriptions. Include runnable examples and organize by logical grouping. This Skill applies Diátaxis patterns to generate production-ready API guides faster, reducing iteration cycles and ensuring consistency across microservices.

How do I avoid common LLM errors when generating documentation?

Apply explicit quality safeguards: test Claude's base knowledge, document unique conventions, trim boilerplate, and review for security risks and misinterpretation. This Skill embeds these guardrails into a semantic prompt, preventing hallucinations and ensuring documentation is accurate and production-ready before publication.

Can I use documentation patterns for code comments?

Yes. Apply Diátaxis principles to code comments: use Explanation style for complex logic, How-To for common patterns, and Reference style for function signatures. This Skill generates compact prompts that capture documentation discipline for API guides, tutorials, and inline code references across formats.

What problem does documentation-as-vector-embedding solve?

Vector embedding enables RAG workflows to retrieve the right documentation section when users query an LLM. This Skill generates high-density semantic prompts optimized for embedding, so your documentation integrates seamlessly into retrieval-augmented systems and improves search accuracy.

Do I need prior documentation experience to use this Skill?

No. Start by outlining your problem, selecting a Diátaxis type (Tutorial, How-To, Reference, Explanation), drafting sections, and adding a Quick Start example. This Skill provides structured guidance; Diátaxis patterns handle the heavy lifting, reducing expertise required to produce clear, consistent technical docs.