← Back to repository

codebase-onboarding

分析代码库,为新工程师、技术负责人和外包人员生成上手文档。快速收集事实,产出可复用的上手材料。适用于新工程师入职、为新项目编写架构概览文档,或为陌生仓库生成技术负责人简报。

slug: codebase-onboarding v1.0.0 Engineering Workflow By Alireza Rezvani 5 files · 13.4 KB Updated 2026-10-20 Measured +2.3% ↓ 2 downloads 💬 0 reviews Quality 94/100 by Alireza Rezvani
Sign in to download (1 shrimp) Reviews (0) View JSON
Benchmark 小幅提升 deepseek-chat · 2 tasks × 1 samples × 3 repeats · 多轮协作 · 盲评 Methodology →
+2.3%
Average score gap in blind review,
with vs. without the skill.
n=3 次重复均值,区间 -2.3% ~ 4.6%
Bare model 73.3
With skill 75.7
Tested 2026-10-20 2 tasks × 1 samples Blind review · same model, same params Pure conversation — no real commands run
Show per-task details (2)
Task 1 · 客户临时要我们接手一个没写文档的 Node 服务做二次开发,我得先出一份技术负责人简报,说明架构和运维风险。
Sample 1 Bare 0.0 vs Skilled 0.0 两份最终交付质量接近,A 在首轮即给出可操作的信息索取清单、风险表述更克制且验证项更贴合材料,B 首轮偏框架化、部分结论推断略强。
Task 2 · 我们组下周要接手一个外包团队留下的 Python 数据管道仓库,没人熟悉它。请先给出你分析这个仓库所需的关键信息清单,我按清单提供。
Sample 1 Bare 88.0 vs Skilled 86.0 两份质量接近,A 在命令可执行性与不臆造方面更严谨,B 在风险编号与分工组织上更系统,整体 A 略优。
Community tests Run by users with their own API keys — models and settings vary, for rough comparison only Sign in to test with my key →
Nobody has run it yet. Plug in your own key and test with your daily model — results stay in your records and never enter the official board.
—
☆☆☆☆☆
No ratings yet — tell it like it is after you've used it

One-line install

Downloading requires signing in first (free registration — just a username and password).Sign in →

Reviews · 0

Sign in to post a review.Sign in →

No reviews yet — be the first to share.

Quality check · 94/100

13 automated checks on metadata, examples, executability and completeness, for authors to self-improve; does not affect user ratings.

Version history

SKILL.md content

# Codebase Onboarding

**Tier:** POWERFUL  
**Category:** Engineering  
**Domain:** Documentation / Developer Experience

---

## Overview

Analyze a codebase and generate onboarding documentation for engineers, tech leads, and contractors. This skill is optimized for fast fact-gathering and repeatable onboarding outputs.

## Core Capabilities

- Architecture and stack discovery from repository signals
- Key file and config inventory for new contributors
- Local setup and common-task guidance generation
- Audience-aware documentation framing
- Debugging and contribution checklist scaffolding

---

## When to Use

- Onboarding a new team member or contractor
- Rebuilding stale project docs after large refactors
- Preparing internal handoff documentation
- Creating a standardized onboarding packet for services

---

## Quick Start

```bash
# 1) Gather codebase facts
python3 scripts/codebase_analyzer.py /path/to/repo

# 2) Export machine-readable output
python3 scripts/codebase_analyzer.py /path/to/repo --json

# 3) Use the template to draft onboarding docs
# See references/onboarding-template.md
```

---

## Recommended Workflow

1. Run `scripts/codebase_analyzer.py` against the target repository.
2. Capture key signals: file counts, detected languages, config files, top-level structure.
3. Fill the onboarding template in `references/onboarding-template.md`.
4. Tailor output depth by audience:
   - Junior: setup + guardrails
   - Senior: architecture + operational concerns
   - Contractor: scoped ownership + integration boundaries

---

## Onboarding Document Template

Detailed template and section examples live in:
- `references/onboarding-template.md`
- `references/output-format-templates.md`

---

## Common Pitfalls

- Writing docs without validating setup commands on a clean environment
- Mixing architecture deep-dives into contractor-oriented docs
- Omitting troubleshooting and verification steps
- Letting onboarding docs drift from current repo state

## Best Practices

1. Keep setup instructions executable and time-bounded.
2. Document the "why" for key architectural decisions.
3. Update docs in the same PR as behavior changes.
4. Treat onboarding docs as living operational assets, not one-time deliverables.