Fleet documentation

From Thurbeen/thurbox · View interactive version

Fleet documentation is an AI agent skill from the GitHub repository Thurbeen/thurbox. Use when creating, moving, or updating Fleet documentation or its SVG diagrams, including architecture and controller guides.

How to use this skill

Skill file

Maintain Fleet documentation

Fleet's documentation is the docs/fleet/ directory of this repository; the

overview says how it sits beside thurbox's and the

runtimes'. Start from the document that owns the subject:

table of resource kinds, the table of controllers, the reconcile rules

and the walkthrough. A new kind gets a row there and a page under

docs/fleet/resources/; crates/fleet-api/tests/docs_index.rs fails

until the row exists.

boundaries, ports and execution flow.

resource, interface and state machine.

and semantics, under fixed headings: What it is for, When you write one,

Example, Spec, Status, Lifecycle, Related kinds.

crates/fleet-cli/tests/e2e_doc_examples.rs applies every JSON block of

each Example section, and runs the example plugin that

Write a plugin builds.

it does, outputs: resources/<kind>.svg, controllers/<name>-flow.svg.

configuration.

and implementation evidence.

One page per controller, with its state-machine SVG beside it. When moving a

document, update every tracked relative link and the owning index. Check an

architecture claim against crates/architecture.toml, the relevant port and

manager code, and the contracts rather than inferring it from an old diagram.

Every tracked SVG must parse as XML and define explicit light and dark palettes

with prefers-color-scheme. Use direct CSS colors for renderer compatibility;

render the result locally and inspect it before publishing. Preserve <title>,

<desc>, role="img" and aria-labelledby accessibility metadata.

For a documentation defect, first add an end-to-end case and observe the

intended failure. The repository's gate (.publish.yaml: just lint and the

test suite, whose tests/doc_references.rs resolves every relative link)

covers these pages; do not weaken it to accept a new structure.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.