JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q54867F
  • License ISC

OnboardGPT CLI for repository analysis and onboarding

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 dependencies
npm install

# Analyze current directory
node index.js

# Analyze specific repository
node index.js /path/to/repository

# Generate summary for developers
node index.js --summarize developer

# Output as JSON for CI/CD
node index.js --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

๐Ÿ› ๏ธ Additional Options

  • --verbose: Enable detailed error information
  • --help: Show usage information
  • --version: Display version number

๐Ÿ“– Usage Examples

Basic Analysis

# Full analysis with all features
node index.js

# Analyze specific repository
node index.js /path/to/my-project

Selective Analysis

# Skip dependency analysis (faster for large projects)
node index.js --no-deps

# Only analyze tech stack
node index.js --no-deps --no-entry

# Minimal analysis
node index.js --no-deps --no-entry --no-stack

AI-Powered Summaries

# Developer-focused summary with code examples
node index.js --summarize developer

# PM summary focusing on business impact
node index.js --summarize pm

# New hire onboarding with setup instructions
node index.js --summarize new-hire

# Security and compliance focused
node index.js --summarize auditor

CI/CD Integration

# JSON output for automated processing
node index.js --output json

# Selective analysis with JSON output
node index.js --no-deps --output json

# Summary in JSON format
node index.js --summarize developer --output json

Complex Combinations

# Skip deps, generate PM summary, output as JSON
node index.js --no-deps --summarize pm --output json

# Fast analysis with new-hire summary
node index.js --no-deps --no-entry --summarize new-hire

# Full analysis with developer summary
node index.js --summarize developer --verbose

๐Ÿ”ง 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 test

Test 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