codehub-onboarding
Produces a single ONBOARDING.md. The wedge is the ranked reading order drawn from graph centrality — a generic README scaffold cannot produce this.
Frontmatter
Section titled “Frontmatter”name: codehub-onboardingargument-hint: "[output-path] [--committed]"color: greenmodel: sonnetPreconditions
Section titled “Preconditions”mcp__opencodehub__list_reposmust return the target.codehub statusmust be fresh.
Both refuse loudly with a one-line remediation hint per spec 001 AC-3-1.
Process
Section titled “Process”mcp__opencodehub__project_profile— languages, stacks, entry points.mcp__opencodehub__route_map/mcp__opencodehub__tool_map— HTTP / MCP surface.mcp__opencodehub__sqlfor top-centrality nodes:SELECT name, file_path, in_degree + out_degree AS centralityFROM nodesWHERE kind IN ('File','Module','Class')ORDER BY centrality DESCLIMIT 15mcp__opencodehub__contexton the top 8 for one-line summaries.mcp__opencodehub__ownerson top 3 folders → “ask these humans” table.- Dispatch one specialty
doc-onboardingsubagent. - Assemble ONBOARDING.md and write to the resolved output path.
Output shape
Section titled “Output shape”# <repo> · Onboarding
## TL;DR2 sentences — what this repo does + the mental model to hold.
## Stack| Layer | Tech | Source |
## Read these 10 files first (in order)1. `packages/cli/src/bin.ts` — CLI entry point. (45 LOC)2. `packages/mcp/src/server.ts` — MCP bootstrap. (320 LOC)... (ranked by centrality)
## Walk one process end-to-end(the highest-step-count process, traced step by step)
## Ask these humans| Area | Owner | Share |
## Next steps- Concrete first actions.Arguments
Section titled “Arguments”| Flag | Meaning |
|---|---|
[output-path] | Where to write. Default: .codehub/ONBOARDING.md (gitignored). With --committed: docs/ONBOARDING.md. |
--committed | Opt in to a committed path. |
Related
Section titled “Related”- codehub-document — for the full architecture book
- Skills index