documentation

Guides writing effective documentation — READMEs, API docs, inline comments. Use when creating or improving project documentation.

projectious-work/aibox1 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: documentation
description: Guides writing effective documentation — READMEs, API docs, inline comments. Use when creating or improving project documentation.
license: MIT
---

# Documentation

## When to Use

When the user asks to "write docs", "document this", "add a README", "improve comments", or when code lacks explanation for non-obvious behavior.

## Instructions

1. **Identify the audience:** developers, end-users, or future maintainers?
2. **README structure** (for projects):
   - What it is (one sentence)
   - Quick start (install + first command)
   - Usage examples
   - Configuration reference
   - Contributing guide (if open source)
3. **API documentation:**
   - Every public function gets a doc comment
   - Include: what it does, parameters, return value, errors/panics
   - Add a usage example for non-obvious APIs
4. **Inline comments — use sparingly:**
   - Comment WHY, not WHAT (the code shows what)
   - Document non-obvious business rules
   - Explain workarounds with links to issues
   - Never comment out code — delete it (git remembers)
5. **Keep docs close to code:** doc comments > wiki pages > external docs

## Examples

**User:** "Document this function"
**Agent:** Adds a doc comment explaining purpose, parameters, return type, and a short example:
```rust
/// Calculates the shipping cost based on weight and destination zone.
///
/// Returns `None` if the destination zone is not serviceable.
/// Weights over 30kg use freight pricing instead.
```

More Writing & Documentation skills

paper-context-resolver

lllllllama/rigorpilot-skills

Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.

450.8k

repo-intake-and-plan

lllllllama/rigorpilot-skills

Rigor Intake helper for README-first deep learning repo reproduction. Use when the task is specifically to scan a repository, read the README and common project files, extract documented commands, classify inference, evaluation, and training candidates, and return the smallest trustworthy reproduction plan to the main orchestrator. Do not use for environment setup, asset download, command execution, final reporting, paper lookup, or end-to-end orchestration.

450.0k

minimal-run-and-audit

lllllllama/rigorpilot-skills

Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized `repro_outputs/` files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.

449.9k

← All Writing & Documentation skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY