Package Exports
- onboardgpt
- onboardgpt/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (onboardgpt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
OnboardGPT CLI
AI-powered repository analysis and onboarding assistant. Generate intelligent summaries, analyze dependencies, detect entry points, and understand tech stacks with a single command.
๐ Quick Start
# Install globally (recommended)
npm install -g onboardgpt
# Or run without installing
npx onboard-gpt --help
# Analyze current directory
onboard-gpt
# Analyze specific repository
onboard-gpt /path/to/repository
# Generate summary for developers
onboard-gpt --summarize developer
# JSON output for CI/CD
onboard-gpt --output json๐ Features
๐ Selective Analysis
--no-deps: Skip dependency analysis--no-entry: Skip entry point detection--no-stack: Skip technology stack analysis
๐ค AI-Powered Summaries
--summarize developer: Technical summary for developers--summarize pm: Product manager focused summary--summarize new-hire: Onboarding guide for new team members--summarize auditor: Compliance and security focused summary
๐ค Output Formats
--output text: Human-readable format (default)--output json: Machine-readable JSON for CI/CD integration
๐ค AI Agent System (NEW!)
--agent: Enable advanced AI-powered code analysis--interactive: Start conversational repository exploration--agent-max-files <count>: Control analysis scope (default: 50)--agent-max-depth <depth>: Control directory depth (default: 5)
๐ ๏ธ Additional Options
--verbose: Enable detailed error information--help: Show usage information--version: Display version number
๐ Usage Examples
Basic Analysis
# Full analysis with all features
onboard-gpt
# Analyze specific repository
onboard-gpt /path/to/my-projectSelective Analysis
# Skip dependency analysis (faster for large projects)
onboard-gpt --no-deps
# Only analyze tech stack
onboard-gpt --no-deps --no-entry
# Minimal analysis
onboard-gpt --no-deps --no-entry --no-stackAI-Powered Summaries
# Developer-focused summary with code examples
onboard-gpt --summarize developer
# PM summary focusing on business impact
onboard-gpt --summarize pm
# New hire onboarding with setup instructions
onboard-gpt --summarize new-hire
# Security and compliance focused
onboard-gpt --summarize auditorCI/CD Integration
# JSON output for automated processing
onboard-gpt --output json
# Selective analysis with JSON output
onboard-gpt --no-deps --output json
# Summary in JSON format
onboard-gpt --summarize developer --output jsonAI Agent Analysis
# Enable AI agent for intelligent code analysis
onboard-gpt --agent
# Start interactive AI exploration session
onboard-gpt --agent --interactive
# Configure agent analysis scope
onboard-gpt --agent --agent-max-files 100 --agent-max-depth 5
# Combine agent with traditional analysis
onboard-gpt --agent --summarize developerComplex Combinations
# Skip deps, generate PM summary, output as JSON
onboard-gpt --no-deps --summarize pm --output json
# Fast analysis with new-hire summary
onboard-gpt --no-deps --no-entry --summarize new-hire
# Full analysis with developer summary
onboard-gpt --summarize developer --verbose
# AI agent with selective analysis
onboard-gpt --agent --no-deps --interactive๐ง Configuration
The CLI automatically detects and analyzes:
- Dependencies: package-lock.json, yarn.lock, Pipfile.lock, poetry.lock
- Entry Points: Main scripts, web applications, CLI tools, libraries
- Tech Stacks: Languages and framework versions
- Project Structure: Key files and directories
๐ Output Examples
Text Output (Default)
๐ OnboardGPT Analysis
๐ Repository: /path/to/project
โ๏ธ Config: deps=true, entry=true, stack=true
๐ OVERVIEW
- Total Files: 1,245
- Languages: TypeScript, JavaScript, Python
- Dependencies: 127 (45 dev)
๐ฆ DEPENDENCIES
- Production: 82
- Development: 45
- Total: 127
๐ ENTRY POINTS
๐ Web Applications:
- src/app.js (Express server)
- src/client/index.tsx (React app)
๐ SUMMARY
Generated AI summary based on audience...JSON Output
{
"overview": {
"totalFiles": 1245,
"languages": ["TypeScript", "JavaScript", "Python"],
"keyDirectories": ["src", "tests", "docs"]
},
"dependencies": {
"total": 127,
"direct": 23,
"dev": 45,
"tree": [...]
},
"entryPoints": [...],
"techStacks": [...],
"summary": "AI-generated summary..."
}๐ฆ Error Handling
The CLI provides helpful error messages:
# Invalid audience
โ Error: Invalid audience: invalid. Must be one of: developer, pm, new-hire, auditor
# Invalid output format
โ Error: Invalid output format: xml. Must be one of: text, json
# Non-existent repository
โ Error: Repository path does not exist: /invalid/path๐งช Testing
Run the comprehensive test suite:
npm testTest Coverage: 28 tests covering all functionality:
- โ Basic CLI operations
- โ Selective analyzer flags
- โ Summary generation
- โ Output formats
- โ Error handling
- โ Complex flag combinations
๐ CI/CD Integration
Perfect for automated workflows:
# GitHub Actions example
- name: Analyze Repository
run: |
npx onboard-gpt --output json > analysis.json
- name: Generate Documentation
run: |
npx onboard-gpt --summarize developer > ONBOARDING.md๐ฏ Success Criteria (Day 4 Complete)
โ
Selective Analyzer Flags: --no-deps, --no-entry, --no-stack all working
โ
Summary Controls: All audiences (developer, pm, new-hire, auditor) implemented
โ
Output Formats: Both text and JSON formats working perfectly
โ
Flag Combinations: All combinations tested and working
โ
Error Handling: Comprehensive validation and user-friendly error messages
โ
Unit Tests: 28/28 tests passing with โฅ90% coverage
โ
Integration Demo: Full functionality demonstrated end-to-end
๐ Next Steps
Ready for Sprint 2: VS Code Extension Polish (Days 5-8):
- User settings integration
- UI improvements with collapsible sections
- Live streaming progress indicators