百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

repo-bootcamp

> AI 编程
开源

️ 使用 GitHub Copilot SDK 将任何 GitHub 仓库转换为 Day 1 入职套件。在 < 60 秒内生成 12 个以上的 Markdown 文档。

100 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

️ 使用 GitHub Copilot SDK 将任何 GitHub 仓库转换为 Day 1 入职套件。在 < 60 秒内生成 12 个以上的 Markdown 文档。

Repo Bootcamp


Table of contents

  • The Problem · The Solution · Why This Tool Wins
  • How It Uses the GitHub Copilot SDK · Features
  • Example Output · Generated Documentation
  • Quick Start · Usage · CLI Options · Commands
  • Programmatic API · Architecture · How It Works
  • Configuration · Development · Requirements
  • Model Configuration · Tech Stack · Contributing · License

The Problem

New developers joining a project waste days or weeks trying to understand:

  • How do I set up my environment?
  • What's the architecture? Where do I start reading?
  • What are safe first contributions?
  • Who do I ask when I'm stuck?

Most READMEs are outdated. Most wikis are incomplete. Most senior devs are too busy.

The Solution

Repo Bootcamp uses agentic AI to analyze repositories from GitHub, GitLab, or Bitbucket and generate comprehensive, actionable onboarding documentation in under 60 seconds.

bash
npx repo-bootcamp https://github.com/facebook/react

That's it. You get 14+ interconnected markdown files covering everything a new contributor needs.

See CLI in action

…

Why This Tool Wins

Traditional Approach Repo Bootcamp
Manual documentation takes days Generated in
BOOTCAMP.md - 1-page overview
markdown
# sindresorhus/ky Bootcamp

> Tiny Fetch-based HTTP client with ergonomic helpers, retries, and hooks.

## Quick Facts

|                  |            |
| ---------------- | ---------- |
| **Languages**    | TypeScript |
| **Frameworks**   | None       |
| **Build System** | npm        |

## Quick Start

1. Install dependencies: npm install
2. Run tests: npm test
3. Build: npm run build

## If You Only Have 30 Minutes

1. Read this document
2. Run `npm install && npm test`
3. Pick a starter task from FIRST_TASKS.md

ARCHITECTURE.md - System design with diagrams

markdown
# Architecture

## Component Diagram

​`mermaid
graph TD
    A[ky.ts] --> B[Ky Class]
    B --> C[request]
    B --> D[retry logic]
    B --> E[hooks]
    C --> F[Response helpers]
​`

## Data Flow

Request → Options Merge → Hooks (before) → Fetch → Retry? → Hooks (after) → Response

FIRST_TASKS.md - Starter issues by difficulty

markdown
# First Tasks

## Beginner Tasks

### 1. Add README badge for Node.js version

- **Files:** README.md
- **Why:** Easy first contribution, improves documentation

### 2. Add test for edge case

- **Files:** test/main.ts
- **Why:** Improves test coverage, low risk

## Intermediate Tasks

### 3. Improve TypeScript types for hooks

- **Files:** source/types/hooks.ts
- **Why:** Better DX, teaches you the hook system

Generated Documentation

File Description
BOOTCAMP.md 1-page overview - start here!
ONBOARDING.md Complete setup guide with commands
ARCHITECTURE.md System design with Mermaid diagrams
CODEMAP.md Directory tour for navigation
FIRST_TASKS.md 8-10 starter issues by difficulty
RUNBOOK.md Operations guide (for services)
DEPENDENCIES.md Dependency graph and analysis
SECURITY.md Security patterns and findings
RADAR.md Tech radar and onboarding risk score
IMPACT.md Change impact analysis for key files, plus any circular dependencies
METRICS.md Codebase metrics, hotspots & approachability score
HEALTH.md Onboarding-readiness health score & recommendations
DIFF.md Version comparison (with --compare)
diagrams.mmd Mermaid diagram sources
repo_facts.json Structured data for automation
ANALYSIS_MANIFEST.json Reproducibility metadata, scan coverage, and evidence sources

Quick Start

bash
# Clone and install
git clone https://github.com/your-username/repo-bootcamp.git
cd repo-bootcamp
npm install

# Build
npm run build

# Generate bootcamp for any repo
node dist/cli.js https://github.com/sindresorhus/ky

# Or use with npx (after npm link)
npm link
bootcamp https://github.com/sindresorhus/ky

Usage

Basic Generation

bash
# Basic usage
bootcamp 

# With options
bootcamp https://github.com/owner/repo \
  --branch main \
  --focus all \
  --audience backend \
  --output ./my-bootcamp \
  --verbose \
  --stats

# Analyze an existing local checkout (no clone)
bootcamp ./path/to/local/repo --no-clone

`` can be a GitHub, GitLab, or Bitbucket repository URL.

Fast Mode

bash
# Generate bootcamp quickly (~15-30s instead of ~60s)
bootcamp https://github.com/owner/repo --fast

# Fast mode skips tool-calling and inlines key files directly
# Inline file budget adapts to model context window (or use --model to override)

Interactive Q&A Mode

bash
# Start interactive mode after generation
bootcamp https://github.com/owner/repo --interactive

# Standalone Q&A without full generation
bootcamp ask https://github.com/owner/repo

Inside the session, type a question to ask the assistant, or use a slash command: /help (command reference), /files (list detected files), /clear (clear the screen), /exit (end the session).

Version Comparison

bash
# Compare current HEAD with a tag/branch/commit
bootcamp https://github.com/owner/repo --compare v1.0.0

# See what changed for onboarding (new deps, env vars, commands)

PR Diff Mode

bash
# Analyze onboarding impact of a pull request
bootcamp diff owner/repo#123

# Or with a PR URL
bootcamp diff https://github.com/owner/repo/pull/123

Watch Mode

bash
# Re-run analysis when new commits land
bootcamp https://github.com/owner/repo --watch

# Custom polling interval (seconds)
bootcamp https://github.com/owner/repo --watch --watch-interval 60

# Allow destructive hard-reset fallback if fast-forward merge is not possible
bootcamp https://github.com/owner/repo --watch --watch-force

Environment Doctor

bash
# Check Node, git, GitHub CLI/auth, mermaid-cli, and cache health
bootcamp doctor

# Machine-readable output (exits non-zero if a required check fails)
bootcamp doctor --json

Project Configuration

bash
# Scaffold a .bootcamprc.json in the current directory
bootcamp init

# Preview the config without writing a file
bootcamp init --print

# Preset a style pack (and/or pick a custom path)
bootcamp init --style corporate --path bootcamp.config.json

Docs Drift Analyzer

bash
# Detect stale or mismatched docs (versions, frameworks, CLI flags, badges)
bootcamp docs https://github.com/owner/repo

# Works on local paths too
bootcamp docs ./my-repo

# Auto-fix the stale sections it can repair
bootcamp docs ./my-repo --fix

# CI gate: exit non-zero when docs are stale
bootcamp docs ./my-repo --check

Flags version mismatches, undocumented frameworks/prerequisites, CLI drift, and broken badges. Pair --check with --fix in CI to fail the build and propose repairs in one pass.

Combined Scan

bash
# Clone once, then report health + metrics + security + onboarding risk in one dashboard
bootcamp scan https://github.com/owner/repo

# Works on local paths too
bootcamp scan ./my-repo

# Machine-readable output (all reports plus a score summary)
bootcamp scan ./my-repo --json

# CI gate: exit non-zero when the lowest of the three scores is below the minimum
bootcamp scan ./my-repo --check --min-score 70

The dashboard also includes the tech-radar onboarding-risk score (0-100, lower is better) alongside health/metrics/security. The --check gate stays on the lowest of the three higher-is-better scores (onboarding risk is reported but not gated, since for it lower is better).

Continuous Onboarding Quality

This repository includes a ready-to-copy GitHub Actions workflow at .github/workflows/onboarding-quality.yml. It builds Repo Bootcamp, runs the deterministic scan dashboard on every push and pull request, fails when the minimum score is missed, and uploads the machine-readable report as an artifact. It does not require a Copilot token or make an AI call.

Publishing a Generated Kit

Use the publish command to inspect or apply generated files to a clean checkout. It previews the exact branch, files, and commit by default:

bash
bootcamp publish ./my-repo ./.bootcamp-output/job/repo

# Explicitly create a branch, copy the kit, and commit it
bootcamp publish ./my-repo ./.bootcamp-output/job/repo --apply --branch bootcamp/onboarding-refresh

# Push the branch and open a GitHub pull request (requires gh auth)
bootcamp publish ./my-repo ./.bootcamp-output/job/repo --create-pr --base main

Publishing refuses to mutate a dirty checkout and only accepts known generated artifact types. Review ANALYSIS_MANIFEST.json before opening the pull request.

Repo Health Check

bash
# Score a repo's onboarding-readiness (docs, community, quality, automation)
bootcamp health https://github.com/owner/repo

# Works on local paths too
bootcamp health ./my-repo

# Machine-readable output
bootcamp health ./my-repo --json

# CI gate: exit non-zero when the score is below the minimum (default 70)
bootcamp health ./my-repo --check --min-score 80

Codebase Metrics

bash
# Report languages, size, hotspots, and an approachability score
bootcamp metrics https://github.com/owner/repo

# Works on local paths too
bootcamp metrics ./my-repo

# Machine-readable output
bootcamp metrics ./my-repo --json

# CI gate: exit non-zero when approachability is below the minimum (default 70)
bootcamp metrics ./my-repo --check --min-score 75

Security Analysis

bash
# Analyze security patterns, protections, and score a repo
bootcamp security https://github.com/owner/repo

# Works on local paths too
bootcamp security ./my-repo

# Machine-readable output (findings, protections, deps, score)
bootcamp security ./my-repo --json

# CI gate: exit non-zero when the security score is below the minimum (default 70)
bootcamp security ./my-repo --check --min-score 80

Dependency Report

bash
# Detect the package manager and report dependencies grouped by category
bootcamp deps https://github.com/owner/repo

# Works on local paths too
bootcamp deps ./my-repo

# Machine-readable output (counts, categories, full lists)
bootcamp deps ./my-repo --json

# Emit the Mermaid dependency graph (pipe into a renderer or a Markdown fence)
bootcamp deps ./my-repo --diagram

Supports npm, Cargo, pip/Poetry, and Go module manifests.

Tech Radar & Onboarding Risk

bash
# Map the stack onto a modern/stable/legacy/risky radar and score onboarding risk
bootcamp radar https://github.com/owner/repo

# Works on local paths too
bootcamp radar ./my-repo

# Machine-readable output (signals + onboarding-risk score, grade, factors)
bootcamp radar ./my-repo --json

# CI gate:

Issues· 2 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptaiclicopilot-sdkdeveloper-tools

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类AI 编程
定价开源

> 相关工具

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.