- Update handoff and boundary references across active skills and draft-curation from git-commit and git-workspace to git-manager - Align diagnose and inspect-flake-update approval checkpoints with profile/AGENTS.md commit autonomy
56 lines
3.5 KiB
Markdown
56 lines
3.5 KiB
Markdown
---
|
|
name: document
|
|
description: >-
|
|
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-manager`.
|
|
- 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](references/discussion-authoring.md) |
|
|
| What we decided (architecture) | ADR | [adr](references/adr-authoring.md) |
|
|
| How to build it: phases, constraints, done-definition | Plan | [plan](references/plan-authoring.md) |
|
|
| What broke and why (root cause) | Debug Record | [debug](references/debug-record-authoring.md) |
|
|
| A general mental model or technique | Knowledge | [knowledge](references/knowledge-authoring.md) |
|
|
| Daily synthesis: facts, reasoning, calibration | Journal | [journal](references/journal-authoring.md) |
|
|
|
|
A rich session may justify more than one (e.g. Debug Record + Discussion). Split them; don't write one hybrid document.
|
|
|
|
3. **Draft** each document following its spec. Read the spec before writing.
|
|
4. **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.
|
|
5. **Keep references portable**: Use relative paths or context-defined placeholders. Never write absolute file-system paths into documentation.
|
|
6. **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-manager`: to stage and commit the document if it lives directly in a repo.
|