From onboard
Onboard to any codebase - generates a structured overview then guides you interactively through the project
How this command is triggered — by the user, by Claude, or both
Slash command
/onboard:onboard [path] [--depth=quick|normal|deep]This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /onboard - Codebase Onboarding Onboard to any codebase. Collects project data automatically (no LLM), then an agent synthesizes it and guides you interactively. ## Arguments Parse from `$ARGUMENTS`: - **Path**: Directory to analyze (default: current directory) - `--depth`: Analysis depth - `quick`: Manifest + README + directory tree only (~2s) - `normal` (default): + CLAUDE.md, CI, repo-intel (~5s) - `deep`: + repo-map AST symbols (~15s) ## Phase 1: Automated Data Collection (Pure JS) ## Phase 2: Agent Synthesis + Interactive Guidance
Onboard to any codebase. Collects project data automatically (no LLM), then an agent synthesizes it and guides you interactively.
Parse from $ARGUMENTS:
--depth: Analysis depth
quick: Manifest + README + directory tree only (~2s)normal (default): + CLAUDE.md, CI, repo-intel (~5s)deep: + repo-map AST symbols (~15s)const pluginRoot = process.env.CLAUDE_PLUGIN_ROOT;
if (!pluginRoot) { console.error('Error: CLAUDE_PLUGIN_ROOT not set'); process.exit(1); }
const collector = require(`${pluginRoot}/lib/collector`);
const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const depth = args.find(a => a.startsWith('--depth='))?.split('=')[1] || 'normal';
const targetPath = args.find(a => !a.startsWith('--')) || process.cwd();
console.log(`[INFO] Collecting project data (depth: ${depth})...`);
const data = collector.collect(targetPath, { depth });
console.log(`[OK] Data collected:`);
console.log(` Manifest: ${data.manifest?.type || 'none'} (${data.manifest?.language || '?'})`);
console.log(` Structure: ${data.structure?.length || 0} directories`);
console.log(` README: ${data.readme ? 'found' : 'missing'}`);
console.log(` Repo-intel: ${data.repoIntel ? 'available' : 'unavailable'}`);
console.log(` Repo-map: ${data.repoMap ? data.repoMap.totalFiles + ' files, ' + data.repoMap.totalSymbols + ' symbols' : 'unavailable'}`);
await Task({
subagent_type: "onboard:onboard-agent",
prompt: `Onboard the user to this codebase.
## Collected Data (already gathered, do NOT re-scan files)
${JSON.stringify(data, null, 2)}
## Your Job
1. **Synthesize** the collected data into a clear, concise summary (2-3 min read)
2. **Read key files** that the data points to - entry points, main modules, interesting patterns
3. **Present the summary** to the user
4. **Ask what they want to do** - fix a bug? add a feature? understand a specific area?
5. **Guide them** to the right files using coupling, ownership, and symbol data
Use the repo-intel onboard data to enrich the summary:
- Health and bus factor
- Key areas with purpose annotations
- Pain points (high bug-fix rate areas)
- Hotspots (where active development is)
- Getting started commands
Use conventions data (if available) to describe coding style:
- Function naming convention (snake_case, camelCase, PascalCase)
- Test framework and test location pattern
- Commit message convention (conventional, freeform)
Use project metadata (if available) for quick facts:
- Primary language and language breakdown
- CI provider and workflow count
- License type
- Package manager
Use repo-map data (if available) to trace code:
- "This function is exported from X and imported by Y and Z"
- "The main entry point calls these modules in this order"
Do NOT just dump the JSON. Synthesize it into human-readable insights.
After the summary, ask the user what they want to explore.`
});
npx claudepluginhub agent-sh/onboard/onboardGenerates a full onboarding playbook for new hires spanning pre-arrival through 90 days, covering account setup, documentation, mentorship, and milestones.
/onboardGuides onboarding to an existing codebase via codebase mapping, doc ingestion, project setup, and summary generation with safety gates.
/onboardGenerates four audience-tailored onboarding guides (Contributor, Staff Engineer, Executive, Product Manager) in an onboarding/ folder, with automatic language/technology detection and cross-language comparisons.
/onboardGenerates a developer onboarding guide by scanning project config files, mapping structure, identifying prerequisites, and documenting setup and workflow steps.
/onboardInteractively configures superpowers' optional features via multiple-choice prompts, writing config files and hook registrations based on user choices.
/onboardIndexes the current folder and saves a persistent overview (code-shape map for git repos, file-shape index for others) for automatic reuse in future sessions.