- Home
- Skills
- Nilecui
- Skillsbase
- Documentation Writing
documentation-writing_skill
- Python
20
GitHub Stars
3
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill nilecui/skillsbase --skill documentation-writing- examples.md8.6 KB
- reference.md8.8 KB
- SKILL.md5.7 KB
Overview
This skill produces clear, discoverable software documentation following the Eight Rules and the Diataxis framework. It enforces placement in docs/, requires linking and runnable examples, and structures files by purpose so users can find the right content quickly. Use it to create READMEs, API docs, tutorials, how-tos, and reference pages that are consistent and testable.
How this skill works
The skill inspects your repository and ensures all documentation files live under docs/ with one Diataxis type per file (tutorial, how-to, reference, explanation). It validates that each document is linked from an index or parent doc, uses relative links, contains runnable code examples, and omits temporal or status content. It can generate templates, add entries to docs/index.md, and produce a final checklist to validate currency, scanability, and example execution.
When to use it
- Creating a new README or project overview
- Writing API reference pages or configuration docs
- Authoring tutorials or step-by-step how-tos
- Converting ad-hoc notes into discoverable docs under docs/
- Validating documentation before release or pull request
Best practices
- Place every doc in the appropriate docs/ subfolder (tutorials, howto, reference, concepts)
- Follow Diataxis: one purpose per file and make the user question clear up front
- Include short Quick Start with 3–5 steps and at least one runnable example
- Use descriptive headings, a table of contents for long pages, and relative links
- Avoid temporal content; put progress, tests, and decisions in Issues/CI/commits
Example use cases
- Generate a README with Quick Start, Configuration, Usage, and Troubleshooting sections and add it to docs/index.md
- Turn a feature spec into a How-To with runnable code snippets and configuration examples
- Create an API reference page with examples that run in CI and link back to tutorials
- Convert a large explainer into a concise concepts page and link to related how-tos and references
FAQ
Ask what the reader wants: learn (tutorial), do (how-to), look up details (reference), or understand (explanation). Place the file in the matching docs/ subfolder.
What counts as a runnable example?
Code that can be copied and executed with real inputs and outputs, not placeholders. Prefer small, self-contained snippets and include expected output or test cases.