codebase-teach
codebase-teach
Analyzes bounded contexts from the project's source tree, extracts domain knowledge per context, writes
ai-context/features/<context>.mdfiles, and producesteach-report.mdwith coverage metrics.
Triggers: /codebase-teach, teach codebase, extract domain knowledge, update feature docs, analyze bounded contexts
Purpose
codebase-teach fills the ai-context/features/ layer with structured domain knowledge derived from reading source code. It is the deep-read complement to memory-update (which records session decisions) and memory-init (which scaffolds empty stubs). It MUST only be invoked manually by the user.
Process
Step 0 — Load project context (non-blocking)
This step is non-blocking: any failure (missing file, unreadable file) MUST produce at most an INFO-level note. This step MUST NOT produce status: blocked or status: failed.