setup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOrchestKit Setup Wizard
OrchestKit 设置向导
Personalized onboarding that scans your codebase, detects your stack, recommends skills and MCPs, and generates an actionable improvement plan.
个性化入门流程,可扫描代码库、检测技术栈、推荐技能与MCP,并生成可执行的改进计划。
When to Use
使用场景
- First time after installing OrchestKit ()
/plugin install ork - Joining a new project and want OrchestKit tuned for it
- Periodically with to track improvement
--rescan - Enterprise users who need safe, user-scoped install confirmation
- 安装OrchestKit后首次使用()
/plugin install ork - 加入新项目时,需要为其适配OrchestKit
- 定期使用参数跟踪改进情况
--rescan - 企业用户需要安全的、用户范围的安装确认
Quick Start
快速开始
bash
/ork:setup # Full 8-phase wizard
/ork:setup --rescan # Re-scan after changes (skip safety phase)
/ork:setup --score-only # Just show readiness score
/ork:setup --plan-only # Just show improvement plan
/ork:setup --channel # Just show release channel
/ork:setup --configure # Jump directly to Phase 3.5: project configuration wizardbash
/ork:setup # 完整的8阶段向导
/ork:setup --rescan # 变更后重新扫描(跳过安全阶段)
/ork:setup --score-only # 仅显示就绪度评分
/ork:setup --plan-only # 仅显示改进计划
/ork:setup --channel # 仅显示发布渠道
/ork:setup --configure # 直接跳转到3.5阶段:项目配置向导Argument Resolution
参数解析
python
FLAG = "$ARGUMENTS[0]" # First token: --rescan, --score-only, --plan-only, --channelpython
FLAG = "$ARGUMENTS[0]" # 第一个参数:--rescan, --score-only, --plan-only, --channelIf no arguments, run full 8-phase wizard.
若无参数,运行完整的8阶段向导。
$ARGUMENTS is the full string (CC 2.1.59 indexed access)
$ARGUMENTS为完整参数字符串(CC 2.1.59 索引访问)
undefinedundefinedThe Nine Phases
十个阶段
| Phase | What | Tools Used | Output |
|---|---|---|---|
| 1. Scan | Detect languages, frameworks, infra, existing config | Glob, Grep, Read | Raw scan data |
| 2. Stack | Classify detected stack, confidence levels | — | Stack profile |
| 3. Safety | Check existing config, confirm scope (user/project) | Read, AskUserQuestion | Install confirmation |
| 3.5. Configure | Interactive project configuration wizard → writes env block to per-project settings | Read, Write, AskUserQuestion | Configured settings file |
| 4. Skills | Match stack to skills, suggest custom skills | Grep, Glob | Skill recommendations |
| 5. MCPs | Recommend MCPs based on stack and gaps | Read, Bash | MCP recommendations |
| 6. Score | Compute readiness score (0-10, 6 dimensions) | All above data | Readiness score |
| 7. Plan | Prioritized improvements with runnable commands | — | Action plan |
| 8. Keys | Install recommended keyboard shortcuts | Read, Bash, AskUserQuestion | Keybindings |
| 阶段 | 内容 | 使用工具 | 输出结果 |
|---|---|---|---|
| 1. 扫描 | 检测语言、框架、基础设施及现有配置 | Glob, Grep, Read | 原始扫描数据 |
| 2. 技术栈 | 对检测到的技术栈进行分类,给出置信度 | — | 技术栈配置文件 |
| 3. 安全检查 | 检查现有配置,确认作用范围(用户/项目) | Read, AskUserQuestion | 安装确认信息 |
| 3.5. 配置 | 交互式项目配置向导 → 将环境块写入项目专属设置 | Read, Write, AskUserQuestion | 已配置的设置文件 |
| 4. 技能推荐 | 匹配技术栈与技能,建议自定义技能 | Grep, Glob | 技能推荐列表 |
| 5. MCP推荐 | 根据技术栈与缺口推荐MCP | Read, Bash | MCP推荐列表 |
| 6. 就绪度评分 | 计算就绪度评分(0-10分,6个维度) | 以上所有数据 | 就绪度评分 |
| 7. 改进计划 | 生成带可执行命令的优先级改进方案 | — | 行动计划 |
| 8. 快捷键配置 | 安装推荐的键盘快捷键 | Read, Bash, AskUserQuestion | 快捷键绑定 |
| 9. 遥测与Webhook | 配置遥测事件与Webhook集成 | Read, AskUserQuestion, Bash | 遥测配置 |
| 10. 可选集成 | 配置Agentation UI、多仓库工作区等高级功能 | Read, Bash | 集成配置 |
Phase 1: Scan
阶段1:扫描
Load details: for full scan commands (20 parallel Glob probes + dependency file reads + pattern detection counts).
Read("${CLAUDE_SKILL_DIR}/references/scan-phase.md")Scans for package manifests (package.json, pyproject.toml, go.mod, Cargo.toml, etc.), infrastructure (Docker, GitHub Actions, Terraform, K8s), and existing CC configuration. Pattern detection counts API routes, React components, models, and tests for custom skill suggestions.
加载详细说明: 获取完整扫描命令(20个并行Glob探测 + 依赖文件读取 + 模式检测统计)。
Read("${CLAUDE_SKILL_DIR}/references/scan-phase.md")扫描包清单(package.json、pyproject.toml、go.mod、Cargo.toml等)、基础设施(Docker、GitHub Actions、Terraform、K8s)及现有CC配置。通过模式检测统计API路由、React组件、模型和测试数量,为自定义技能提供建议。
Phase 2: Stack Detection
阶段2:技术栈检测
Classify scan results into a stack profile and present to user (languages, frameworks, database, infra, testing, existing CC config).
Load for the full stack-to-skill mapping table, MCP recommendation matrix, and custom skill suggestion patterns.
Read("${CLAUDE_SKILL_DIR}/references/stack-skill-mapping.md")将扫描结果分类为技术栈配置文件并展示给用户(语言、框架、数据库、基础设施、测试、现有CC配置)。
加载 获取完整的技术栈-技能映射表、MCP推荐矩阵及自定义技能建议模式。
Read("${CLAUDE_SKILL_DIR}/references/stack-skill-mapping.md")Phase 2b: Channel Detection
阶段2b:渠道检测
Detect release channel from version string. Classification: = stable, = beta, = alpha. Display alongside stack profile. Use flag to show only channel detection.
manifests/ork.jsonX.Y.ZX.Y.Z-beta.*X.Y.Z-alpha.*--channel从版本字符串中检测发布渠道。分类规则: = 稳定版, = 测试版, = 预览版。与技术栈配置文件一同展示。使用参数可仅显示渠道检测结果。
manifests/ork.jsonX.Y.ZX.Y.Z-beta.*X.Y.Z-alpha.*--channelPhase 3: Safety Check
阶段3:安全检查
Load details: for the full AskUserQuestion prompt and conflict detection logic.
Read("${CLAUDE_SKILL_DIR}/references/safety-check.md")Offers three install scopes: User-only (recommended, invisible to teammates), Project-wide (committed to repo), or Already installed (skip to configure). Checks for existing OrchestKit installs and conflicting plugins.
Console auth (CC 2.1.79+): Users authenticating via Anthropic Console (API billing) can runinstead of the default OAuth flow. Useful for teams on usage-based API billing rather than Pro/Team subscriptions.claude auth login --console
加载详细说明: 获取完整的AskUserQuestion提示语与冲突检测逻辑。
Read("${CLAUDE_SKILL_DIR}/references/safety-check.md")提供三种安装范围:仅用户(推荐,对团队成员不可见)、项目全局(提交到仓库)、已安装(直接跳转到配置阶段)。检查现有OrchestKit安装及冲突插件。
控制台认证(CC 2.1.79+): 通过Anthropic Console(API计费)认证的用户可运行替代默认OAuth流程。适用于采用基于使用量计费而非Pro/Team订阅的团队。claude auth login --console
Phase 3.5: Project Configuration Wizard
阶段3.5:项目配置向导
Load details: for the full 6-step interactive configuration flow (branch strategy, commit scope, localhost browser, perf telemetry, log verbosity, webhook telemetry) and env var reference.
Read("${CLAUDE_SKILL_DIR}/references/configure-wizard.md")Also reachable directly via— skips phases 1-3./ork:setup --configure
加载详细说明: 获取完整的6步交互式配置流程(分支策略、提交范围、本地浏览器、性能遥测、日志 verbosity、Webhook遥测)及环境变量参考。
Read("${CLAUDE_SKILL_DIR}/references/configure-wizard.md")也可通过直接进入 — 跳过第1-3阶段。/ork:setup --configure
Phase 4: Skill Recommendations
阶段4:技能推荐
Present skill categories using with 4 focus options (Full-stack, Backend, Frontend, DevOps) with . Load for mapping tables and custom skill suggestions.
AskUserQuestionmultiSelect: trueRead("${CLAUDE_SKILL_DIR}/references/stack-skill-mapping.md")使用AskUserQuestion展示技能分类,提供4个聚焦选项(全栈、后端、前端、DevOps),支持。加载 获取映射表及自定义技能建议。
multiSelect: trueRead("${CLAUDE_SKILL_DIR}/references/stack-skill-mapping.md")Phase 5: MCP Recommendations
阶段5:MCP推荐
Check installed vs recommended MCPs by reading and . Load for the MCP recommendation matrix. Present as toggles with install commands.
.mcp.json~/.claude/settings.jsonRead("${CLAUDE_SKILL_DIR}/references/stack-skill-mapping.md")通过读取和检查已安装与推荐的MCP。加载 获取MCP推荐矩阵。以开关形式展示并提供安装命令。
.mcp.json~/.claude/settings.jsonRead("${CLAUDE_SKILL_DIR}/references/stack-skill-mapping.md")Phase 6: Readiness Score
阶段6:就绪度评分
Compute a composite score (0-10) from 6 dimensions. Load for dimension weights, score presentation template, memory integration, and improvement plan template.
Read("${CLAUDE_SKILL_DIR}/references/readiness-scoring.md")从6个维度计算综合评分(0-10分)。加载 获取维度权重、评分展示模板、内存集成及改进计划模板。
Read("${CLAUDE_SKILL_DIR}/references/readiness-scoring.md")Phase 7: Improvement Plan
阶段7:改进计划
Generate prioritized, runnable recommendations in P0/P1/P2 tiers. See for the template and memory persistence pattern.
readiness-scoring.md生成按优先级划分的可执行建议,分为P0/P1/P2等级。详见中的模板与内存持久化模式。
readiness-scoring.mdPhase 7b: CLAUDE.md Health Check
阶段7b:CLAUDE.md健康检查
After the improvement plan, check if the user's CLAUDE.md could benefit from CC 2.1.59+ modular structure.
Load details: for analysis steps, thresholds, @import syntax, and path-scoped rules.
Read("${CLAUDE_SKILL_DIR}/references/claude-md-health.md").claude/rules/python
undefined在改进计划之后,检查用户的CLAUDE.md是否可受益于CC 2.1.59+的模块化结构。
加载详细说明: 获取分析步骤、阈值、@import语法及路径作用域规则。
Read("${CLAUDE_SKILL_DIR}/references/claude-md-health.md").claude/rules/python
undefinedQuick check
快速检查
Bash(command="wc -l CLAUDE.md 2>/dev/null | awk '{print $1}'")
Glob(pattern=".claude/rules/*.md")
If CLAUDE.md > 200 lines and no `.claude/rules/` exist, recommend splitting. Show the output template from the reference doc.Bash(command="wc -l CLAUDE.md 2>/dev/null | awk '{print $1}'")
Glob(pattern=".claude/rules/*.md")
若CLAUDE.md超过200行且不存在`.claude/rules/`目录,建议拆分文件。展示参考文档中的输出模板。Phase 8: Keybindings
阶段8:快捷键配置
Load details: for the full keybinding prompt, default shortcuts, and merge logic.
Read("${CLAUDE_SKILL_DIR}/references/keybindings.md")Offers 5 recommended shortcuts (commit, verify, implement, explore, review-pr). Merges with existing without overwriting user-defined bindings.
~/.claude/keybindings.json加载详细说明: 获取完整的快捷键提示语、默认快捷键及合并逻辑。
Read("${CLAUDE_SKILL_DIR}/references/keybindings.md")提供5个推荐快捷键(提交、验证、实现、探索、PR评审)。与现有合并,不会覆盖用户自定义绑定。
~/.claude/keybindings.jsonPost-Setup
设置后提示
Tip (CC 2.1.69+): After setup completes, runto activate all plugin changes without restarting your session./reload-plugins
提示(CC 2.1.69+): 设置完成后,运行可激活所有插件变更,无需重启会话。/reload-plugins
Phase 9: Telemetry & Webhooks
阶段9:遥测与Webhook
Previously in. Now part of setup for single entry point./ork:configure
Load details: for the full configuration flow.
Read("${CLAUDE_SKILL_DIR}/references/telemetry-setup.md")Ask user preference with AskUserQuestion:
| Mode | Events | Auth | Overhead |
|---|---|---|---|
| Full streaming | All 18 CC events via HTTP hooks | Bearer token | Near-zero |
| Summary only | SessionEnd + worktree events | HMAC auth | None |
| Skip | No telemetry | — | None |
If streaming selected:
- Ask for webhook URL
- Run
npm run generate:http-hooks -- <url> --write - Save to
.claude/orchestration/config.json - Remind about env var
ORCHESTKIT_HOOK_TOKEN
原属于。现在整合到设置流程中,提供统一入口。/ork:configure
加载详细说明: 获取完整配置流程。
Read("${CLAUDE_SKILL_DIR}/references/telemetry-setup.md")通过AskUserQuestion询问用户偏好:
| 模式 | 事件 | 认证 | 开销 |
|---|---|---|---|
| 全量流 | 所有18种CC事件通过HTTP钩子传输 | Bearer令牌 | 近乎为零 |
| 仅摘要 | SessionEnd + 工作区事件 | HMAC认证 | 无 |
| 跳过 | 无遥测 | — | 无 |
若选择全量流:
- 询问Webhook URL
- 运行
npm run generate:http-hooks -- <url> --write - 保存到
.claude/orchestration/config.json - 提醒设置环境变量
ORCHESTKIT_HOOK_TOKEN
Phase 10: Optional Integrations
阶段10:可选集成
Load details: for setup steps.
Read("${CLAUDE_SKILL_DIR}/references/integrations.md")Covers Agentation UI annotation tool, CC version-specific settings (CC 2.1.7 MCP deferral, CC 2.1.20 task deletion, CC 2.1.23 spinner verbs, CC 2.1.79 turn duration display), and monorepo worktree optimization.
加载详细说明: 获取设置步骤。
Read("${CLAUDE_SKILL_DIR}/references/integrations.md")涵盖Agentation UI标注工具、CC版本专属设置(CC 2.1.7 MCP延迟、CC 2.1.20任务删除、CC 2.1.23 spinner verbs、CC 2.1.79对话时长显示)及多仓库工作区优化。
Monorepo Sparse Paths (CC 2.1.76+)
多仓库稀疏路径(CC 2.1.76+)
If Phase 1 scan detected a monorepo (pnpm-workspace.yaml, nx.json, lerna.json, turbo.json, or package.json workspaces), suggest configuring in :
worktree.sparsePaths.claude/settings.jsonjson
{
"worktree": {
"sparsePaths": ["src/", "packages/core/", "tests/", "scripts/"]
}
}This makes and agent check out only the listed directories via git sparse-checkout — significantly faster in large monorepos.
--worktreeisolation: worktree若阶段1扫描检测到多仓库(pnpm-workspace.yaml、nx.json、lerna.json、turbo.json或package.json workspaces),建议在中配置:
.claude/settings.jsonworktree.sparsePathsjson
{
"worktree": {
"sparsePaths": ["src/", "packages/core/", "tests/", "scripts/"]
}
}此配置可让和agent的通过git sparse-checkout仅检出指定目录 — 在大型多仓库中可显著提升速度。
--worktreeisolation: worktreeMulti-Directory Plugin Seeding (CC 2.1.79+)
多目录插件种子(CC 2.1.79+)
CLAUDE_CODE_PLUGIN_SEED_DIR:;bash
export CLAUDE_CODE_PLUGIN_SEED_DIR="/shared/team/plugins:/shared/org/plugins"This is useful for teams with multiple plugin sources — e.g., a shared org-wide plugin directory alongside a team-specific one. Claude Code scans all listed directories for plugin definitions at startup.
CLAUDE_CODE_PLUGIN_SEED_DIR:;bash
export CLAUDE_CODE_PLUGIN_SEED_DIR="/shared/team/plugins:/shared/org/plugins"这对拥有多个插件源的团队非常有用 — 例如,将组织级共享插件目录与团队专属插件目录结合使用。Claude Code启动时会扫描所有列出的目录以查找插件定义。
CLI Flags
CLI参数
| Flag | Behavior |
|---|---|
| (none) | Full wizard (phases 1-10) |
| Re-run scan + score, skip safety phase |
| Jump directly to Phase 3.5: project configuration wizard |
| Show current readiness score (Phase 6 only) |
| Show improvement plan (Phase 7 only) |
| Show detected release channel only |
| Jump to Phase 9: telemetry/webhook setup |
| Apply a preset (complete/standard/lite/hooks-only/monorepo) |
| 参数 | 行为 |
|---|---|
| (无) | 完整向导(第1-10阶段) |
| 重新运行扫描+评分,跳过安全阶段 |
| 直接跳转到3.5阶段:项目配置向导 |
| 仅显示当前就绪度评分(仅第6阶段) |
| 仅显示改进计划(仅第7阶段) |
| 仅显示检测到的发布渠道 |
| 跳转到第9阶段:遥测/Webhook设置 |
| 应用预设配置(complete/standard/lite/hooks-only/monorepo) |
Presets (via --preset)
预设配置(通过--preset)
Apply a preset to quickly configure OrchestKit without the full wizard:
| Preset | Skills | Agents | Hooks | Best For |
|---|---|---|---|---|
| complete | 91 | 31 | 96 | Full power — everything enabled |
| standard | 91 | 0 | 96 | Skills + hooks, no agents |
| lite | 10 | 0 | 96 | Essential workflow skills only |
| hooks-only | 0 | 0 | 96 | Just safety hooks |
| monorepo | 91 | 31 | 96 | Complete + monorepo workspace detection |
Load preset details:
Read("${CLAUDE_SKILL_DIR}/references/presets.md")应用预设可快速配置OrchestKit,无需完整向导:
| 预设 | 技能数量 | Agent数量 | Hooks数量 | 适用场景 |
|---|---|---|---|---|
| complete | 91 | 31 | 96 | 全功能 — 启用所有选项 |
| standard | 91 | 0 | 96 | 技能+Hooks,无Agent |
| lite | 10 | 0 | 96 | 仅核心工作流技能 |
| hooks-only | 0 | 0 | 96 | 仅安全Hooks |
| monorepo | 91 | 31 | 96 | 完整配置+多仓库工作区检测 |
加载预设详情:
Read("${CLAUDE_SKILL_DIR}/references/presets.md")References
参考文档
Load on demand with :
Read("${CLAUDE_SKILL_DIR}/references/<file>")| File | Content |
|---|---|
| Phase 1: 20 parallel Glob probes + pattern detection |
| Phase 3: Install scope and conflict detection |
| Phase 3.5: 6-step interactive project config |
| Phase 7b: CLAUDE.md modular structure analysis |
| Phase 8: Keyboard shortcut recommendations |
| Phase 9: Webhook/telemetry configuration |
| Phase 10: Agentation + CC version settings |
| Preset definitions and skill/agent matrices |
通过按需加载:
Read("${CLAUDE_SKILL_DIR}/references/<file>")| 文件 | 内容 |
|---|---|
| 阶段1:20个并行Glob探测+模式检测 |
| 阶段3:安装范围与冲突检测 |
| 阶段3.5:6步交互式项目配置 |
| 阶段7b:CLAUDE.md模块化结构分析 |
| 阶段8:键盘快捷键推荐 |
| 阶段9:Webhook/遥测配置 |
| 阶段10:Agentation+CC版本设置 |
| 预设定义与技能/Agent矩阵 |
Related Skills
相关技能
- — Health diagnostics (wizard uses its checks)
ork:doctor - — Internal configuration (called by wizard phases 3.5, 9, 10)
ork:configure - — Knowledge persistence (wizard seeds initial patterns)
ork:remember - — Deep codebase analysis (wizard links for follow-up)
ork:explore - — Skill directory (wizard surfaces relevant subset)
ork:help
- — 健康诊断(向导会使用其检查逻辑)
ork:doctor - — 内部配置(被向导的3.5、9、10阶段调用)
ork:configure - — 知识持久化(向导会初始化模式)
ork:remember - — 深度代码库分析(向导提供后续链接)
ork:explore - — 技能目录(向导会展示相关子集)
ork:help