Capture structured knowledge about a code entry point and save it to the knowledge docs. Use when users ask to document, understand, or map code for a module, file, folder, function, or API.
Build structured understanding of code entry points with an analysis-first workflow.
npx ai-devkit@latest memory search --query "<entry point name or purpose>"calculateTotalPrice → calculate-total-price).docs/ai/implementation/knowledge-{name}.md using the Output Template.| Rationalization | Why It's Wrong | Do Instead |
|---|---|---|
| "I already understand this code" | Understanding ≠ documented understanding | Write it down, then verify |
| "The code is self-documenting" | Future readers lack your current context | Capture the why, not just the what |
| "Dependencies are obvious" | Implicit dependencies cause surprises | Map them explicitly to depth 3 |