agentleFS
BhangeeF16BhangeeF16/kaizen/skills/documentation-standards/SKILL.md

documentation-standards

Skill0 starsChanged 4 months agoMITView on GitHub

Use whenever writing, reviewing, or restructuring a Markdown document in this knowledge base: choosing YAML front matter fields, a document type (STD, GUIDE, ADR, COMPETENCY, and so on), or a lifecycle status (Idea through Archived); naming a new file; deciding whether a design or feature doc needs a Mermaid sequenceDiagram or stateDiagram-v2 block and what that diagram must show; formatting cross-references, reference-style links, or anchors; writing or reviewing a table; or resolving which document canonically owns a topic. This is the cross-cutting documentation-formatting authority every stage skill (Design, Documentation, Implementation, and others) defers to for these rules rather than restating them — it is not itself a stage and does not gather requirements or write code.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If you are re-reading this skill after skills/documentation-standards/documentation-standard.md changed, trust what you just read above …

    line 22

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Documentation Standards

This is a meta-skill: a rule that applies across every stage rather than belonging to one. Whenever any stage skill in this plugin produces or reviews a Markdown document — a design doc, a plan, an ADR, a README, a competency file — the formatting, metadata, diagram, linking, and table rules below govern it, read live from this plugin's own skills/documentation-standards/documentation-standard.md every time this skill runs. There is no separate paraphrased copy anywhere, so this content cannot silently drift the way a hand-maintained summary could.

Documentation standard (live)

!cat "${CLAUDE_PLUGIN_ROOT}/skills/documentation-standards/documentation-standard.md"

Instructions

  1. Apply the Required Metadata front-matter shape to every active Markdown document you write or edit — id, title, type, status, owner, priority, tags, depends_on, related, last_updated — using only an Approved Document Type and an Approved Lifecycle Status from the lists above. Machine-readable YAML manifests are the one named exception; they do not use this envelope.
  2. Before adding a Mermaid sequenceDiagram, check the Mermaid Sequence Diagram Rules' required-cases list (cross-capability workflows, broker/event flows, orchestration/state transitions, auth/token flows, external-provider integrations, multi-service async user actions) — if the design matches one of these and has no sequence diagram, treat the design as incomplete unless you record why prose is clearer, per the Acceptance rule stated above.
  3. Before adding a Mermaid stateDiagram-v2 to an erd.md, check whether the entity's field is genuinely status-shaped (a closed, named set of values with documented transition rules) per the State Diagram Rules above — a plain enum with no enforced sequencing does not require the diagram; a status field with real transition rules and no diagram makes the ERD incomplete.
  4. Use the Link And Cross-Reference Rules above exactly: Markdown links for prose references, reference-style links for repeated references, anchors for stable sections, source aliases (@backend, @frontend, @product-knowledge) only in command examples/entrypoint lists/alias documentation — never as a substitute for a real Markdown link to another document. Note the one deliberate exception recorded above for citing an ephemeral or non-canonical planning artifact (a retired per-milestone tracking document, or the current session's own ExecPlan under .agent/exec-plans/): write that citation as backticked prose naming what it is, never as a Markdown link.
  5. Use the Table Writing Rules above to decide whether a table or prose is the right shape — required for ownership matrices, canonical-source maps, status/readiness matrices, API/integration catalogs, permission catalogs, glossaries, migration maps, and validation-evidence summaries; avoid tables for narrative reasoning, decision rationale, or long prose.
  6. For canonical-ownership questions this document doesn't resolve on its own (the Owns/Must-Not-Own table and knowledge-layer/reference-direction rules), defer to the governance meta-skill's injected documentation-governance.md content rather than guessing or restating it here — this document explicitly does not own that table.
  7. If you are re-reading this skill after skills/documentation-standards/documentation-standard.md changed, trust what you just read above over any memory of a previous run — that live content is always the current source of truth for documentation formatting in this knowledge base.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.