Logo di Documentation

Documentation

Community
mcouthon
documentation

Documentation standards and best practices for code changes. Use when writing or reviewing documentation, adding public APIs, making user-facing changes, or checking documentation quality. Triggers on: 'use documentation mode', 'document', 'documentation', 'docstring', 'add docs', 'update docs', 'documentation review', 'API documentation', 'README update'. Full access mode - can write documentation and update code comments.

Add to TypingMind

Panoramica

Pubblicato damcouthon
Repositoryagents
Nome della skilldocumentation
Stelle
79
Fork
11
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da mcouthon su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Documentation in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/mcouthon/agents/tree/main/generated/claude/skills/documentation
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mcouthon/agents.git /tmp/agents
mkdir -p .claude/skills
cp -r /tmp/agents/generated/claude/skills/documentation .claude/skills/documentation
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Documentation in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Documentation non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Documentation non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Documentation Standards

Write documentation that serves humans and AI agents. Keep it accurate, layered, and close to the code.

"Documentation is a love letter that you write to your future self." — Damian Conway

Documentation Hierarchy

Documentation lives in layers. Each layer has a distinct audience, scope, and update cadence.

LayerAudienceScopeUpdate Frequency
Code commentsMaintainers, AI agentsSingle block / decisionEvery code change
DocstringsConsumers, AI agentsFunction / class contractEvery signature change
Module docsTeam members, onboardingFile / package purposeWhen module role changes
Project docs (README, guides)All stakeholdersSystem / featureEvery user-facing change
Architecture docs (ADRs)Maintainers, future devsDesign decisionsWhen decisions are made

Audience Matrix

AudienceWhat They NeedKey Layers
Internal maintainersIntent, trade-offs, edge casesComments, docstrings, ADRs
New team membersOrientation, key concepts, how things connectModule docs, README, architecture
External users / consumersHow to use it, API contractsREADME, API reference, how-to guides
AI agentsPurpose, contracts, intent behind decisionsDocstrings, architecture docs, comments

Layer Rules

Code Comments

  • Explain why, never what — the code already says what
  • Mark non-obvious decisions, trade-offs, and workarounds
  • Reference issue/ticket numbers for context: // Workaround for #1234
  • Delete rather than comment out dead code (use version control)
  • Keep comments adjacent to the code they describe

Docstrings

  • Public APIs: Complete — params, returns, raises/throws, brief description
  • Internal/private: Concise — one-line purpose; skip if trivially obvious
  • Skip entirely: Simple getters/setters, constructors with no logic, obvious wrappers
  • Describe the contract (what), not the implementation (how)
  • Include a usage example for non-trivial public APIs

Module / Package Docs

  • Top-of-file docstring or comment: one paragraph explaining purpose
  • List key classes/functions and their roles
  • Describe usage patterns and entry points
  • Update when the module's responsibility changes

Project Docs

Follow the Diátaxis framework (see below). Keep docs in the repo, close to what they describe.

  • README: Project purpose, quickstart, key links — the front door
  • CHANGELOG: User-facing changes per release
  • Architecture docs: Design decisions, system structure, component relationships
  • API reference: Generated or maintained per public surface

Diátaxis Quick Reference

Four types of documentation, each serving a different user need:

TypeOrientationAnswersStructure
TutorialLearning"Follow these steps to learn X"Step-by-step, hands-on, minimal explanation
How-to GuideTask"How to accomplish X"Goal-oriented steps, assumes knowledge
ReferenceInformation"Specification of X"Precise, complete, consistent structure
ExplanationUnderstanding"Why X works this way"Conceptual, discursive, gives context

Common mistakes:

  • Mixing tutorial steps with reference details
  • Writing a how-to guide as a tutorial (too many basics)
  • Putting explanations in reference docs (keep them factual)
  • Missing how-to guides (users know what they want to do, not where to look)

Quality Checklist

markdown
- [ ] Public APIs have complete docstrings (params, returns, raises)
- [ ] Code comments explain "why", not "what"
- [ ] No stale documentation (matches current behavior)
- [ ] User-facing changes reflected in README or relevant guides
- [ ] New modules have a brief purpose description at top of file
- [ ] Architecture-significant decisions documented (ADR or equivalent)
- [ ] Examples are runnable and up-to-date
- [ ] CHANGELOG updated for user-visible changes

Anti-Patterns

Anti-PatternProblemCorrection
Comment restates the codeNoise, drifts out of syncDelete or explain the why
Docstring describes implementationCouples docs to internalsFocus on the contract (what, not how)
README lists features that don't existMisleading, erodes trustAudit docs against actual behavior
Docs live only in PR/commit messagesInvisible to future readersMove to permanent location in repo
Over-documenting trivial codeClutter, maintenance burdenSkip obvious getters/setters/constructors
Copy-pasting docstrings across overloadsDrift between copiesDocument the base, reference it from overloads
Huge top-of-file comment blocksNobody reads themKeep to one paragraph; link to detailed docs

Docstring Standards

Follow the standard specified by each language's instruction file. Do not invent custom formats.

LanguageStandardReference
PythonGoogle stylepython.instructions.md — Documentation section
TypeScriptTSDocTSDoc conventions
JavaScriptJSDocJSDoc conventions

When a language-specific instruction file doesn't cover documentation, apply these defaults:

  • Public functions: brief description + @param + @returns + @throws
  • Classes: brief description + constructor params
  • Interfaces/types: brief description of purpose and usage context

Agent-Specific Guidance

AI agents consume documentation differently than humans. Optimize for both.

What helps agents most:

Documentation ElementAgent Benefit
Docstrings with typed paramsNavigation, correct usage, type inference
Module-level purpose commentsUnderstanding component responsibility
Architecture docsHigh-level context for cross-cutting changes
"Why" commentsMaking correct decisions about modifications
Explicit contracts (pre/post conditions)Safe refactoring boundaries

Principles:

  • Keep docs close to code — agents search files, not wikis
  • Structured formats (tables, lists) are easier to parse than prose
  • Be explicit about edge cases and invariants in docstrings
  • Name things well — good names reduce the documentation needed
  • When docs and code disagree, the code is right — fix the docs

Domande frequenti

Cosa fa la skill IA Documentation?

Documentation standards and best practices for code changes. Use when writing or reviewing documentation, adding public APIs, making user-facing changes, or checking documentation quality. Triggers on: 'use documentation mode', 'document', 'documentation', 'docstring', 'add docs', 'update docs', 'documentation review', 'API documentation', 'README update'. Full access mode - can write documentation and update code comments.

Perché usare Documentation su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Documentation è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Documentation in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/mcouthon/agents/tree/main/generated/claude/skills/documentation. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Documentation?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Documentation?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Documentation: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Documentation è gratuita?

Sì. È pubblicata su GitHub da mcouthon con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇