dw-learn
Installation
SKILL.md
dw-learn
Turn a source into tight, template-conformant knowledge drafts. Pick a mode by source:
| Mode | Source | Reference |
|---|---|---|
session (default) |
the current live conversation | references/session.md |
history |
past on-disk sessions for this project | references/history.md |
repo |
a local or external code repository | references/repo.md |
Write articles through the diffwiki CLI (and dw-remember). Preserve raw inputs with references/source-capture.md; fill CLI-allocated metadata records directly. If diffwiki is missing, run /dw-install.
Dispatch
- Parse the mode from the first argument. Normalize: empty →
session;current/this→session;past/sessions→history;code/codebase→repo. Everything after the mode token is that mode's input (e.g. a repo path or URL forrepo). If the first token is free-text prose rather than a mode/alias, treat it assession(the user is describing what to capture); if it is ambiguous, show the three modes and ask. - Run the mode. Read and follow
references/<mode>.md. Every mode ends by running the shared mine pipeline inreferences/mine.md.