Documentation Maintenance
Use this skill when a feature is added, removed, renamed, or materially changed, or when the docs structure itself needs maintenance.
Goals
- Keep every feature documented.
- Prefer one focused feature article per feature instead of hiding new behavior inside broad overview pages.
- Keep the docs tree aligned with the demo TOC and the top-level
docs/index.md.
- Preserve a consistent article shape and tone.
Docs architecture
The docs live under topic subdirectories in docs/.
docs/overview: introductions, orientation, comparisons, getting-started material
docs/schema: schema design and modeling guidance
docs/analysis: analyzers, tokenization, normalization
docs/lexical-querying: lexical query types and boolean composition
docs/ranking: scoring, reranking, feature scoring, tuning
docs/discovery: aggregations, significant terms, exploratory retrieval
docs/indexing: index structures, serialization, structured field types
docs/features: cross-cutting capabilities that are not primarily lexical querying, ranking, or schema
docs/guides: how-to articles and recipes
docs/demo: demo internals and implementation writeups
docs/operations: testing, performance, maintenance
Use these folders to mirror the TOC structure. Do not create new top-level doc buckets casually.
Source of truth
Before editing anything, determine whether you are looking at:
- canonical documentation sources
- generated demo-site content
- generated payload artifacts
In this repository, the canonical docs source is docs/.
Treat these paths as generated outputs unless the user explicitly asks to work on the generation pipeline itself:
apps/demo/content/docs
apps/demo/static/data
apps/demo/public
apps/demo/src/generated
Do not make content edits directly in generated copies when the same material originates in docs/.
If a docs change must appear in the demo:
- edit
docs/ first
- update
docs/index.md if navigation changed
- regenerate the demo-site content and payloads from source
- verify the generated output reflects the source change
If a stale generated file disagrees with docs/, treat docs/ as authoritative and refresh or remove the stale artifact instead of patching around it.
Coverage rules
- Every user-facing feature should have documentation.
- Prefer a separate article for each substantial feature, query type, ranking primitive, field type, or major capability.
- If a change affects an existing feature article, update that article in the same work session.
- If a change introduces a new feature without docs, add the new article before considering the task complete.
- If a change affects discoverability, navigation, or positioning, also update the relevant overview or guide pages.
- When adding a new page, update
docs/index.md so the page appears in the section map.
- Keep front matter complete and consistent:
id
section
title
summary
tags
apis
level
order
Feature article pattern
Feature articles should be narrowly scoped and structurally consistent. Default structure:
- A short opening that says what the feature does and when to use it.
- A minimal example that shows the basic API.
- A section on behavior, semantics, or scoring model.
- A section on tradeoffs, limitations, or when not to use it.
- A short related-links section when there are obvious adjacent articles.
Recommended section headings:
# <Feature title>
## Basic usage
## How it works
## When to use it
## Limitations or ## Tradeoffs
## Related articles
Not every article needs every heading, but the article should feel structurally familiar.
Non-feature article pattern
Not all docs are feature references. Use different structures for:
- overview pages: positioning, concepts, capability maps, comparisons
- how-to pages: goal-oriented steps and design advice
- getting-started pages: a guided build-up from minimal to practical usage
- operations pages: testing, performance, release, maintenance guidance
- demo pages: architecture, build pipeline, indexing flow, UI behavior
Do not force all of these into the feature-reference template.
Tone
Write in a direct technical style.
- Be concrete and specific.
- Prefer practical guidance over marketing language.
- Explain tradeoffs instead of overselling features.
- Assume a technically capable reader who wants signal, not hype.
- Use Elasticsearch/OpenSearch/Lucene comparisons when they clarify behavior, but do not imply full parity where it does not exist.
- Avoid vague claims like "powerful", "seamless", or "revolutionary".
- Keep examples small and runnable when possible.
Update workflow
When a feature changes:
- Identify the primary article that should own the change.
- Decide whether the change is large enough to require a new dedicated article.
- Update cross-links from adjacent articles if the new page changes the learning path.
- Confirm you are editing the canonical source in
docs/, not a generated demo copy.
- Update
docs/index.md.
- If the docs demo relies on metadata or ordering, keep front matter aligned with the existing section taxonomy and regenerate the demo content from source.
Naming and ordering
- Do not use numeric prefixes in filenames.
- Put ordering in front matter with numeric
order.
- Prefer descriptive kebab-case filenames.
- Keep section names aligned with the demo TOC:
Overview
Schema
Analysis
Lexical Querying
Ranking
Aggregations
Indexing
Other Features
Guides
Demo Internals
Operations
Done criteria
A docs-related feature change is not done until:
- the code change is documented in the correct article or a new article exists
- the canonical source in
docs/ was edited instead of a generated copy
docs/index.md reflects the new structure
- front matter is complete and correctly ordered
- nearby links are updated when navigation changed
- generated demo docs/payloads are refreshed when they depend on the changed source
- the doc tone and structure match the rest of the docs set
Source: formation-res/querylight-ts — distributed by TomeVault.
1---2name: documentation-maintenance3description: Use when adding or changing Querylight TS features so documentation structure, article coverage, and tone stay consistent with the repo's docs architecture.4---56# Documentation Maintenance78Use this skill when a feature is added, removed, renamed, or materially changed, or when the docs structure itself needs maintenance.910## Goals1112- Keep every feature documented.13- Prefer one focused feature article per feature instead of hiding new behavior inside broad overview pages.14- Keep the docs tree aligned with the demo TOC and the top-level `docs/index.md`.15- Preserve a consistent article shape and tone.1617## Docs architecture1819The docs live under topic subdirectories in `docs/`.2021- `docs/overview`: introductions, orientation, comparisons, getting-started material22- `docs/schema`: schema design and modeling guidance23- `docs/analysis`: analyzers, tokenization, normalization24- `docs/lexical-querying`: lexical query types and boolean composition25- `docs/ranking`: scoring, reranking, feature scoring, tuning26- `docs/discovery`: aggregations, significant terms, exploratory retrieval27- `docs/indexing`: index structures, serialization, structured field types28- `docs/features`: cross-cutting capabilities that are not primarily lexical querying, ranking, or schema29- `docs/guides`: how-to articles and recipes30- `docs/demo`: demo internals and implementation writeups31- `docs/operations`: testing, performance, maintenance3233Use these folders to mirror the TOC structure. Do not create new top-level doc buckets casually.3435## Source of truth3637Before editing anything, determine whether you are looking at:3839- canonical documentation sources40- generated demo-site content41- generated payload artifacts4243In this repository, the canonical docs source is `docs/`.4445Treat these paths as generated outputs unless the user explicitly asks to work on the generation pipeline itself:4647- `apps/demo/content/docs`48- `apps/demo/static/data`49- `apps/demo/public`50- `apps/demo/src/generated`5152Do not make content edits directly in generated copies when the same material originates in `docs/`.5354If a docs change must appear in the demo:55561. edit `docs/` first572. update `docs/index.md` if navigation changed583. regenerate the demo-site content and payloads from source594. verify the generated output reflects the source change6061If a stale generated file disagrees with `docs/`, treat `docs/` as authoritative and refresh or remove the stale artifact instead of patching around it.6263## Coverage rules6465- Every user-facing feature should have documentation.66- Prefer a separate article for each substantial feature, query type, ranking primitive, field type, or major capability.67- If a change affects an existing feature article, update that article in the same work session.68- If a change introduces a new feature without docs, add the new article before considering the task complete.69- If a change affects discoverability, navigation, or positioning, also update the relevant overview or guide pages.70- When adding a new page, update `docs/index.md` so the page appears in the section map.71- Keep front matter complete and consistent:72 - `id`73 - `section`74 - `title`75 - `summary`76 - `tags`77 - `apis`78 - `level`79 - `order`8081## Feature article pattern8283Feature articles should be narrowly scoped and structurally consistent. Default structure:84851. A short opening that says what the feature does and when to use it.862. A minimal example that shows the basic API.873. A section on behavior, semantics, or scoring model.884. A section on tradeoffs, limitations, or when not to use it.895. A short related-links section when there are obvious adjacent articles.9091Recommended section headings:9293- `# <Feature title>`94- `## Basic usage`95- `## How it works`96- `## When to use it`97- `## Limitations` or `## Tradeoffs`98- `## Related articles`99100Not every article needs every heading, but the article should feel structurally familiar.101102## Non-feature article pattern103104Not all docs are feature references. Use different structures for:105106- overview pages: positioning, concepts, capability maps, comparisons107- how-to pages: goal-oriented steps and design advice108- getting-started pages: a guided build-up from minimal to practical usage109- operations pages: testing, performance, release, maintenance guidance110- demo pages: architecture, build pipeline, indexing flow, UI behavior111112Do not force all of these into the feature-reference template.113114## Tone115116Write in a direct technical style.117118- Be concrete and specific.119- Prefer practical guidance over marketing language.120- Explain tradeoffs instead of overselling features.121- Assume a technically capable reader who wants signal, not hype.122- Use Elasticsearch/OpenSearch/Lucene comparisons when they clarify behavior, but do not imply full parity where it does not exist.123- Avoid vague claims like "powerful", "seamless", or "revolutionary".124- Keep examples small and runnable when possible.125126## Update workflow127128When a feature changes:1291301. Identify the primary article that should own the change.1312. Decide whether the change is large enough to require a new dedicated article.1323. Update cross-links from adjacent articles if the new page changes the learning path.1334. Confirm you are editing the canonical source in `docs/`, not a generated demo copy.1345. Update `docs/index.md`.1356. If the docs demo relies on metadata or ordering, keep front matter aligned with the existing section taxonomy and regenerate the demo content from source.136137## Naming and ordering138139- Do not use numeric prefixes in filenames.140- Put ordering in front matter with numeric `order`.141- Prefer descriptive kebab-case filenames.142- Keep section names aligned with the demo TOC:143 - `Overview`144 - `Schema`145 - `Analysis`146 - `Lexical Querying`147 - `Ranking`148 - `Aggregations`149 - `Indexing`150 - `Other Features`151 - `Guides`152 - `Demo Internals`153 - `Operations`154155## Done criteria156157A docs-related feature change is not done until:158159- the code change is documented in the correct article or a new article exists160- the canonical source in `docs/` was edited instead of a generated copy161- `docs/index.md` reflects the new structure162- front matter is complete and correctly ordered163- nearby links are updated when navigation changed164- generated demo docs/payloads are refreshed when they depend on the changed source165- the doc tone and structure match the rest of the docs set166167---168> Source: [formation-res/querylight-ts](https://github.com/formation-res/querylight-ts) — distributed by [TomeVault](https://tomevault.io).169<!-- tomevault:4.0:skill_md:2026-06-16 -->