From core
Onboards external private libraries so AI can understand and use them without source access. Packages codebase with Repomix, detects project metadata, generates a compressed XML and a brief learning flow document.
How this command is triggered — by the user, by Claude, or both
Slash command
/core:external-lib-flowThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Onboarding Routine - Execute sequentially - Use Todo Tasks
## Context
- Purpose: Onboard AI to external codebase for usage understanding
- Tool: Repomix MCP to package codebase (compressed XML)
- Target: Two documents in RefSrc folder and in Rosetta
1. File: `{project-name}.xml` (compressed codebase, unmodified Repomix output)
2. File: `{project-name}-onboarding.md` (brief Learning Flow with reference)
- Files involved: Project path, README, package files for auto-detection
- MUST generate brief Learning Flow (3-5 words per step, max 20 lines)
- MUST use compressed XML (Tree-sitter)...{project-name}.xml (compressed codebase, unmodified Repomix output){project-name}-onboarding.md (brief Learning Flow with reference)MUST use RefSrc/{project-name}.xml and RefSrc/{project-name}-onboarding.md. MUST use grep or search with those, because those are big files.. Combine this rule for multiple external dependencies.Phase 1: Discovery
Phase 2: Analysis
Phase 3: Publishing
Phase 4: Verification
Make sure to have todo tasks for each step! Do not skip steps!
Ask or confirm user for project path with helpful suggestions. Auto-detect all metadata from project files to minimize user questions.
Use Repomix to package codebase with compression enabled (Tree-sitter). Generate Learning Flow summary by analyzing README and project structure. Keep XML small and focused on usage understanding. Make sure to exclude any tests projects or demo projects, to keep only the target project.
mcp_repomix_pack_codebase with compress: truemcp_repomix_pack_codebase:
# {Project Name} Onboarding
**File**: {project-name}.xml
## Learning Flow
### Phase 1: Setup
- Install dependencies
- Configure environment
### Phase 2: Usage
- Start development server
- Run tests
### Phase 3: Key Components
- API Routes: FastAPI
- Database: PostgreSQL
npx claudepluginhub p/griddynamics-core-instructions-r2-core/onboarding-docGenerates a Markdown developer onboarding document by scanning the repository for config files, dependencies, setup steps, and conventions.
/onboardProvides interactive onboarding for existing projects: analyzes codebase, tailors walkthrough by role and focus area, includes knowledge checks.
/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.
/hatch3r-onboardAnalyzes codebase structure, architecture, and conventions via parallel research agents, then produces a customized onboarding document with setup steps, architecture walkthrough, coding conventions, workflows, and tribal knowledge.
/onboardScans a new codebase, maps its architecture, sets up project rules, and saves context to memory for future sessions.
/explainExplains a feature, module, or entire codebase as if onboarding a new developer, producing layered summaries from one-liner to architecture deep dive.