project-initialization
首次接入项目、项目上下文缺失或上下文失效时使用;探测项目事实并生成可复用的项目上下文。
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- project-initialization
- description
- 首次接入项目、项目上下文缺失或上下文失效时使用;探测项目事实并生成可复用的项目上下文。
- disable-model-invocation
- true
02 资源文件 1
- 参考文档README.md197 B
03 SKILL.md 正文
项目初始化
执行步骤
- 读取用户提供的项目根路径;没有明确路径时,使用当前工作区并记录这个判断。
- 检查项目根路径是否存在、是否为目录,以及是否能识别为项目仓库。
- 根据项目根目录名生成小写
kebab-case的project-id;重名时追加稳定的仓库或组织标识,并记录判断依据。 - 探测项目自身的
AGENTS.md、CLAUDE.md、CODING_STANDARDS.md、CONTRIBUTING.md、README.md、包管理文件、格式化/Lint 配置、测试配置、构建配置和文档目录。 - 识别技术栈和包管理器;测试、静态检查与构建入口按 验证入口探测线索 的顺序探测,并登记到上下文
verification.profiles;无法确认的字段保持为空并记录缺口,不猜测。 - 识别启动入口、健康检查、业务文档、架构文档、接口文档、词汇表和项目技能路径。
- 创建
local/projects/<project-id>/requirements-inbox/,写入固定README.md;需求包与附件只允许用户手动添加,Agent 不在此目录生成需求包,也不写入任务过程产物。 - 使用
core/templates/project-context.template.yaml生成local/projects/<project-id>/project-context.yaml,将需求箱路径登记到requirements.inbox_path,并将已发现的项目代码规范文件登记到可选字段coding_standards.files。未发现专门规范时保留空列表,并在初始化任务记录中说明。 - 检查所有登记路径是否存在;项目根路径使用绝对路径,其余登记路径可使用绝对路径或相对
project.root_path解析的路径。
执行时遵循 项目接入规则;该规则定义确认门禁、数据边界和完成不变量。无法确认的技术或业务信息保持为空,并在初始化任务记录中记录缺口和待确认项。
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
wayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
to-tickets
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).