feat: add skill init/check and isolate builder makefile
Give ack, builder, and deployer an explicit init/check mode that reports missing project config instead of failing mid-work. Point builder at makefile.builder so its contract targets do not collide with an existing Makefile.
This commit is contained in:
@@ -27,6 +27,31 @@ description: >-
|
||||
2. 第二步
|
||||
3. 第三步
|
||||
|
||||
## 运营类 skill 可选:初始化 / 检查 / 工作
|
||||
|
||||
需要项目配置才能工作的 skill(例如构建、部署、协作闭环)增加这三个模式:
|
||||
|
||||
- **初始化**(用户点名才跑):探项目 → 只建本 skill 拥有的安全空结构 → 用仓库
|
||||
证据填能填的 → 列出待配置项。不覆盖已有文件,不猜密钥、主机、仓库地址。
|
||||
- **检查**(只读):同一套诊断,不写文件。
|
||||
- **工作**:配置不齐就停,告诉用户先初始化。禁止静默初始化。
|
||||
|
||||
报告格式:
|
||||
|
||||
```text
|
||||
## <skill> 初始化:完成 | 部分完成 | 阻塞
|
||||
|
||||
已具备: …
|
||||
待配置: 路径 + 字段 + 可粘贴示例 + 缺了会挡住哪步
|
||||
工具链: …
|
||||
下一步: 一句话
|
||||
```
|
||||
|
||||
项目状态放在 skill 真正消费的位置(覆盖层、`makefile.builder`、compose),不要为了对齐
|
||||
而新建一层没人读的 `.pouch/<skill>/`。`pouch init` 只用于确实有 templates/
|
||||
覆盖层的 skill。需要 make 目标的 skill 用自己的文件名(如 `makefile.builder`),
|
||||
不要占用用户的 `Makefile`。
|
||||
|
||||
---
|
||||
|
||||
## 注意事项
|
||||
|
||||
Reference in New Issue
Block a user