/devpace:pace-init [项目名称] [full] [--from <路径>...] [--import-insights <路径>] [--verify [--fix]] [--dry-run] [--reset [--keep-insights]] [--export-template] [--from-template <路径>] [--interactive]from devpace
Initializes project development tracking with lifecycle-aware setup, document-based feature tree generation, health checks, and reset capabilities. Supports full workflow setup with vision/strategy/OKR guidance.
Ships in devpace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
从模板初始化当前项目的 .devpace/ 目录。默认执行最小初始化(自动检测项目生命周期阶段,按阶段适配行为),full 执行分阶段完整流程(含愿景、战略上下文、OBJ 产品维度引导),--from 从文档自动生成功能树(支持 Epic 解析)。支持 --verify(健康检查)、--reset(重置)、--dry-run(预览)等子命令。
$ARGUMENTS:可选。格式:
[项目名称] — 最小初始化(默认,生命周期感知)[项目名称] full — 分阶段完整流程[项目名称] --from <路径>... — 从文档生成功能树(支持目录和多文件)--verify [--fix] — 健康检查(可选自动修复)--dry-run — 预览初始化结果,不写入文件--reset [--keep-insights] — 重置 .devpace/--export-template — 导出当前配置为可复用模板--from-template <路径> — 从模板初始化--import-insights <路径> — 导入跨项目经验--interactive — 强制对话模式(覆盖自动检测行为)子命令路由(优先级高于初始化流程):
--verify → 健康检查流程--reset → 重置流程--export-template / --from-template → 模板管理流程标志处理:
--dry-run → 设置 dry-run 标志,继续正常流程但不写入任何文件版本与状态检测:检查 .devpace/state.md 存在性和版本标记,决定全新初始化、增量迁移或提示重置(规则见 skills/pace-init/init-procedures-migration.md)。
根据参数读取对应规程文件执行(仅读取匹配路径的规程文件):
| 参数 | 执行规程 |
|---|---|
(默认)[项目名] | skills/pace-init/init-procedures-core.md |
full | skills/pace-init/init-procedures-core.md + skills/pace-init/init-procedures-full.md |
--from <路径>... | skills/pace-init/init-procedures-core.md + skills/pace-init/init-procedures-from.md |
--import-insights <路径> | skills/pace-init/init-procedures-from.md(可与初始化组合或独立使用) |
--verify [--fix] | skills/pace-init/init-procedures-verify.md |
--dry-run | skills/pace-init/init-procedures-dryrun.md + skills/pace-init/init-procedures-core.md(仅 §1 检测逻辑,不执行 §2 文件生成) |
--reset [--keep-insights] | skills/pace-init/init-procedures-reset.md |
--export-template / --from-template | skills/pace-init/init-procedures-template.md |
| (迁移触发时) | skills/pace-init/init-procedures-migration.md |
| (检测到 monorepo 信号时) | skills/pace-init/init-procedures-monorepo.md |
初始化完成的 .devpace/ 目录 + 确认摘要 + 下一步引导。--dry-run 时仅输出预览。--verify 时输出健康报告。--reset 时输出清理确认。
--full 时)确认摘要后追加情境化引导(§15 教学标记 init_complete 去重):
| 项目状态 | 引导内容 |
|---|---|
| 有源代码(src/ 或主语言文件 >10 个) | "项目已就绪。建议先 /pace-biz infer 从代码推断已有功能和技术债务,再开始规划。" |
| 有需求文档(--from 初始化,功能树已生成) | "项目已就绪。功能树已生成,说'帮我做 [功能名]'开始第一个功能,或 /pace-plan 规划迭代。" |
| 空项目(无源代码、无需求文档) | "项目已就绪。说'我想做...'开始头脑风暴需求(/pace-biz discover),或直接说'帮我做 [功能名]'快速开始。" |
| 通用(其他情况) | "项目已就绪。说'帮我做 [功能名]'开始第一个功能,/pace-biz 规划业务需求,或 /pace-plan 规划迭代。" |
检测规则:使用 skills/pace-init/init-procedures-core.md 的信号检测结果(源文件数、git 信号)判定项目状态,不额外扫描。
init-procedures-checks.md (opens in a new tab)init-procedures-core.md (opens in a new tab)init-procedures-dryrun.md (opens in a new tab)init-procedures-from.md (opens in a new tab)init-procedures-full.md (opens in a new tab)init-procedures-migration.md (opens in a new tab)init-procedures-monorepo.md (opens in a new tab)init-procedures-reset.md (opens in a new tab)init-procedures-template.md (opens in a new tab)init-procedures-verify.md (opens in a new tab)scripts/validate-schema.mjs (opens in a new tab)templates/checks.md (opens in a new tab)templates/claude-md-devpace.md (opens in a new tab)templates/context.md (opens in a new tab)templates/cr.md (opens in a new tab)templates/dashboard.md (opens in a new tab)templates/insights.md (opens in a new tab)templates/integrations.md (opens in a new tab)templates/iteration.md (opens in a new tab)templates/project.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
sonnet{"tool_name":"Write|Edit"}${CLAUDE_PLUGIN_ROOT}/hooks/skill/pace-init-scope-check.mjs5s{"tool_name":"Bash"}${CLAUDE_PLUGIN_ROOT}/hooks/skill/pace-init-reset-guard.mjs5s20 skills in this plugin
/pace-biz/pace-biz — 业务规划域统一入口Use when user says "业务机会/OPP", "专题/Epic", "分解需求/decompose", "精炼/refine", "战略对齐/align", "业务全景/view", "需求发现/brainstorm/discover", "导入/import", "技术债务/infer", "pace-biz", or wants to plan requirements. NOT for /pace-dev, -change, -plan, -init./pace-change/pace-change — 需求变更管理Use when user says "不做了", "搁置", "停掉", "加一个", "加需求", "追加", "改需求", "需求变了", "范围变了", "优先级调", "延后", "提前", "砍掉", "先做这个", "排到前面", "恢复", "捡回来", "pace-change", or wants to add, pause, resume, reprioritize, modify, undo, batch change, or query change history. NOT for code implementation (/pace-dev) or project init (/pace-init).
/pace-dev/pace-dev — 推进变更请求Use when user says "开始做", "帮我改", "实现", "修复", "继续推进", "编码", "写代码", "开发", "重构", "做个", "coding", "implement", "fix", "refactor", "build", /pace-dev, or explicitly requests to start/continue/resume coding work. "帮我改" only when target is code/UI/config. NOT for requirement changes (/pace-change), code review (/pace-review), tests (/pace-test), or production issues (/pace-feedback).
/pace-feedback/pace-feedback — 反馈收集与事件处理Use when user reports issues, shares feedback, or receives production alerts — "用户反馈", "线上问题", "生产问题", "告警", "改进建议", "新需求", "体验问题", "功能请求", "线上bug", "运维", "事件", "incident", "故障", "P0", "P1", "严重故障", "postmortem", "事后复盘". NOT for code implementation or development (use /pace-dev). NOT for requirement changes (use /pace-change)./pace-guard/pace-guard — 风险预判与管理Use when user wants to assess risks before development, check current risk status, analyze risk trends, or says "风险/预检/预分析/guard/risk/隐患/安全检查". Also auto-invoked during advance mode intent checkpoint for L/XL CRs. NOT for /pace-dev (implementation), NOT for /pace-review (quality gate), NOT for /pace-test (testing)./pace-help/pace-help — 使用帮助Use when user says "帮助", "help", "怎么用", "使用说明", "用法", "有哪些命令", "能做什么", "命令列表", "怎么入门", "quickstart", "FAQ", "常见问题", "pace-help", or wants help with how to use devpace commands and features. NOT for concept deep dive or methodology (use /pace-theory). NOT for next-step recommendation (use /pace-next). NOT for code implementation (use /pace-dev).npx claudepluginhub arch-team/devpace --plugin devpaceOther plugins' skills for the same job