home / skills / michalvavra / agents / write-docs
This skill creates AI-scannable documentation templates that are concise, consistent, and ready to reuse across projects.
npx playbooks add skill michalvavra/agents --skill write-docsReview the files below or copy the command above to add this skill to your agents.
---
name: write-docs
description: Write AI-scannable technical documentation.
---
# Write Documentation
Documentation that is scannable, consistent, and actionable for AI agents.
## Structure
- Max 150 lines per file, one concept per file
- Start with `description:` in YAML frontmatter
- Add TL;DR section at top with most-needed info
## Content
- No duplicates (define once, link elsewhere)
- Use tables for structured data (parameters, config)
- Concrete examples for everything (copy-pasteable)
- Link to real code as templates
## Naming
| Pattern | Use For | Example |
|---------|---------|---------|
| `README.md` | Directory overview | `docs/README.md` |
| `{noun}.md` | Reference | `entities.md` |
| `{verb}-{noun}.md` | How-to | `add-entity.md` |
## Tips
- Use consistent terms (one term per concept)
- Group by task ("How to add X") not system ("X overview")
- Include troubleshooting for common errors
This skill generates AI-scannable technical documentation that is scannable, consistent, and directly usable by coding agents. It enforces short files, one concept per file, and clear frontmatter with a TL;DR so agents can find the most important information quickly.
The skill inspects project docs and produces files following a strict structure: YAML frontmatter beginning with description:, a top-level TL;DR, and concrete examples. It splits content into single-concept files under 150 lines, eliminates duplicates by defining each concept once and linking to it, and formats tables for structured data such as parameters and configs.
What belongs in the TL;DR?
A one- or two-line summary that states the goal, the core command or snippet, and the expected result.
How do I avoid duplicates across files?
Define each concept in a single file and reference it from others with links; keep naming consistent so references are unambiguous.