Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 3.38 KB

DOC_STANDARD.default.md

File metadata and controls

65 lines (49 loc) · 3.38 KB

[Project] — Documentation Standard

This defines how docs in this project are written, named, and organized. Generated by the /docs skill on first use — edit freely. The skill re-reads this file every time it runs, so changes take effect immediately.

Required Frontmatter

Every markdown file in docs/ starts with YAML frontmatter:

---
title: Short descriptive title
type: session | feature | architecture | decision | ideation
date: YYYY-MM-DD
author: [Your name] + Claude ([Model])
status: active | draft | archived | superseded
confidence: verified | partial | draft
tags: [topic, domain]
related:
  - docs/features/related-doc.md
---

Field Definitions

Field Required Type Description
title yes string What this doc is about. No dates in the title — that's what date is for.
type yes enum One of the types below. Determines which subdirectory it lives in.
date yes YYYY-MM-DD Creation date for living docs (feature/architecture); event date for snapshots (session/decision/ideation).
author yes string Who wrote it. Include the AI if co-authored, e.g. Jane Doe + Claude (Sonnet 5).
status yes enum active, draft, archived, or superseded.
confidence yes enum verified (seen in code), partial, or draft.
tags yes string[] Topic labels, lowercase, hyphenated.
related no string[] Paths to related docs.

Document Types

Type Directory Mutability When to Use
session docs/sessions/ Snapshot — never updated End of a work session. What happened, thin by design. Points to feature docs for detail.
feature docs/features/ Living — updated in place + changelog Reference doc for a feature or system. Always reflects current state.
architecture docs/architecture/ Living — updated in place + changelog System-level overview — how components fit together.
decision docs/decisions/ Immutable — superseded, never edited Architectural decision record: context, options evaluated, rationale.
ideation docs/ideation/ Snapshot — never updated Exploration or brainstorm capture.

Naming Convention

YYYYMMDD-short-title.md

Date prefix is the creation date for living docs (feature/architecture) or the event date for snapshots (session/decision/ideation). Lowercase, hyphenated title. Update logic for living docs searches by title slug, ignoring the date prefix, to find an existing doc before creating a new one.

Adding a Type

Add a row to the Document Types table above — name, directory, mutability, purpose. That's the whole process; the skill reads this file fresh every time it runs. Optionally add a Template column naming one of the built-in types (session, feature, architecture, decision, ideation) to reuse its structure; otherwise a custom type gets this generic fallback shape:

  • Title
  • Context — why this doc exists, what prompted it
  • Content — the substance, structured however fits
  • What's Next — forward-looking actions or open questions

Amendments

This file is yours to edit directly. There's no ratification process unless the project needs one — for a solo project, just edit it; for a multi-contributor project, treat changes to this file like any other reviewed change.