midnight-saci

Write documentation

This page gives the conventions for the pages in docs/ and the checks that CI runs on them. Follow it when you add, change or move a page.

Where a page goes

docs/ has one folder for each reader task. Each folder has an index.md hub that lists every page in it, and docs/index.md is the documentation home.

Folder Reader task
get-started/ See Saci work, install it, learn its parts.
write-plans/ Write, reuse and convert test plans.
run-tests/ Run plans, follow them, read results, investigate failures.
connect/ Connect Saci to other systems: MCP, outcome actions, watch, A2A, script runner.
operate/ Run and keep Saci: models, workers, Kubernetes, data, credentials.
reference/ Look up commands, settings, formats and protocols.
contributing/ Build, test and change Saci. Design notes are in contributing/design/.

Give each page one type: a tutorial, a how-to, a reference or an explanation. Put contributor material, such as test lists or module tables, in contributing/, not in a user page. Keep one fact in one page, and link that page from the others.

docs/templates/, docs/openapi.yaml and docs/api-examples/ are inputs of the code and the tests. Do not move them.

Page skeleton

# A heading that says what the reader can do or learn

One to three sentences: what the reader can do after this page.

## Prerequisites

## Specific sections

## Next steps

- Two to four links.

Language

Write technical content in ASD-STE100 Simplified Technical English. This includes procedures, command explanations, configuration, rules, endpoints and system behavior. Be concise. Do not use em-dashes.

Checks

Run these checks before you push a documentation change. CI runs them in the docs job.

.github/check-docs.sh
npx markdownlint-cli2
lychee --config lychee.toml README.md 'docs/**/*.md'

.github/check-docs.sh is a bash script that works on Linux and macOS. It checks that:

Stub pages (old paths in docs/redirects.txt) and design notes are checked only for links and hub listings. The rules for markdownlint are in .markdownlint-cli2.yaml, and the lychee options are in lychee.toml.

Next steps