Skip to content

Systematize Knowledge — JTBD Canvas

Systematize Codebase Knowledge into Structured Documentation

Section titled “Systematize Codebase Knowledge into Structured Documentation”

Quick Reference

  • Job Performer: AI Agent Alex
  • Job Type: Core
  • Frequency: On-demand (per project)
  • Complexity: Complex

When a development team has an undocumented or poorly documented codebase, I want to analyze the code and generate comprehensive documentation automatically, so that the team has a complete, searchable knowledge base without manual writing effort.

The team realizes documentation is missing or outdated. A new hire joins and cannot find answers. A senior engineer leaves and takes institutional knowledge with them.

Trigger event: User runs dockit-master.sh or invokes the /DocKit Master command in their AI IDE (scripts/dockit-master.sh:1)

AlternativeProsCons
Manual documentationFull control over contentTime-consuming, always outdated
README generatorsQuick setupShallow — no personas, flows, JTBD
Swagger/OpenAPIGood for API docsNo SOP guides, no architecture docs
GitHub Copilot docsAI-poweredNo structured knowledge layer
  • Complete documentation suite: personas, JTBD, flows, architecture, SOP, API
  • SEO-optimized pages that rank in search engines
  • LLM-readable content for AI research tools like NotebookLM
  • Professional Astro Starlight site with search, dark mode, and sidebar navigation
graph TB

    MJ["Main: Systematize\ncodebase knowledge"]
    SJ1["Analyze codebase"]
    SJ2["Generate knowledge layer"]
    SJ3["Generate documentation"]
    SJ4["Export and deploy"]

    MJ --> SJ1
    MJ --> SJ2
    MJ --> SJ3
    MJ --> SJ4

    SJ1 --> MJ1["Scan directory structure"]
    SJ1 --> MJ2["Detect tech stack"]
    SJ2 --> MJ3["Build personas from roles"]
    SJ2 --> MJ4["Extract JTBD from features"]
    SJ3 --> MJ5["Generate architecture docs"]
    SJ3 --> MJ6["Generate SOP guides"]

Job map summary: The main job decomposes into four small jobs — analyze, build knowledge, generate docs, and export. Each small job contains specific micro-jobs that map to individual skill files.

StepSmall JobMicro-jobsSource
1Analyze codebaseScan dirs, detect stack, map routes, extract schemaskills/analyze-codebase.md:7-56
2Generate knowledgeBuild personas, extract JTBD, map flowsskills/persona-builder.md, skills/jtbd-analyzer.md, skills/flow-mapper.md
3Generate documentationArchitecture, database, deployment, SOP, APIskills/tech-docs.md, skills/sop-guide.md, skills/api-reference.md
4Export and deployBuild Astro site, generate sitemap, run SEO auditworkflows/setup-astro.md, workflows/generate-sitemap.md