/everything-claude-code:codebase-onboardingfrom everything-claude-code
Analyzes unfamiliar codebases to produce structured onboarding guides with architecture maps, entry points, conventions, and a starter CLAUDE.md. Designed for joining new projects or setting up Claude Code in a repository.
Ships in everything-claude-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
系统性地分析陌生代码库并生成结构化的入职指南。专为加入新项目或首次在现有仓库中设置 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,新增内容已明确标记
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
272 skills in this plugin
/accessibility使用 WCAG 2.2 AA 级标准设计、实施和审计包容性数字产品。使用此技能为 Web 和原生平台(iOS/Android)生成语义化 ARIA 和辅助功能属性。/agent-architecture-audit智能体和 LLM 应用的全栈诊断。审计 12 层智能体堆栈,检查包装器回归、内存污染、工具纪律失败、隐藏修复循环和渲染损坏。生成按严重程度排序的发现和代码优先修复。对于构建智能体应用、自主循环或任何 LLM 驱动功能的开发者至关重要。/agent-eval在自定义任务上对编码智能体(Claude Code、Aider、Codex 等)进行头对头比较,包含通过率、成本、时间和一致性指标/agent-harness-construction设计和优化 AI 智能体操作空间、工具定义和观察格式,以获得更高的完成率。Other plugins' skills for the same job