Project documentation — editing docs/*.md, README, ADRs, the glossary, the table of contents, templates and training examples; one fact in one place, relative links, checking links and ADR numbering. Use it when creating or changing a document, ADR or term (docs, ADR, glossary, README, documentation, check:docs).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Documentation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-documentation)
---
name: documentation
description: Project documentation — editing docs/*.md, README, ADRs, the glossary, the table of contents, templates and training examples; one fact in one place, relative links, checking links and ADR numbering. Use it when creating or changing a document, ADR or term (docs, ADR, glossary, README, documentation, check:docs).
metadata:
category: documentation
---
# Project documentation
## Purpose
This skill guides edits to documents in `docs/` and the root `*.md` files so that every fact lives in one place, terms match the glossary, and links and the ADR index stay intact. The architecture decision is chosen by the owner: the skill records the decision, it does not invent it. Role: Technical Writer.
When working with ADRs and the glossary, the rules of this repository take precedence over global and third-party skills.
## Inputs
- Changed behaviour, decisions, terms.
- Existing documents and ToC.
## Outputs
- Updated documents passing `npm run check:docs`.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "documentation"` for prior decisions, patterns and lessons.
- [documentation standard](../../../standards/documentation.md) — one fact in one document, canonical sources, statuses, examples.
- [docs/README.md](../../../docs/README.md) — table of contents and sections.
- [docs/adr/README.md](../../../docs/adr/README.md) — ADR rules, index, template.
- [docs/glossary.md](../../../docs/glossary.md) — terms and the "Deprecated synonyms" section.
## Steps
1. **Find the canonical document.** ADRs are canonical for decisions; the glossary — for terms; specifications and API contracts — for tables, statuses and routes; trackers — for work statuses. Where things live is visible from the `docs/README.md` table of contents. Keyword search: `grep -rn "<term>" docs/`.
Done when one file is named where the fact goes, and the other mentions will become links to it.
2. **Terms.** Add every new concept to the glossary first (alphabetical order, the "Details" column). Replace words from "Deprecated synonyms" with the canonical ones.
Done when `grep` for deprecated synonyms in the changed files is empty and the new term is in the glossary.
3. **ADR.** A new file `docs/adr/NNNN-short-name.md` with the next free number, per the template in `docs/adr/README.md`. An accepted ADR is never rewritten: in the old one only the status changes to `superseded` with a link, or a line "Refined by: [ADR NNNN]" / "Partially superseded by: [ADR NNNN]" is added under the date; the new one says "Refines: [NNNN]" / "Partially supersedes: [NNNN]". Add the new ADR to the index. The content of the decision — per `architecture-decisions`.
Done when the diff of an accepted ADR contains only a status, a link line, or a fix of a typo or broken link.
4. **New document.** Add it to the `docs/README.md` table of contents in the right section (or to the parent document if it is a template or an example). State the status neutrally: "Status: draft specification, implementation not started".
Done when `npm run check:docs` does not report "no incoming links".
5. **Templates and examples.** A template lives next to the document that requires it; a filled-in example is a separate file, no more than one example per scenario, the first line is "Training example, fictional data", identifiers carry the `-EX-` marker, no real personal data, secrets or internal addresses.
Done when the example's first line matches verbatim.
6. **Links.** Relative only and only inside the repository. External systems and neighbouring repositories are described as integrations through a versioned contract — without links to another repository's files and without absolute paths.
Done when `npm run check:docs` finishes with exit code 0.
7. **Statuses and evidence.** Actual results, approvals and sign-offs are recorded only in trackers and protocols, based on evidence. A result is phrased as "conforms to document X" or "requires confirmation by the owner / a specialist"; the words "compliant" and "certified" are not used.
Done when every statement about a result links to evidence or is marked as requiring confirmation.
## Best practices
- Link, do not copy.
- Glossary first for new terms.
- Every new document gets an incoming link.
## Common mistakes
- Duplicate facts in two documents.
- Broken anchors after renaming headings.
## Example
New gate added → `policies/quality-gates.md` updated, README table updated, duplicate paragraph in CONTRIBUTING replaced by a link.
## Reusable prompt
```text
Apply the documentation skill (.agents/skills/documentation/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Update the documents for the change, keeping one fact in one place, glossary terms and valid links; run check:docs.
Cite evidence for every claim; list open questions separately.
```
## Checks
- [ ] `npm run check:docs` — 0 problems: links, anchors, links outside the repository, documents without incoming links, ADR numbering.
- [ ] The index in `docs/adr/README.md` contains every ADR file with the right status (compare the `ls docs/adr` file list with the index table).
- [ ] No number, table, status or API route is duplicated in a non-canonical document — a link stands in its place (manual check by `grep` for the value).
- [ ] New terms are in the glossary; no deprecated synonyms in the changed files.
- [ ] Accepted ADRs are changed only in the allowed places (per `git diff`).
- [ ] The text has no links to another repository's files and no absolute paths.
- [ ] Examples contain no real personal data, secrets or internal addresses.
## Script
[scripts/check-links.mjs](scripts/check-links.mjs) (Node, no dependencies) runs as `npm run check:docs`. It walks all `.md` files in the repository, including skills and agents in `.agents/`, except `node_modules`, `.claude`, `.codex`, `dist`, `build`, `.git`, `coverage`, `.idea`, `.vscode`. It checks relative links and anchors, links outside the repository, incoming links to every `docs/**/*.md`, and ADR numbering. It skips links inside code blocks and `inline code` and does not check external links (`https:` etc.). Exit code 1 on any problem.
## Out of scope
- The content of architecture decisions — `architecture-decisions`; requirements — `product-requirements`.
- Application code and tests — `task-execution`, `test-strategy`.
- Agents and skills in `.agents/` — `agent-engineering`, `skill-engineering`; their links and anchors are checked by `npm run check:docs`, the canonical format — by `npm run agents:check`.
- Legal assessment — the owner's lawyer; such places in a document are marked "requires confirmation by a lawyer".