️ 使用 GitHub Copilot SDK 将任何 GitHub 仓库转换为 Day 1 入职套件。在 < 60 秒内生成 12 个以上的 Markdown 文档。
️ 使用 GitHub Copilot SDK 将任何 GitHub 仓库转换为 Day 1 入职套件。在 < 60 秒内生成 12 个以上的 Markdown 文档。
Table of contents
New developers joining a project waste days or weeks trying to understand:
Most READMEs are outdated. Most wikis are incomplete. Most senior devs are too busy.
Repo Bootcamp uses agentic AI to analyze repositories from GitHub, GitLab, or Bitbucket and generate comprehensive, actionable onboarding documentation in under 60 seconds.
npx repo-bootcamp https://github.com/facebook/reactThat's it. You get 14+ interconnected markdown files covering everything a new contributor needs.
See CLI in action
…| Traditional Approach | Repo Bootcamp |
|---|---|
| Manual documentation takes days | Generated in |
| BOOTCAMP.md - 1-page overview |
# 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.mdARCHITECTURE.md - System design with diagrams
# 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) → ResponseFIRST_TASKS.md - Starter issues by difficulty
# 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| 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 |
# 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# 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.
# 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)# Start interactive mode after generation
bootcamp https://github.com/owner/repo --interactive
# Standalone Q&A without full generation
bootcamp ask https://github.com/owner/repoInside 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).
# 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)# 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# 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# 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# 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# 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 --checkFlags 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.
# 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 70The 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).
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.
Use the publish command to inspect or apply generated files to a clean checkout. It previews the exact branch, files, and commit by default:
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 mainPublishing refuses to mutate a dirty checkout and only accepts known generated
artifact types. Review ANALYSIS_MANIFEST.json before opening the pull request.
# 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# 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# 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# 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 --diagramSupports npm, Cargo, pip/Poetry, and Go module manifests.
# 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,或尚未同步最近议题。