Logo van Doc Writer

Doc Writer

Organisatie
zeroclaw-labs
doc-writer

Genereer documentatie op basis van code. Ondersteunt Markdown, RST en JSDoc. Leest broncode en maakt duidelijke, nauwkeurige en onderhoudbare documentatie in het formaat dat bij het project past. Gebruik dit wanneer de gebruiker documentatie, docstrings, README-bestanden of API-referenties op basis van code wil laten genereren.

Add to TypingMind

Overzicht

Uitgeverzeroclaw-labs
Repositoryzeroclaw-skills
Skillnaamdoc-writer
Sterren
66
Forks
54
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door zeroclaw-labs op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Doc Writer in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/zeroclaw-labs/zeroclaw-skills/tree/master/skills/doc-writer
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Doc Writer in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Doc Writer automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Doc Writer niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Veelgestelde vragen

Wat doet de AI-skill Doc Writer?

Genereer documentatie op basis van code. Ondersteunt Markdown, RST en JSDoc. Leest broncode en maakt duidelijke, nauwkeurige en onderhoudbare documentatie in het formaat dat bij het project past. Gebruik dit wanneer de gebruiker documentatie, docstrings, README-bestanden of API-referenties op basis van code wil laten genereren.

Waarom Doc Writer gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Doc Writer bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Doc Writer in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/zeroclaw-labs/zeroclaw-skills/tree/master/skills/doc-writer. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Doc Writer gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Doc Writer gebruiken?

Zoveel als je wilt. Je kunt Doc Writer gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Doc Writer gratis?

Ja. Deze skill is door zeroclaw-labs op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇