mcpField
O
onboard

onboard

github.com/parcadei开发3.9k488 次安装40 周前更新
代码仓库

关于 onboard

供开发者熟悉现有代码库的入门 Skill。它会探索项目并创建连续性记录和交接上下文,便于后续工作。

主要功能

  1. 01探索现有代码库
  2. 02创建连续性记录
  3. 03设置交接上下文
  4. 04初始化项目目录

适用场景

  1. 01熟悉不熟悉的项目
  2. 02修改现有代码前准备项目上下文

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/parcadei/continuous-claude-v3 --skill onboard

安装后在 Claude Code 中输入/onboard确认已加载。

详细介绍

入门引导 - 项目探索与台账创建

分析现有代码库,并创建初始连续性台账。

适用场景

  • 首次在现有项目中开展工作
  • 用户说“入门引导”“分析这个项目”或“熟悉代码库”

使用方法

启动入门引导 Agent:

使用 Task 工具,并设置 subagent_type: "onboard",然后输入以下提示词:

Onboard me to this project at $CLAUDE_PROJECT_DIR.

1. Create required directories if they don't exist:
   mkdir -p thoughts/shared/handoffs/<project-name> .claude

2. Explore the codebase using available tools:
   - Try: tldr tree . && tldr structure .
   - Fallback: find . -type f -name "*.py" -o -name "*.ts" -o -name "*.js" | head -50

3. Detect tech stack (look for package.json, requirements.txt, Cargo.toml, go.mod, etc.)

4. Ask the user about their goals using AskUserQuestion

5. Create a YAML handoff at thoughts/shared/handoffs/<project-name>/onboard-<date>.yaml:
   ---
   date: <ISO date>
   type: onboard
   status: active
   ---
   goal: <user's stated goal>
   now: Start working on <first priority>
   tech_stack: [list of detected technologies]
   key_files:
     - path: <important file>
       purpose: <what it does>
   architecture: <brief description>
   next:
     - <suggested first action>

为什么使用 Agent?

入门引导流程:

  • 需要多个探索步骤
  • 不应将代码库内容倾倒到主上下文中
  • 会返回简洁的摘要并创建交接记录

输出

  • 创建目录:thoughts/shared/handoffs/<project>/、.claude/
  • 创建 YAML 交接记录(会在会话开始时自动加载)
  • 为用户提供清晰的起步上下文
  • 全面了解项目后,即可开始工作

备注

  • 此技能适用于棕地项目(已有代码)
  • 绿地项目请改用 /create_plan
  • 可随时使用 /create_handoff 更新交接记录

评论

支持 Markdown