init-project
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseProject Initialization Workflow
项目初始化工作流
Scaffold projects with agentic coding structure for AI-assisted development.
搭建具备Agentic编码结构的项目,用于AI辅助开发。
Execution Steps
执行步骤
1. Determine Target Directory
1. 确定目标目录
- Default: Current working directory
- If user specifies a path, use that instead
- If directory doesn't exist, offer to create it
- 默认:当前工作目录
- 若用户指定路径,则使用该路径
- 若目录不存在,询问是否创建
2. Gather Requirements
2. 收集需求
| Required | Question | Default |
|---|---|---|
| Project name? | Directory name | |
| Project type? | | |
| License preference? | MIT | |
| Brief description? | "A new project" |
Skip questions if context provides answers.
| 必填项 | 问题 | 默认值 |
|---|---|---|
| 项目名称? | 目录名称 | |
| 项目类型? | | |
| 许可证偏好? | MIT | |
| 项目简介? | "A new project" |
若上下文已提供答案,则跳过对应问题。
3. Check for Existing Files
3. 检查现有文件
Before creating, check what already exists:
| If Exists | Action |
|---|---|
| README.md | Skip — preserve existing |
| CHANGELOG.md | Skip — preserve existing |
| LICENSE | Skip — preserve existing |
| .gitignore | Merge — append missing entries |
| _NOTES/ | Skip — preserve existing |
| AGENTS/ | Create missing parts only |
This allows safe re-runs on existing projects to add agentic structure.
创建前,检查目录中已存在的文件:
| 若存在 | 操作 |
|---|---|
| README.md | 跳过 — 保留现有文件 |
| CHANGELOG.md | 跳过 — 保留现有文件 |
| LICENSE | 跳过 — 保留现有文件 |
| .gitignore | 合并 — 追加缺失的条目 |
| _NOTES/ | 跳过 — 保留现有目录 |
| AGENTS/ | 仅创建缺失部分 |
这允许在现有项目上安全重新运行该工具,以添加Agentic结构。
4. Confirm Before Creating
4. 创建前确认
Show user:
- Target path
- Files to be created (noting any skipped)
- Project type selected
Wait for confirmation.
向用户展示:
- 目标路径
- 待创建文件(标注已跳过的文件)
- 所选项目类型
等待用户确认。
5. Create Directory Structure
5. 创建目录结构
<project-root>/
├── README.md
├── CHANGELOG.md
├── LICENSE
├── .gitignore
├── _NOTES/
│ └── .gitkeep
└── AGENTS/
└── claude-opus-4.5/
├── CONTEXT.md
├── TODO.md
├── DECISIONS.md
└── SESSION-LOG/<project-root>/
├── README.md
├── CHANGELOG.md
├── LICENSE
├── .gitignore
├── _NOTES/
│ └── .gitkeep
└── AGENTS/
└── claude-opus-4.5/
├── CONTEXT.md
├── TODO.md
├── DECISIONS.md
└── SESSION-LOG/6. Populate Files
6. 填充文件内容
Use templates from folder, substituting:
assets/- — Project name
{{PROJECT_NAME}} - — Project description
{{DESCRIPTION}} - — Current date (YYYY-MM-DD)
{{DATE}} - — Current year
{{YEAR}}
使用文件夹中的模板,替换以下变量:
assets/- — 项目名称
{{PROJECT_NAME}} - — 项目描述
{{DESCRIPTION}} - — 当前日期(YYYY-MM-DD)
{{DATE}} - — 当前年份
{{YEAR}}
7. Add Type-Specific Files
7. 添加特定类型文件
| Type | Additional Structure |
|---|---|
| Base structure only |
| + |
| + |
See for details.
references/project-types.md| 类型 | 额外结构 |
|---|---|
| 仅基础结构 |
| + |
| + |
详情请查看。
references/project-types.md8. Confirm Completion
8. 完成确认
Report:
- Full path created
- Files generated
- Suggested next steps
向用户报告:
- 已创建的完整路径
- 已生成的文件
- 建议的后续步骤
Template Assets
模板资源
| File | Source |
|---|---|
| README.md | |
| CHANGELOG.md | |
| LICENSE (MIT) | |
| LICENSE (Apache) | |
| .gitignore | |
| CONTEXT.md | |
| TODO.md | |
| DECISIONS.md | |
| 文件 | 来源 |
|---|---|
| README.md | |
| CHANGELOG.md | |
| LICENSE (MIT) | |
| LICENSE (Apache) | |
| .gitignore | |
| CONTEXT.md | |
| TODO.md | |
| DECISIONS.md | |
Integration
集成
This skill creates structure compatible with :
/wrap-session| Init Creates | Wrap-Session Updates |
|---|---|
| README.md | README.md (with progress) |
| CHANGELOG.md | CHANGELOG.md (with changes) |
| CONTEXT.md | CONTEXT.md (current state) |
| TODO.md | TODO.md (with tasks) |
| SESSION-LOG/ | SESSION-LOG/*.md |
该工具创建的结构与兼容:
/wrap-session| 初始化创建的内容 | Wrap-Session更新的内容 |
|---|---|
| README.md | README.md(更新进度) |
| CHANGELOG.md | CHANGELOG.md(更新变更记录) |
| CONTEXT.md | CONTEXT.md(更新当前状态) |
| TODO.md | TODO.md(更新任务) |
| SESSION-LOG/ | SESSION-LOG/*.md |