onboard-builder module generates a self-contained markdown onboarding document from a KnowledgeGraph. The output is suitable for a README, wiki page, or documentation site and includes a project overview, architectural layers, key concepts, a guided tour, a file map, and complexity hotspots.
buildOnboardingGuide
Generates a structured onboarding guide from the knowledge graph.The full knowledge graph produced by the analysis pipeline. All fields are used:
project, nodes, edges, layers, and tour.Return value
Returns astring containing a complete markdown document. The document is self-contained and does not reference any external files.
Output structure
The guide is assembled from up to six sections. Sections are omitted when the relevant data is empty.Project overview
Always present. Contains a summary table:Architecture
Present whengraph.layers is non-empty. Each layer gets a ### heading with its description and a comma-separated list of key component names.
Key Concepts
Present when the graph contains nodes of type"concept". Each concept node gets a ### heading with its summary.
Getting Started
Present whengraph.tour is non-empty. Renders the guided tour steps in order. Each step shows:
- Step number and title
- Description
- File list with node summaries (
node.filePathis required per entry) - Optional language tip in a blockquote (
step.languageLesson)
File Map
Present when nodes of type"file" with a filePath exist. Renders a markdown table:
Complexity Hotspots
Present when nodes withcomplexity === "complex" exist. Lists each complex node with its type and summary so new contributors know where to be careful.