Frontmatter5 fields
type- Workflow
title- Feature Docs Workflow
description- Maintain current, concise CLI feature documentation.
tagstimestamp
Feature Docs Workflow
When to use this workflow
Use this workflow for these documentation changes:
- CLI commands, flags, or help text
- Exporters and validation
- Setup or registry behavior
- Viewer behavior
- Configuration
- README examples
Process
- Read Agent Rules.
- Read the applicable command or exporter page.
- Inspect the implementation and focused tests.
- Use the source code as the authority for behavior.
- Update the smallest current-state reference page.
- For a user-visible change, update the CLI changelog.
- Run
okn validate Wiki. - Fix all errors and avoidable warnings.
Page structure
Use progressive disclosure. Put information in this order:
- One sentence that gives the purpose
- Copyable usage
- Options and defaults
- Behavior that affects results, files, processes, the network, or exit status
- Necessary cautions
Do not repeat the root help or product positioning. Do not repeat implementation history or security explanations from another page.
Keep a simple command page to approximately 80 lines or fewer. Keep a complex runtime page to approximately 200 lines or fewer.
Put source anchors and update notes in the footer:
---
<!-- okf-footer: agent-maintenance -->
> **Source anchors**
>
> - `packages/...`
Do not put candidate work in the released command index.
When a new command or exporter is available, add its page. Then, add an index entry.
Language
Follow the wiki-local ASD-STE100 rule. Use the technical terms that Agent Rules identifies.
Use okn in user-facing command examples. Use openknowledge only for canonical binary, package, or historical references.
Use active voice and simple verb tenses. Do not use contractions, phrasal verbs, or semicolons.
Keep descriptive sentences to a maximum of 25 words. Keep instructions to a maximum of 20 words.
Put only one instruction in each procedural sentence. Start the instruction with an imperative verb.
Use one term for one item. Make each pronoun reference clear.
Boundaries
Do not rewrite broad documentation for an unrelated refactor. Do not describe behavior that the source code or tests do not support. Keep release history in the changelog, not on command pages.