agentsclimarketplace

Codebase onboarding doc

Skill findscripter/everything-skills/07-productivity/codebase-onboarding-doc

类书式 AI Agent 技能大典 · 精选/中文化/互见成网的 500+ 开源技能,可作为 Claude Code 插件市场一键安装。A curated, cross-referenced encyclopedia of 500+ open-source agent skills.

Install
npx -y skills add findscripter/everything-skills --skill codebase-onboarding-doc

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

当需要为新工程师/技术负责人/外包快速摸清陌生代码库并产出标准化上手(onboarding)文档时使用;做的是先扫描仓库收集架构与栈事实、再按受众填模板生成可执行上手手册;不适用于深度代码审查或安全审计;触发词:上手文档、onboarding、代码库导览、新人入职文档、架构概览、codebase walkthrough、仓库交接、技术负责人简报

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.5 KB, as published. Nobody here has run it

何时使用

  • 新工程师、外包或技术负责人接手一个陌生仓库,需要一份标准化上手文档(架构、栈、关键文件、本地启动、常见任务)。
  • 大规模重构后旧文档已失效,需重建;或准备内部交接 / 服务上手手册。

不该用:

  • 需要逐行找 bug、做代码质量评审 → 用 code-reviewer。
  • 需要核查依赖漏洞 / 许可证 → 用 dependency-auditor。
  • 给外包写文档时,不要塞入深度架构剖析;给受众错配只会增加噪音。

步骤

  1. 扫事实:对目标仓库跑分析脚本,拿到文件数、语言分布、关键配置文件、目录结构、最大文件等机器可读信号,避免靠记忆臆测。
  2. 抓关键信号:语言占比定主栈;关键配置(package.json / pyproject.toml / go.mod / Cargo.toml / docker-compose.yml / .github/workflows 等)定构建与 CI;目录结构定模块边界。
  3. 按受众填模板,控制深度:
    • 初级:本地 setup + 护栏(先读核心 auth/data 模块,以测试为可执行示例)。
    • 资深:架构 + 运维关注点(先读 ADR/扩展性笔记,尽早验证性能/安全假设)。
    • 外包:限定职责边界 + 集成边界(外部集成走 wrapper,别越界)。
  4. 在干净环境验证 setup 命令真能跑通,再把每个安装阶段后的验证勾选项写进文档。
  5. 需要时导出到 Notion / Confluence 供团队消费。

指令

收集代码库事实(脚本仅依赖 Python 标准库,可直接跑):

# 文本摘要:语言分布 / 关键配置 / 最大文件 / 目录结构
python3 scripts/codebase_analyzer.py /path/to/repo

# 机器可读 JSON(便于 Agent 二次加工)
python3 scripts/codebase_analyzer.py /path/to/repo --json

# 控制目录树深度(默认 2)
python3 scripts/codebase_analyzer.py /path/to/repo --max-depth 3

脚本约束(采编自源技能,照搬其行为):

  • 默认忽略 .git node_modules .next dist build coverage venv .venv __pycache__
  • 按扩展名识别语言(.py→Python,.ts/.tsx→TypeScript,.go→Go,.rs→Rust,.java→Java 等)。
  • 关键配置清单含 monorepo 信号(pnpm-workspace.yaml / turbo.json / nx.json / lerna.json)。
  • JSON 含 file_count、languages、key_config_files、top_extensions、largest_files、directory_structure。

示例

把脚本输出填入上手文档模板(关键骨架):

# [项目名]
> 一句话:做什么、给谁用、当前状态。

## 快速开始
### 前置依赖(表格:工具 | 版本 | 安装方式)
### 5 分钟 setup
git clone ...; cd repo; <安装>; docker compose up -d; cp .env.example .env; <迁移/seed>; <dev>; <test>
### 验证可用
- [ ] 应用在 localhost 加载
- [ ] 健康检查返回 ok
- [ ] 测试通过

## 架构(系统总览图 + 技术栈表:层 | 技术 | 为什么选它)
## 关键文件(路径 | 用途)
## 常见开发任务(新增 API / 跑 DB 迁移 / 加后台任务)
## 调试指南(常见错误 / 实用 SQL / 日志位置)
## 贡献规范(分支策略 / PR 要求 / 提交约定 feat|fix|docs)
## 分受众说明(初级 / 资深 / 外包)

导出到 Notion(用官方 SDK,把 Markdown 转 blocks):

const { Client } = require('@notionhq/client')
const notion = new Client({ auth: process.env.NOTION_TOKEN })
const blocks = markdownToNotionBlocks(onboardingMarkdown) // 用 notion-to-md
await notion.pages.create({
  parent: { page_id: ONBOARDING_PARENT_PAGE_ID },
  properties: { title: { title: [{ text: { content: 'Engineer Onboarding — MyApp' } }] } },
  children: blocks,
})

注意事项

  • setup 尽量控制在 10 分钟内,每个安装阶段后给可执行的验证检查。
  • 文档要记录关键架构决策的「为什么」,并在改行为的同一个 PR 里更新文档,防止漂移。
  • 不在干净环境验证就写下的命令几乎一定有坑;遗漏排错/验证步骤是最常见缺陷。
  • 把上手文档当成持续运营资产,而非一次性交付物。
  • 别把架构深挖混进面向外包的文档;受众分层是质量关键。

互见

  • code-reviewer:上手后做代码质量与正确性评审。
  • dependency-auditor:核查依赖与许可证风险。

本条采编自 alirezarezvani/claude-skills(MIT)。

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.