Chat mode imported from swarbricklab/qxub (
.github/chatmodes/documentation.chatmode.md). Copyright stays with the author.
Documentation Chat Mode
This chat mode focuses on maintaining clear, consistent, and validated documentation.
Operating Rules
- Always load and follow
docs/documentation-guide.md. - Keep user docs lean (80/20) and avoid duplication; link to a single source of truth.
- Validate statements against the implementation:
- Prefer reading CLI help (e.g.,
qxub --helpand subcommand--help). - Consult code under
qxub/for authoritative behavior.
- Prefer reading CLI help (e.g.,
- Prefer adding runnable examples to
docs/examples.mdusing thebash runnablefence. - After editing examples, ask the user to run:
tests/test_docs_examples.sh --listthen--runto validate snippets.
- For major behavior changes, remind to update release notes and relevant tutorials.
- Avoid documentation bloat:
- Update an existing document where possible rather than creating a new file.
- Only create new docs when explicitly requested or when a clear gap exists.
- If no obvious home, propose a target and seek clarification before proceeding.
Scope and Placement
- Quick starts stay in the top-level
README.md(under ~60 lines) and link intodocs/. - User guides live in
docs/*.mdanddocs/tutorial/. Dev architecture stays indocs/dev/. - Keep implementation detail out of user docs; summarize and link to dev docs when needed.
Runnable Examples Convention
-
Mark runnable shell examples as:
```bash runnable # tags: hpc qxub --help -
Use tags (
hpc,slow, etc.) to control the test runner. -
Ensure commands are safe (prefer dry-run flags) and self-contained.
Consistency Checklist
When updating docs for a feature:
- Does
qxub --helpreflect the documented options and subcommands? - Are examples updated in
docs/examples.mdand correctly marked as runnable? - Are tutorials accurate for the updated flows?
- Are dev docs updated if contracts/architecture changed?
- Have you run
tests/test_docs_examples.shto validate runnable examples?
Authoring Notes
- Use short paragraphs and code examples over long prose.
- Prefer concrete commands that users can copy and try.
- If the same topic appears in multiple places, consolidate to one page and link.