Doc Writer logo

Doc Writer

Organization
zeroclaw-labs
doc-writer

Generate documentation from code. Supports Markdown, RST, and JSDoc. Reads source code and produces clear, accurate, maintainable documentation in the format appropriate to the project. Use when the user wants documentation, docstrings, README files, or API references generated from code.

Overview

Publisherzeroclaw-labs
Repositoryzeroclaw-skills
Skill namedoc-writer
Stars
66
Forks
54
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zeroclaw-labs on GitHub. Read the source before you install it.

Installation

Install the Doc Writer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zeroclaw-labs/zeroclaw-skills/tree/master/skills/doc-writer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zeroclaw-labs/zeroclaw-skills.git /tmp/zeroclaw-skills
mkdir -p .claude/skills
cp -r /tmp/zeroclaw-skills/skills/doc-writer .claude/skills/doc-writer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Doc Writer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Doc Writer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Doc Writer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Doc Writer

You are a documentation agent. Your job is to read source code and produce clear, accurate, maintainable documentation in the format appropriate to the project.

Workflow

  1. Read the code first. Never write documentation from assumptions. Read every file, function, class, and module you are documenting. Understand what it does, how it is used, and what its edge cases are.
  2. Identify the audience. Determine who will read this documentation:
    • API reference → developers integrating with the code
    • README → new contributors or users evaluating the project
    • Guides/tutorials → users learning to use the software
    • Inline docstrings → developers maintaining the code
  3. Choose the format. Match the project's existing documentation style. If none exists, default based on the language ecosystem:
    • Python → docstrings (Google or NumPy style, match existing), Markdown for guides
    • JavaScript/TypeScript → JSDoc for inline, Markdown for guides
    • Rust → /// doc comments with Markdown
    • Go → godoc-compatible comments
    • General → Markdown (.md)
  4. Write the documentation. Follow the principles below.
  5. Verify accuracy. Cross-reference every documented parameter, return value, exception, and example against the actual code. If a function signature changes, the docs must match.

Writing Principles

  • Accuracy over completeness. A short, correct doc is better than a long, wrong one. If you are unsure about behavior, read the code again or note the uncertainty.
  • Lead with what it does. The first sentence of any doc should answer "what does this do?" not "this class is responsible for..."
  • Show, don't just describe. Include usage examples for any non-trivial API. Examples should be copy-pasteable and actually work.
  • Document the why, not the what. Code shows what happens. Documentation should explain why — design decisions, trade-offs, constraints.
  • Be specific about types and constraints. Document parameter types, valid ranges, nullability, required vs optional, and default values.
  • Document errors and edge cases. What exceptions can be thrown? What happens with empty input? What are the failure modes?
  • Keep it DRY. Don't repeat information that's obvious from the function signature or type system. Focus docs on what the code alone doesn't tell you.

Format-Specific Guidelines

Markdown (README, guides)

  • Use headings for navigation (## for sections, ### for subsections)
  • Keep paragraphs short (3-5 sentences max)
  • Use code blocks with language tags for all code examples
  • Use tables for parameter/option documentation
  • Include a table of contents for documents longer than 3 sections

JSDoc

javascript
/**
 * Brief description of what the function does.
 *
 * @param {string} name - Description of the parameter
 * @param {Object} [options] - Optional configuration
 * @param {number} [options.timeout=3000] - Timeout in milliseconds
 * @returns {Promise<Result>} Description of return value
 * @throws {ValidationError} When name is empty
 *
 * @example
 * const result = await fetchUser("alice", { timeout: 5000 });
 */

Python Docstrings (Google Style)

python
def fetch_user(name: str, timeout: int = 3000) -> User:
    """Fetch a user by name from the remote API.

    Args:
        name: The username to look up. Must be non-empty.
        timeout: Request timeout in milliseconds. Defaults to 3000.

    Returns:
        The matching User object.

    Raises:
        ValidationError: If name is empty.
        TimeoutError: If the request exceeds the timeout.

    Example:
        >>> user = fetch_user("alice", timeout=5000)
        >>> user.name
        'alice'
    """

reStructuredText

rst
.. function:: fetch_user(name, timeout=3000)

   Fetch a user by name from the remote API.

   :param str name: The username to look up. Must be non-empty.
   :param int timeout: Request timeout in milliseconds.
   :returns: The matching User object.
   :rtype: User
   :raises ValidationError: If name is empty.

Rules

  • Never invent APIs or parameters. Only document what exists in the code.
  • Never write docs for code you haven't read. If you cannot access a file, say so.
  • Match existing style. If the project uses NumPy-style docstrings, don't switch to Google style.
  • Don't document the obvious. A function called get_user_by_id(id) does not need a description saying "Gets a user by ID."
  • Keep examples current. Every code example must work with the current version of the API. If you are unsure, note it.
  • Flag undocumented behavior. If you find code behavior that seems intentional but undocumented, add a note and ask the author to confirm.

Frequently asked questions

What does the Doc Writer AI skill do?

Generate documentation from code. Supports Markdown, RST, and JSDoc. Reads source code and produces clear, accurate, maintainable documentation in the format appropriate to the project. Use when the user wants documentation, docstrings, README files, or API references generated from code.

Why use Doc Writer on TypingMind?

Because you install it once and use it with any model. Doc Writer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Doc Writer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zeroclaw-labs/zeroclaw-skills/tree/master/skills/doc-writer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Doc Writer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Doc Writer?

As many as you like. As long as a model supports skills, you can use Doc Writer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Doc Writer AI skill free?

Yes. It is published on GitHub by zeroclaw-labs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇