Files
skills/skills/document/SKILL.md
T

3.5 KiB

name, description
name description
document Capture decisions, trade-offs, debugging insights, or plans from a session into the personal knowledge vault (00-inbox/). Use when the user asks to document an insight or session outcome. For auditing or updating canonical repository documentation (README, ARCHITECTURE, repository ADRs), use reconcile-docs.

Document

Use when

  • /document at the end of a session, or a handoff from diagnose, practice, git-commit.
  • Routine fixes and chores need no document: a good commit message is enough.
  • Not for canonical repository documentation: use reconcile-docs.

Steps

  1. Is it worth writing? Default is no. Continue only if the session produced something non-obvious that someone (me, in six months) would benefit from reading: a decision, a surprising failure, a reusable insight.
  2. Classify by the kind of knowledge, not by the activity that produced it:
Knowledge Type Spec
Why: exploration, alternatives, trade-offs Discussion discussion
What we decided (architecture) ADR adr
How to build it: phases, constraints, done-definition Plan plan
What broke and why (root cause) Debug Record debug
A general mental model or technique Knowledge knowledge
Daily synthesis: facts, reasoning, calibration Journal journal

A rich session may justify more than one (e.g. Debug Record + Discussion). Split them; don't write one hybrid document.

  1. Draft each document following its spec. Read the spec before writing.
  2. Avoid overlap. Each fact has one owning document: the Discussion owns the reasoning, the ADR the decision, the Plan the steps, the Debug Record the evidence, Knowledge the general lesson. Others link to it instead of repeating it.
  3. Keep references portable: Use relative paths or context-defined placeholders. Never write absolute file-system paths into documentation.
  4. Save to the location I choose (see below). Discussions and Debug Records are historical and never rewritten later. ADRs and Plans get status: superseded when replaced.

Your call

  • Type(s): confirm the classification from step 2.
  • The key sentence: before drafting, ask me to state the core in my own words: the decision, the root cause, or the insight. Build the draft around my sentence.
  • Insights: when the core insight is unclear, ask about the intent behind important choices, rejected alternatives, and relevant trade-offs. Use these questions to validate the user's understanding, not to expand the scope of the session.
  • Where it goes: offer 2-3 options, recommended first, e.g. default notes inbox (from profile) / the project's docs/ / typed record folder.

Done when

  • The file exists at the chosen location, or we agreed no document is needed.

Hands off to

  • draft-curation: to review and curate drafts staged into an inbox into lifecycle destinations.
  • git-commit: to commit the document if it lives directly in a repo.