Analyzes unfamiliar codebases and generates structured onboarding guides with architecture maps, entry points, conventions, and a starter CLAUDE.md. Activates when joining a new project or setting up Claude Code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/everything-claude-code:codebase-onboardingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
系统性地分析陌生代码库并生成结构化的入职指南。专为加入新项目或首次在现有仓库中设置 Claude Code 的开发者设计。
系统性地分析陌生代码库并生成结构化的入职指南。专为加入新项目或首次在现有仓库中设置 Claude Code 的开发者设计。
在不阅读每个文件的情况下收集关于项目的原始信号。并行运行这些检查:
1. 包清单检测
→ package.json, go.mod, Cargo.toml, pyproject.toml, pom.xml, build.gradle,
Gemfile, composer.json, mix.exs, pubspec.yaml
2. 框架指纹识别
→ next.config.*, nuxt.config.*, angular.json, vite.config.*,
django settings, flask app factory, fastapi main, rails config
3. 入口点识别
→ main.*, index.*, app.*, server.*, cmd/, src/main/
4. 目录结构快照
→ 目录树的前 2 层,忽略 node_modules, vendor,
.git, dist, build, __pycache__, .next
5. 配置和工具检测
→ .eslintrc*, .prettierrc*, tsconfig.json, Makefile, Dockerfile,
docker-compose*, .github/workflows/, .env.example, CI 配置
6. 测试结构检测
→ tests/, test/, __tests__/, *_test.go, *.spec.ts, *.test.js,
pytest.ini, jest.config.*, vitest.config.*
从侦察数据中识别:
技术栈
架构模式
关键目录 将顶层目录映射到其用途:
src/components/ → React UI 组件
src/api/ → API 路由处理
src/lib/ → 共享工具
src/db/ → 数据库模型和迁移
tests/ → 测试套件
scripts/ → 构建和部署脚本
数据流 追踪一个请求从入口到响应的完整路径:
识别代码库已经遵循的模式:
命名约定
*.test.ts、*.spec.ts、*_test.go代码模式
Git 约定
git clone --depth 1),跳过此节并注明"Git 历史不可用或太浅无法检测约定"生成两个输出:
# 入职指南:[项目名称]
## 概述
[2-3 句话:这个项目做什么,为谁服务]
## 技术栈
<!-- Next.js 项目示例 — 替换为检测到的技术栈 -->
| 层级 | 技术 | 版本 |
|------|------|------|
| 语言 | TypeScript | 5.x |
| 框架 | Next.js | 14.x |
| 数据库 | PostgreSQL | 16 |
| ORM | Prisma | 5.x |
| 测试 | Jest + Playwright | - |
## 架构
[组件如何连接的图表或描述]
## 关键入口点
<!-- Next.js 项目示例 — 替换为检测到的路径 -->
- **API 路由**:`src/app/api/` — Next.js 路由处理函数
- **UI 页面**:`src/app/(dashboard)/` — 需要认证的页面
- **数据库**:`prisma/schema.prisma` — 数据模型的事实来源
- **配置**:`next.config.ts` — 构建和运行时配置
## 目录地图
[顶层目录 → 用途映射]
## 请求生命周期
[追踪一个 API 请求从入口到响应的完整流程]
## 约定
- [文件命名模式]
- [错误处理方式]
- [测试模式]
- [Git 工作流]
## 常见任务
<!-- Node.js 项目示例 — 替换为检测到的命令 -->
- **运行开发服务器**:`npm run dev`
- **运行测试**:`npm test`
- **运行代码检查**:`npm run lint`
- **数据库迁移**:`npx prisma migrate dev`
- **生产构建**:`npm run build`
## 去哪里看
<!-- Next.js 项目示例 — 替换为检测到的路径 -->
| 我想要... | 去看... |
|--------------|-----------|
| 添加 API 端点 | `src/app/api/` |
| 添加 UI 页面 | `src/app/(dashboard)/` |
| 添加数据库表 | `prisma/schema.prisma` |
| 添加测试 | `tests/` 匹配源码路径 |
| 修改构建配置 | `next.config.ts` |
基于检测到的约定生成或更新项目特定的 CLAUDE.md。如果 CLAUDE.md 已存在,先读取它并增强 — 保留现有的项目特定指令,并明确标注添加或更改的内容。
# 项目指南
## 技术栈
[检测到的技术栈摘要]
## 代码风格
- [检测到的命名约定]
- [需要遵循的模式]
## 测试
- 运行测试:`[检测到的测试命令]`
- 测试模式:[检测到的测试文件约定]
- 覆盖率:[如果已配置,覆盖率命令]
## 构建与运行
- 开发:`[检测到的开发命令]`
- 构建:`[检测到的构建命令]`
- 代码检查:`[检测到的 lint 命令]`
## 项目结构
[关键目录 → 用途映射]
## 约定
- [可检测到的提交风格]
- [可检测到的 PR 工作流]
- [错误处理模式]
src/ 不需要解释用户:"帮我入职这个代码库"
操作:运行完整的 4 阶段工作流 → 生成入职指南 + 入门 CLAUDE.md
输出:入职指南直接打印到对话中,并将 CLAUDE.md 写入项目根目录
用户:"为这个项目生成一个 CLAUDE.md"
操作:运行阶段 1-3,跳过入职指南,仅生成 CLAUDE.md
输出:带有检测到的约定的项目特定 CLAUDE.md
用户:"用当前项目约定更新 CLAUDE.md"
操作:读取现有 CLAUDE.md,运行阶段 1-3,合并新发现
输出:更新的 CLAUDE.md,新增内容已明确标记
npx claudepluginhub aaione/everything-claude-code-zhAnalyzes unfamiliar codebases to generate structured onboarding guides with architecture maps, key entry points, conventions, and starter CLAUDE.md.
Analyzes an unfamiliar codebase and generates a structured onboarding guide with architecture map, key entry points, conventions, and a starter CLAUDE.md.
Generates a developer guide for unfamiliar codebases by scanning structure, mapping architecture, detecting conventions, analyzing key modules, and providing setup instructions.