@fitlab-ai/agent-infra 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License.txt +21 -0
- package/README.md +170 -0
- package/README.zh-CN.md +170 -0
- package/bin/cli.js +65 -0
- package/lib/defaults.json +45 -0
- package/lib/init.js +203 -0
- package/lib/log.js +27 -0
- package/lib/paths.js +48 -0
- package/lib/prompt.js +70 -0
- package/lib/render.js +99 -0
- package/lib/update.js +161 -0
- package/lib/version.js +7 -0
- package/package.json +48 -0
- package/templates/.agent-workspace/README.md +26 -0
- package/templates/.agent-workspace/README.zh-CN.md +26 -0
- package/templates/.agents/QUICKSTART.md +166 -0
- package/templates/.agents/QUICKSTART.zh-CN.md +166 -0
- package/templates/.agents/README.md +134 -0
- package/templates/.agents/README.zh-CN.md +134 -0
- package/templates/.agents/skills/analyze-task/SKILL.md +169 -0
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +169 -0
- package/templates/.agents/skills/block-task/SKILL.md +164 -0
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +163 -0
- package/templates/.agents/skills/check-task/SKILL.md +122 -0
- package/templates/.agents/skills/check-task/SKILL.zh-CN.md +122 -0
- package/templates/.agents/skills/close-codescan/SKILL.md +122 -0
- package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +122 -0
- package/templates/.agents/skills/close-dependabot/SKILL.md +130 -0
- package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +130 -0
- package/templates/.agents/skills/commit/SKILL.md +218 -0
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +217 -0
- package/templates/.agents/skills/complete-task/SKILL.md +139 -0
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +137 -0
- package/templates/.agents/skills/create-pr/SKILL.md +126 -0
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +125 -0
- package/templates/.agents/skills/create-release-note/SKILL.md +167 -0
- package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +166 -0
- package/templates/.agents/skills/create-task/SKILL.md +143 -0
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +143 -0
- package/templates/.agents/skills/implement-task/SKILL.md +229 -0
- package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +227 -0
- package/templates/.agents/skills/import-codescan/SKILL.md +103 -0
- package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +103 -0
- package/templates/.agents/skills/import-dependabot/SKILL.md +107 -0
- package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +107 -0
- package/templates/.agents/skills/import-issue/SKILL.md +119 -0
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +119 -0
- package/templates/.agents/skills/init-labels/SKILL.md +74 -0
- package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +74 -0
- package/templates/.agents/skills/init-labels/scripts/init-labels.sh +111 -0
- package/templates/.agents/skills/init-milestones/SKILL.md +74 -0
- package/templates/.agents/skills/init-milestones/SKILL.zh-CN.md +74 -0
- package/templates/.agents/skills/init-milestones/scripts/init-milestones.sh +169 -0
- package/templates/.agents/skills/plan-task/SKILL.md +225 -0
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +225 -0
- package/templates/.agents/skills/refine-task/SKILL.md +200 -0
- package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +200 -0
- package/templates/.agents/skills/refine-title/SKILL.md +84 -0
- package/templates/.agents/skills/refine-title/SKILL.zh-CN.md +83 -0
- package/templates/.agents/skills/release/SKILL.md +142 -0
- package/templates/.agents/skills/release/SKILL.zh-CN.md +141 -0
- package/templates/.agents/skills/release/scripts/manage-milestones.sh +80 -0
- package/templates/.agents/skills/review-task/SKILL.md +276 -0
- package/templates/.agents/skills/review-task/SKILL.zh-CN.md +276 -0
- package/templates/.agents/skills/sync-issue/SKILL.md +569 -0
- package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +569 -0
- package/templates/.agents/skills/sync-pr/SKILL.md +142 -0
- package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +142 -0
- package/templates/.agents/skills/test/SKILL.md +61 -0
- package/templates/.agents/skills/test/SKILL.zh-CN.md +61 -0
- package/templates/.agents/skills/test-integration/SKILL.md +70 -0
- package/templates/.agents/skills/test-integration/SKILL.zh-CN.md +69 -0
- package/templates/.agents/skills/update-agent-infra/SKILL.md +136 -0
- package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +124 -0
- package/templates/.agents/skills/update-agent-infra/scripts/package.json +3 -0
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +469 -0
- package/templates/.agents/skills/upgrade-dependency/SKILL.md +88 -0
- package/templates/.agents/skills/upgrade-dependency/SKILL.zh-CN.md +87 -0
- package/templates/.agents/templates/handoff.md +60 -0
- package/templates/.agents/templates/handoff.zh-CN.md +60 -0
- package/templates/.agents/templates/review-report.md +67 -0
- package/templates/.agents/templates/review-report.zh-CN.md +67 -0
- package/templates/.agents/templates/task.md +65 -0
- package/templates/.agents/templates/task.zh-CN.md +65 -0
- package/templates/.agents/workflows/bug-fix.yaml +149 -0
- package/templates/.agents/workflows/bug-fix.zh-CN.yaml +149 -0
- package/templates/.agents/workflows/code-review.yaml +60 -0
- package/templates/.agents/workflows/code-review.zh-CN.yaml +60 -0
- package/templates/.agents/workflows/feature-development.yaml +150 -0
- package/templates/.agents/workflows/feature-development.zh-CN.yaml +150 -0
- package/templates/.agents/workflows/refactoring.yaml +154 -0
- package/templates/.agents/workflows/refactoring.zh-CN.yaml +154 -0
- package/templates/.claude/CLAUDE.md +163 -0
- package/templates/.claude/CLAUDE.zh-CN.md +163 -0
- package/templates/.claude/commands/analyze-task.md +8 -0
- package/templates/.claude/commands/analyze-task.zh-CN.md +8 -0
- package/templates/.claude/commands/block-task.md +8 -0
- package/templates/.claude/commands/block-task.zh-CN.md +8 -0
- package/templates/.claude/commands/check-task.md +8 -0
- package/templates/.claude/commands/check-task.zh-CN.md +8 -0
- package/templates/.claude/commands/close-codescan.md +8 -0
- package/templates/.claude/commands/close-codescan.zh-CN.md +8 -0
- package/templates/.claude/commands/close-dependabot.md +8 -0
- package/templates/.claude/commands/close-dependabot.zh-CN.md +8 -0
- package/templates/.claude/commands/commit.md +7 -0
- package/templates/.claude/commands/commit.zh-CN.md +7 -0
- package/templates/.claude/commands/complete-task.md +8 -0
- package/templates/.claude/commands/complete-task.zh-CN.md +8 -0
- package/templates/.claude/commands/create-pr.md +8 -0
- package/templates/.claude/commands/create-pr.zh-CN.md +8 -0
- package/templates/.claude/commands/create-release-note.md +8 -0
- package/templates/.claude/commands/create-release-note.zh-CN.md +8 -0
- package/templates/.claude/commands/create-task.md +8 -0
- package/templates/.claude/commands/create-task.zh-CN.md +8 -0
- package/templates/.claude/commands/implement-task.md +8 -0
- package/templates/.claude/commands/implement-task.zh-CN.md +8 -0
- package/templates/.claude/commands/import-codescan.md +8 -0
- package/templates/.claude/commands/import-codescan.zh-CN.md +8 -0
- package/templates/.claude/commands/import-dependabot.md +8 -0
- package/templates/.claude/commands/import-dependabot.zh-CN.md +8 -0
- package/templates/.claude/commands/import-issue.md +8 -0
- package/templates/.claude/commands/import-issue.zh-CN.md +8 -0
- package/templates/.claude/commands/init-labels.md +7 -0
- package/templates/.claude/commands/init-labels.zh-CN.md +7 -0
- package/templates/.claude/commands/init-milestones.md +8 -0
- package/templates/.claude/commands/init-milestones.zh-CN.md +8 -0
- package/templates/.claude/commands/plan-task.md +8 -0
- package/templates/.claude/commands/plan-task.zh-CN.md +8 -0
- package/templates/.claude/commands/refine-task.md +8 -0
- package/templates/.claude/commands/refine-task.zh-CN.md +8 -0
- package/templates/.claude/commands/refine-title.md +8 -0
- package/templates/.claude/commands/refine-title.zh-CN.md +8 -0
- package/templates/.claude/commands/release.md +8 -0
- package/templates/.claude/commands/release.zh-CN.md +8 -0
- package/templates/.claude/commands/review-task.md +8 -0
- package/templates/.claude/commands/review-task.zh-CN.md +8 -0
- package/templates/.claude/commands/sync-issue.md +8 -0
- package/templates/.claude/commands/sync-issue.zh-CN.md +8 -0
- package/templates/.claude/commands/sync-pr.md +8 -0
- package/templates/.claude/commands/sync-pr.zh-CN.md +8 -0
- package/templates/.claude/commands/test-integration.md +7 -0
- package/templates/.claude/commands/test-integration.zh-CN.md +7 -0
- package/templates/.claude/commands/test.md +7 -0
- package/templates/.claude/commands/test.zh-CN.md +7 -0
- package/templates/.claude/commands/update-agent-infra.md +7 -0
- package/templates/.claude/commands/update-agent-infra.zh-CN.md +7 -0
- package/templates/.claude/commands/upgrade-dependency.md +8 -0
- package/templates/.claude/commands/upgrade-dependency.zh-CN.md +8 -0
- package/templates/.claude/project-rules.md +65 -0
- package/templates/.claude/project-rules.zh-CN.md +65 -0
- package/templates/.claude/settings.json +20 -0
- package/templates/.codex/README.md +38 -0
- package/templates/.codex/README.zh-CN.md +37 -0
- package/templates/.editorconfig +15 -0
- package/templates/.gemini/commands/_project_/analyze-task.toml +8 -0
- package/templates/.gemini/commands/_project_/analyze-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/block-task.toml +8 -0
- package/templates/.gemini/commands/_project_/block-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/check-task.toml +8 -0
- package/templates/.gemini/commands/_project_/check-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/close-codescan.toml +8 -0
- package/templates/.gemini/commands/_project_/close-codescan.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/close-dependabot.toml +8 -0
- package/templates/.gemini/commands/_project_/close-dependabot.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/commit.toml +6 -0
- package/templates/.gemini/commands/_project_/commit.zh-CN.toml +6 -0
- package/templates/.gemini/commands/_project_/complete-task.toml +8 -0
- package/templates/.gemini/commands/_project_/complete-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/create-pr.toml +8 -0
- package/templates/.gemini/commands/_project_/create-pr.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/create-release-note.toml +8 -0
- package/templates/.gemini/commands/_project_/create-release-note.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/create-task.toml +8 -0
- package/templates/.gemini/commands/_project_/create-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/implement-task.toml +8 -0
- package/templates/.gemini/commands/_project_/implement-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/import-codescan.toml +8 -0
- package/templates/.gemini/commands/_project_/import-codescan.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/import-dependabot.toml +8 -0
- package/templates/.gemini/commands/_project_/import-dependabot.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/import-issue.toml +8 -0
- package/templates/.gemini/commands/_project_/import-issue.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/init-labels.toml +8 -0
- package/templates/.gemini/commands/_project_/init-labels.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/init-milestones.toml +10 -0
- package/templates/.gemini/commands/_project_/init-milestones.zh-CN.toml +10 -0
- package/templates/.gemini/commands/_project_/plan-task.toml +8 -0
- package/templates/.gemini/commands/_project_/plan-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/refine-task.toml +8 -0
- package/templates/.gemini/commands/_project_/refine-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/refine-title.toml +8 -0
- package/templates/.gemini/commands/_project_/refine-title.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/release.toml +8 -0
- package/templates/.gemini/commands/_project_/release.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/review-task.toml +8 -0
- package/templates/.gemini/commands/_project_/review-task.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/sync-issue.toml +8 -0
- package/templates/.gemini/commands/_project_/sync-issue.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/sync-pr.toml +8 -0
- package/templates/.gemini/commands/_project_/sync-pr.zh-CN.toml +8 -0
- package/templates/.gemini/commands/_project_/test-integration.toml +6 -0
- package/templates/.gemini/commands/_project_/test-integration.zh-CN.toml +6 -0
- package/templates/.gemini/commands/_project_/test.toml +6 -0
- package/templates/.gemini/commands/_project_/test.zh-CN.toml +6 -0
- package/templates/.gemini/commands/_project_/update-agent-infra.toml +6 -0
- package/templates/.gemini/commands/_project_/update-agent-infra.zh-CN.toml +6 -0
- package/templates/.gemini/commands/_project_/upgrade-dependency.toml +8 -0
- package/templates/.gemini/commands/_project_/upgrade-dependency.zh-CN.toml +8 -0
- package/templates/.gemini/settings.json +3 -0
- package/templates/.github/ISSUE_TEMPLATE/01_bug_report.yml +149 -0
- package/templates/.github/ISSUE_TEMPLATE/02_question.yml +101 -0
- package/templates/.github/ISSUE_TEMPLATE/03_feature_request.yml +131 -0
- package/templates/.github/ISSUE_TEMPLATE/04_documentation.yml +165 -0
- package/templates/.github/ISSUE_TEMPLATE/05_other.yml +147 -0
- package/templates/.github/ISSUE_TEMPLATE/config.yml +11 -0
- package/templates/.github/PULL_REQUEST_TEMPLATE.md +123 -0
- package/templates/.github/dependabot.yml +17 -0
- package/templates/.github/hooks/check-utf8-encoding.sh +25 -0
- package/templates/.github/release.yml +27 -0
- package/templates/.github/workflows/pr-title-check.yml +42 -0
- package/templates/.mailmap +4 -0
- package/templates/.opencode/COMMAND_STYLE_GUIDE.md +232 -0
- package/templates/.opencode/COMMAND_STYLE_GUIDE.zh-CN.md +232 -0
- package/templates/.opencode/README.md +76 -0
- package/templates/.opencode/README.zh-CN.md +77 -0
- package/templates/.opencode/commands/analyze-task.md +11 -0
- package/templates/.opencode/commands/analyze-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/block-task.md +11 -0
- package/templates/.opencode/commands/block-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/check-task.md +11 -0
- package/templates/.opencode/commands/check-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/close-codescan.md +11 -0
- package/templates/.opencode/commands/close-codescan.zh-CN.md +11 -0
- package/templates/.opencode/commands/close-dependabot.md +11 -0
- package/templates/.opencode/commands/close-dependabot.zh-CN.md +11 -0
- package/templates/.opencode/commands/commit.md +9 -0
- package/templates/.opencode/commands/commit.zh-CN.md +9 -0
- package/templates/.opencode/commands/complete-task.md +11 -0
- package/templates/.opencode/commands/complete-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/create-pr.md +11 -0
- package/templates/.opencode/commands/create-pr.zh-CN.md +11 -0
- package/templates/.opencode/commands/create-release-note.md +11 -0
- package/templates/.opencode/commands/create-release-note.zh-CN.md +11 -0
- package/templates/.opencode/commands/create-task.md +11 -0
- package/templates/.opencode/commands/create-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/implement-task.md +11 -0
- package/templates/.opencode/commands/implement-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/import-codescan.md +11 -0
- package/templates/.opencode/commands/import-codescan.zh-CN.md +11 -0
- package/templates/.opencode/commands/import-dependabot.md +11 -0
- package/templates/.opencode/commands/import-dependabot.zh-CN.md +11 -0
- package/templates/.opencode/commands/import-issue.md +11 -0
- package/templates/.opencode/commands/import-issue.zh-CN.md +11 -0
- package/templates/.opencode/commands/init-labels.md +9 -0
- package/templates/.opencode/commands/init-labels.zh-CN.md +9 -0
- package/templates/.opencode/commands/init-milestones.md +11 -0
- package/templates/.opencode/commands/init-milestones.zh-CN.md +11 -0
- package/templates/.opencode/commands/plan-task.md +11 -0
- package/templates/.opencode/commands/plan-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/refine-task.md +11 -0
- package/templates/.opencode/commands/refine-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/refine-title.md +11 -0
- package/templates/.opencode/commands/refine-title.zh-CN.md +11 -0
- package/templates/.opencode/commands/release.md +11 -0
- package/templates/.opencode/commands/release.zh-CN.md +11 -0
- package/templates/.opencode/commands/review-task.md +11 -0
- package/templates/.opencode/commands/review-task.zh-CN.md +11 -0
- package/templates/.opencode/commands/sync-issue.md +11 -0
- package/templates/.opencode/commands/sync-issue.zh-CN.md +11 -0
- package/templates/.opencode/commands/sync-pr.md +11 -0
- package/templates/.opencode/commands/sync-pr.zh-CN.md +11 -0
- package/templates/.opencode/commands/test-integration.md +9 -0
- package/templates/.opencode/commands/test-integration.zh-CN.md +9 -0
- package/templates/.opencode/commands/test.md +9 -0
- package/templates/.opencode/commands/test.zh-CN.md +9 -0
- package/templates/.opencode/commands/update-agent-infra.md +9 -0
- package/templates/.opencode/commands/update-agent-infra.zh-CN.md +9 -0
- package/templates/.opencode/commands/upgrade-dependency.md +11 -0
- package/templates/.opencode/commands/upgrade-dependency.zh-CN.md +11 -0
- package/templates/AGENTS.md +91 -0
- package/templates/AGENTS.zh-CN.md +91 -0
- package/templates/CONTRIBUTING.md +126 -0
- package/templates/CONTRIBUTING.zh-CN.md +124 -0
- package/templates/SECURITY.md +131 -0
- package/templates/SECURITY.zh-CN.md +131 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-task
|
|
3
|
+
description: >
|
|
4
|
+
根据用户的自然语言描述创建任务骨架。当用户描述一个新功能、Bug 或改进需求时触发。
|
|
5
|
+
唯一的产出是 task.md —— 不编写任何业务代码。参数:任务描述文本。
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 创建任务
|
|
9
|
+
|
|
10
|
+
## 行为边界 / 关键规则
|
|
11
|
+
|
|
12
|
+
**本技能的唯一产出是 `task.md`。**
|
|
13
|
+
|
|
14
|
+
- 不要编写、修改或创建任何业务代码或配置文件
|
|
15
|
+
- 不要执行需求分析;分析由 `analyze-task` 独立完成
|
|
16
|
+
- 不要直接实现所描述的功能
|
|
17
|
+
- 不要跳过工作流直接进入计划/实现阶段
|
|
18
|
+
- 仅执行:解析描述 -> 创建任务文件 -> 更新任务状态 -> 告知用户下一步
|
|
19
|
+
|
|
20
|
+
用户的描述是一个**待办事项**,而不是**立即执行的指令**。
|
|
21
|
+
|
|
22
|
+
执行本技能后,你**必须**立即更新 task.md 中的任务状态。
|
|
23
|
+
|
|
24
|
+
## 执行步骤
|
|
25
|
+
|
|
26
|
+
### 1. 解析用户描述
|
|
27
|
+
|
|
28
|
+
从自然语言描述中提取:
|
|
29
|
+
- **任务标题**:简洁标题(最多 50 个字符)
|
|
30
|
+
- **任务类型**:`feature` | `bugfix` | `refactor` | `docs` | `chore`(从描述推断)
|
|
31
|
+
- **工作流**:`feature-development` | `bug-fix` | `refactoring`(从类型推断)
|
|
32
|
+
- **详细描述**:整理后的用户原始描述
|
|
33
|
+
|
|
34
|
+
如果描述不清晰,**先向用户确认**再继续。
|
|
35
|
+
|
|
36
|
+
**类型推断规则**:
|
|
37
|
+
- 包含 "add"、"new"、"support"、"implement" -> `feature`
|
|
38
|
+
- 包含 "fix"、"resolve"、"bug"、"error" -> `bugfix`
|
|
39
|
+
- 包含 "refactor"、"optimize"、"improve"、"clean up" -> `refactor`
|
|
40
|
+
- 包含 "document"、"javadoc"、"comment"、"readme" -> `docs`
|
|
41
|
+
- 其他 -> `chore`
|
|
42
|
+
|
|
43
|
+
**工作流映射**:
|
|
44
|
+
- `feature` / `docs` / `chore` -> `feature-development`
|
|
45
|
+
- `bugfix` -> `bug-fix`
|
|
46
|
+
- `refactor` -> `refactoring`
|
|
47
|
+
|
|
48
|
+
### 2. 创建任务目录和文件
|
|
49
|
+
|
|
50
|
+
获取当前时间戳:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
date +%Y%m%d-%H%M%S
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- 创建任务目录:`.agent-workspace/active/TASK-{yyyyMMdd-HHmmss}/`
|
|
57
|
+
- 使用 `.agents/templates/task.md` 模板创建任务文件:`task.md`
|
|
58
|
+
|
|
59
|
+
**重要**:
|
|
60
|
+
- 目录命名:`TASK-{yyyyMMdd-HHmmss}`(**必须**包含 `TASK-` 前缀)
|
|
61
|
+
- 示例:`TASK-20260306-143022`
|
|
62
|
+
- 任务 ID = 目录名
|
|
63
|
+
|
|
64
|
+
任务元数据(task.md YAML front matter):
|
|
65
|
+
```yaml
|
|
66
|
+
id: TASK-{yyyyMMdd-HHmmss}
|
|
67
|
+
type: feature|bugfix|refactor|docs|chore
|
|
68
|
+
workflow: feature-development|bug-fix|refactoring
|
|
69
|
+
status: active
|
|
70
|
+
created_at: {yyyy-MM-dd HH:mm:ss}
|
|
71
|
+
updated_at: {yyyy-MM-dd HH:mm:ss}
|
|
72
|
+
created_by: human
|
|
73
|
+
current_step: requirement-analysis
|
|
74
|
+
assigned_to: {当前 AI 代理}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
注意:`created_by` 为 `human`,因为任务来源于用户的描述。
|
|
78
|
+
|
|
79
|
+
### 3. 更新任务状态
|
|
80
|
+
|
|
81
|
+
获取当前时间:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
date "+%Y-%m-%d %H:%M:%S"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
更新 `.agent-workspace/active/{task-id}/task.md`:
|
|
88
|
+
- `current_step`:requirement-analysis
|
|
89
|
+
- `assigned_to`:{当前 AI 代理}
|
|
90
|
+
- `updated_at`:{当前时间}
|
|
91
|
+
- **追加**到 `## Activity Log`(不要覆盖之前的记录):
|
|
92
|
+
```
|
|
93
|
+
- {yyyy-MM-dd HH:mm:ss} — **Task Created** by {agent} — Task created from description
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 4. 告知用户
|
|
97
|
+
|
|
98
|
+
> **重要**:以下「下一步」中列出的所有 TUI 命令格式必须完整输出,不要只展示当前 AI 代理对应的格式。
|
|
99
|
+
|
|
100
|
+
输出格式:
|
|
101
|
+
```
|
|
102
|
+
任务已创建。
|
|
103
|
+
|
|
104
|
+
任务信息:
|
|
105
|
+
- 任务 ID:{task-id}
|
|
106
|
+
- 标题:{title}
|
|
107
|
+
- 类型:{type}
|
|
108
|
+
- 工作流:{workflow}
|
|
109
|
+
|
|
110
|
+
产出文件:
|
|
111
|
+
- 任务文件:.agent-workspace/active/{task-id}/task.md
|
|
112
|
+
|
|
113
|
+
下一步 - 执行需求分析:
|
|
114
|
+
- Claude Code / OpenCode:/analyze-task {task-id}
|
|
115
|
+
- Gemini CLI:/agent-infra:analyze-task {task-id}
|
|
116
|
+
- Codex CLI:$analyze-task {task-id}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## 完成检查清单
|
|
120
|
+
|
|
121
|
+
- [ ] 创建了任务文件 `.agent-workspace/active/{task-id}/task.md`
|
|
122
|
+
- [ ] 更新了 task.md 中的 `current_step` 为 requirement-analysis
|
|
123
|
+
- [ ] 更新了 task.md 中的 `updated_at` 为当前时间
|
|
124
|
+
- [ ] 更新了 task.md 中的 `assigned_to`
|
|
125
|
+
- [ ] 追加了 Activity Log 条目到 task.md
|
|
126
|
+
- [ ] 告知了用户下一步(必须展示所有 TUI 的命令格式,不要筛选)
|
|
127
|
+
- [ ] **没有修改任何业务代码或配置文件**(仅 task.md)
|
|
128
|
+
|
|
129
|
+
## 停止
|
|
130
|
+
|
|
131
|
+
完成检查清单后,**立即停止**。不要继续执行计划、实现或任何后续步骤。
|
|
132
|
+
等待用户执行 `analyze-task` 技能。
|
|
133
|
+
|
|
134
|
+
## 注意事项
|
|
135
|
+
|
|
136
|
+
1. **清晰度**:如果用户描述模糊或缺少关键信息,先要求澄清
|
|
137
|
+
2. **与 import-issue 的区别**:`import-issue` 从 GitHub Issue 导入任务;`create-task` 从自由描述创建
|
|
138
|
+
3. **工作流顺序**:创建任务后,必须先执行 `analyze-task`,再进入 `plan-task`
|
|
139
|
+
|
|
140
|
+
## 错误处理
|
|
141
|
+
|
|
142
|
+
- 空描述:提示 "Please provide a task description"
|
|
143
|
+
- 描述过于模糊:在创建任务之前提出澄清问题
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-task
|
|
3
|
+
description: >
|
|
4
|
+
根据用户的自然语言描述创建任务骨架。当用户描述一个新功能、Bug 或改进需求时触发。
|
|
5
|
+
唯一的产出是 task.md —— 不编写任何业务代码。参数:任务描述文本。
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 创建任务
|
|
9
|
+
|
|
10
|
+
## 行为边界 / 关键规则
|
|
11
|
+
|
|
12
|
+
**本技能的唯一产出是 `task.md`。**
|
|
13
|
+
|
|
14
|
+
- 不要编写、修改或创建任何业务代码或配置文件
|
|
15
|
+
- 不要执行需求分析;分析由 `analyze-task` 独立完成
|
|
16
|
+
- 不要直接实现所描述的功能
|
|
17
|
+
- 不要跳过工作流直接进入计划/实现阶段
|
|
18
|
+
- 仅执行:解析描述 -> 创建任务文件 -> 更新任务状态 -> 告知用户下一步
|
|
19
|
+
|
|
20
|
+
用户的描述是一个**待办事项**,而不是**立即执行的指令**。
|
|
21
|
+
|
|
22
|
+
执行本技能后,你**必须**立即更新 task.md 中的任务状态。
|
|
23
|
+
|
|
24
|
+
## 执行步骤
|
|
25
|
+
|
|
26
|
+
### 1. 解析用户描述
|
|
27
|
+
|
|
28
|
+
从自然语言描述中提取:
|
|
29
|
+
- **任务标题**:简洁标题(最多 50 个字符)
|
|
30
|
+
- **任务类型**:`feature` | `bugfix` | `refactor` | `docs` | `chore`(从描述推断)
|
|
31
|
+
- **工作流**:`feature-development` | `bug-fix` | `refactoring`(从类型推断)
|
|
32
|
+
- **详细描述**:整理后的用户原始描述
|
|
33
|
+
|
|
34
|
+
如果描述不清晰,**先向用户确认**再继续。
|
|
35
|
+
|
|
36
|
+
**类型推断规则**:
|
|
37
|
+
- 包含 "add"、"new"、"support"、"implement" -> `feature`
|
|
38
|
+
- 包含 "fix"、"resolve"、"bug"、"error" -> `bugfix`
|
|
39
|
+
- 包含 "refactor"、"optimize"、"improve"、"clean up" -> `refactor`
|
|
40
|
+
- 包含 "document"、"javadoc"、"comment"、"readme" -> `docs`
|
|
41
|
+
- 其他 -> `chore`
|
|
42
|
+
|
|
43
|
+
**工作流映射**:
|
|
44
|
+
- `feature` / `docs` / `chore` -> `feature-development`
|
|
45
|
+
- `bugfix` -> `bug-fix`
|
|
46
|
+
- `refactor` -> `refactoring`
|
|
47
|
+
|
|
48
|
+
### 2. 创建任务目录和文件
|
|
49
|
+
|
|
50
|
+
获取当前时间戳:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
date +%Y%m%d-%H%M%S
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- 创建任务目录:`.agent-workspace/active/TASK-{yyyyMMdd-HHmmss}/`
|
|
57
|
+
- 使用 `.agents/templates/task.md` 模板创建任务文件:`task.md`
|
|
58
|
+
|
|
59
|
+
**重要**:
|
|
60
|
+
- 目录命名:`TASK-{yyyyMMdd-HHmmss}`(**必须**包含 `TASK-` 前缀)
|
|
61
|
+
- 示例:`TASK-20260306-143022`
|
|
62
|
+
- 任务 ID = 目录名
|
|
63
|
+
|
|
64
|
+
任务元数据(task.md YAML front matter):
|
|
65
|
+
```yaml
|
|
66
|
+
id: TASK-{yyyyMMdd-HHmmss}
|
|
67
|
+
type: feature|bugfix|refactor|docs|chore
|
|
68
|
+
workflow: feature-development|bug-fix|refactoring
|
|
69
|
+
status: active
|
|
70
|
+
created_at: {yyyy-MM-dd HH:mm:ss}
|
|
71
|
+
updated_at: {yyyy-MM-dd HH:mm:ss}
|
|
72
|
+
created_by: human
|
|
73
|
+
current_step: requirement-analysis
|
|
74
|
+
assigned_to: {当前 AI 代理}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
注意:`created_by` 为 `human`,因为任务来源于用户的描述。
|
|
78
|
+
|
|
79
|
+
### 3. 更新任务状态
|
|
80
|
+
|
|
81
|
+
获取当前时间:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
date "+%Y-%m-%d %H:%M:%S"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
更新 `.agent-workspace/active/{task-id}/task.md`:
|
|
88
|
+
- `current_step`:requirement-analysis
|
|
89
|
+
- `assigned_to`:{当前 AI 代理}
|
|
90
|
+
- `updated_at`:{当前时间}
|
|
91
|
+
- **追加**到 `## Activity Log`(不要覆盖之前的记录):
|
|
92
|
+
```
|
|
93
|
+
- {yyyy-MM-dd HH:mm:ss} — **Task Created** by {agent} — Task created from description
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 4. 告知用户
|
|
97
|
+
|
|
98
|
+
> **重要**:以下「下一步」中列出的所有 TUI 命令格式必须完整输出,不要只展示当前 AI 代理对应的格式。
|
|
99
|
+
|
|
100
|
+
输出格式:
|
|
101
|
+
```
|
|
102
|
+
任务已创建。
|
|
103
|
+
|
|
104
|
+
任务信息:
|
|
105
|
+
- 任务 ID:{task-id}
|
|
106
|
+
- 标题:{title}
|
|
107
|
+
- 类型:{type}
|
|
108
|
+
- 工作流:{workflow}
|
|
109
|
+
|
|
110
|
+
产出文件:
|
|
111
|
+
- 任务文件:.agent-workspace/active/{task-id}/task.md
|
|
112
|
+
|
|
113
|
+
下一步 - 执行需求分析:
|
|
114
|
+
- Claude Code / OpenCode:/analyze-task {task-id}
|
|
115
|
+
- Gemini CLI:/agent-infra:analyze-task {task-id}
|
|
116
|
+
- Codex CLI:$analyze-task {task-id}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## 完成检查清单
|
|
120
|
+
|
|
121
|
+
- [ ] 创建了任务文件 `.agent-workspace/active/{task-id}/task.md`
|
|
122
|
+
- [ ] 更新了 task.md 中的 `current_step` 为 requirement-analysis
|
|
123
|
+
- [ ] 更新了 task.md 中的 `updated_at` 为当前时间
|
|
124
|
+
- [ ] 更新了 task.md 中的 `assigned_to`
|
|
125
|
+
- [ ] 追加了 Activity Log 条目到 task.md
|
|
126
|
+
- [ ] 告知了用户下一步(必须展示所有 TUI 的命令格式,不要筛选)
|
|
127
|
+
- [ ] **没有修改任何业务代码或配置文件**(仅 task.md)
|
|
128
|
+
|
|
129
|
+
## 停止
|
|
130
|
+
|
|
131
|
+
完成检查清单后,**立即停止**。不要继续执行计划、实现或任何后续步骤。
|
|
132
|
+
等待用户执行 `analyze-task` 技能。
|
|
133
|
+
|
|
134
|
+
## 注意事项
|
|
135
|
+
|
|
136
|
+
1. **清晰度**:如果用户描述模糊或缺少关键信息,先要求澄清
|
|
137
|
+
2. **与 import-issue 的区别**:`import-issue` 从 GitHub Issue 导入任务;`create-task` 从自由描述创建
|
|
138
|
+
3. **工作流顺序**:创建任务后,必须先执行 `analyze-task`,再进入 `plan-task`
|
|
139
|
+
|
|
140
|
+
## 错误处理
|
|
141
|
+
|
|
142
|
+
- 空描述:提示 "Please provide a task description"
|
|
143
|
+
- 描述过于模糊:在创建任务之前提出澄清问题
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implement-task
|
|
3
|
+
description: >
|
|
4
|
+
Implement a task based on the technical plan, write code and tests, and
|
|
5
|
+
output an implementation report. Triggered when the user requests task
|
|
6
|
+
implementation or coding after the technical plan has been reviewed and
|
|
7
|
+
approved. Argument: task-id.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Implement Task
|
|
11
|
+
|
|
12
|
+
## Boundary / Critical Rules
|
|
13
|
+
|
|
14
|
+
- Strictly follow the latest technical plan artifact (`plan.md` or `plan-r{N}.md`) -- do not deviate without documenting the reason
|
|
15
|
+
- Do NOT auto-commit. Never execute `git commit` or `git add` automatically
|
|
16
|
+
- This skill outputs an implementation report (`implementation.md` or `implementation-r{N}.md`) and must never overwrite an existing round artifact
|
|
17
|
+
- After executing this skill, you **must** immediately update task status in task.md
|
|
18
|
+
|
|
19
|
+
## Steps
|
|
20
|
+
|
|
21
|
+
### 1. Verify Prerequisites
|
|
22
|
+
|
|
23
|
+
Check required files:
|
|
24
|
+
- `.agent-workspace/active/{task-id}/task.md` - Task file
|
|
25
|
+
- At least one technical plan artifact: `plan.md` or `plan-r{N}.md`
|
|
26
|
+
|
|
27
|
+
Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, e.g. `TASK-20260306-143022`
|
|
28
|
+
|
|
29
|
+
If either file is missing, prompt the user to complete the prerequisite step first.
|
|
30
|
+
|
|
31
|
+
### 2. Determine the Input Plan and Implementation Round
|
|
32
|
+
|
|
33
|
+
Scan `.agent-workspace/active/{task-id}/` for technical plan files (`plan.md`, `plan-r{N}.md`):
|
|
34
|
+
- Read the highest-round plan file and record it as `{plan-artifact}`
|
|
35
|
+
|
|
36
|
+
Scan `.agent-workspace/active/{task-id}/` for implementation report files:
|
|
37
|
+
- If neither `implementation.md` nor `implementation-r*.md` exists -> this is Round 1 and must create `implementation.md`
|
|
38
|
+
- If `implementation.md` exists and no `implementation-r*.md` exists -> this is Round 2 and must create `implementation-r2.md`
|
|
39
|
+
- If `implementation-r{N}.md` exists -> this is Round N+1 and must create `implementation-r{N+1}.md`
|
|
40
|
+
|
|
41
|
+
Record:
|
|
42
|
+
- `{plan-artifact}`: the technical plan file used for this implementation
|
|
43
|
+
- `{implementation-round}`: the current implementation round
|
|
44
|
+
- `{implementation-artifact}`: the implementation report filename for this round
|
|
45
|
+
|
|
46
|
+
Note: multi-round implementation should only happen after a review verdict of Rejected. A normal first implementation always creates `implementation.md`.
|
|
47
|
+
|
|
48
|
+
### 3. Read Technical Plan
|
|
49
|
+
|
|
50
|
+
Carefully read `{plan-artifact}` to understand:
|
|
51
|
+
- Technical approach and solution strategy
|
|
52
|
+
- Detailed implementation steps
|
|
53
|
+
- Files to create/modify
|
|
54
|
+
- Test strategy
|
|
55
|
+
- Any constraints or risks
|
|
56
|
+
|
|
57
|
+
### 4. Execute Code Implementation
|
|
58
|
+
|
|
59
|
+
Follow the `implementation` step in `.agents/workflows/feature-development.yaml`:
|
|
60
|
+
|
|
61
|
+
**Required tasks**:
|
|
62
|
+
- [ ] Implement functionality code following the plan
|
|
63
|
+
- [ ] Write comprehensive unit tests
|
|
64
|
+
- [ ] Run tests locally to verify functionality
|
|
65
|
+
- [ ] Update related documentation and comments
|
|
66
|
+
- [ ] Follow project coding standards (see project instructions)
|
|
67
|
+
|
|
68
|
+
**Implementation principles**:
|
|
69
|
+
1. **Strictly follow the plan**: Do not deviate from the technical plan
|
|
70
|
+
2. **Step by step**: Execute plan steps in order
|
|
71
|
+
3. **Test continuously**: Run tests after completing each step
|
|
72
|
+
4. **Keep it simple**: Do not over-engineer or add unplanned features
|
|
73
|
+
|
|
74
|
+
### 5. Run Test Verification
|
|
75
|
+
|
|
76
|
+
Execute the project's test command. Reference the `test` skill for the project-specific test command:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Check .agents/skills/test/SKILL.md for the project's test command
|
|
80
|
+
# Common patterns:
|
|
81
|
+
# npm test (Node.js)
|
|
82
|
+
# mvn test (Maven)
|
|
83
|
+
# pytest (Python)
|
|
84
|
+
# go test ./... (Go)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Ensure all tests pass. If tests fail, fix the issues before proceeding.
|
|
88
|
+
|
|
89
|
+
### 6. Output Implementation Report
|
|
90
|
+
|
|
91
|
+
Create `.agent-workspace/active/{task-id}/{implementation-artifact}`.
|
|
92
|
+
|
|
93
|
+
Requirements:
|
|
94
|
+
- Do not overwrite any existing implementation report
|
|
95
|
+
- Record the actual round number and artifact filename in the report
|
|
96
|
+
- If this is a re-implementation round, explain what triggered it
|
|
97
|
+
|
|
98
|
+
### 7. Update Task Status
|
|
99
|
+
|
|
100
|
+
Get the current time:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
date "+%Y-%m-%d %H:%M:%S"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Update `.agent-workspace/active/{task-id}/task.md`:
|
|
107
|
+
- `current_step`: implementation
|
|
108
|
+
- `assigned_to`: {current AI agent}
|
|
109
|
+
- `updated_at`: {current time}
|
|
110
|
+
- Record the implementation artifact for this round: `{implementation-artifact}` (Round `{implementation-round}`)
|
|
111
|
+
- Mark implementation as complete in workflow progress and include the actual round when the task template supports it
|
|
112
|
+
- **Append** to `## Activity Log` (do NOT overwrite previous entries):
|
|
113
|
+
```
|
|
114
|
+
- {yyyy-MM-dd HH:mm:ss} — **Implementation (Round {N})** by {agent} — Code implemented, {n} files modified, {n} tests passed → {artifact-filename}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### 8. Inform User
|
|
118
|
+
|
|
119
|
+
> **IMPORTANT**: All TUI command formats listed below must be output in full. Do not show only the format for the current AI agent.
|
|
120
|
+
|
|
121
|
+
Output format:
|
|
122
|
+
```
|
|
123
|
+
Implementation complete for task {task-id}.
|
|
124
|
+
|
|
125
|
+
Summary:
|
|
126
|
+
- Modified files: {count}
|
|
127
|
+
- New files: {count}
|
|
128
|
+
- Tests passed: {count}/{total}
|
|
129
|
+
|
|
130
|
+
Output file:
|
|
131
|
+
- Implementation report: .agent-workspace/active/{task-id}/{implementation-artifact} (Round {implementation-round})
|
|
132
|
+
|
|
133
|
+
Next step - code review:
|
|
134
|
+
- Claude Code / OpenCode: /review-task {task-id}
|
|
135
|
+
- Gemini CLI: /{{project}}:review-task {task-id}
|
|
136
|
+
- Codex CLI: $review-task {task-id}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Output Template
|
|
140
|
+
|
|
141
|
+
```markdown
|
|
142
|
+
# Implementation Report
|
|
143
|
+
|
|
144
|
+
- **Implementation round**: Round {implementation-round}
|
|
145
|
+
- **Artifact file**: `{implementation-artifact}`
|
|
146
|
+
|
|
147
|
+
## Modified Files
|
|
148
|
+
|
|
149
|
+
### New Files
|
|
150
|
+
- `{file-path}` - {Description}
|
|
151
|
+
|
|
152
|
+
### Modified Files
|
|
153
|
+
- `{file-path}` - {Summary of changes}
|
|
154
|
+
|
|
155
|
+
## Key Code Explanation
|
|
156
|
+
|
|
157
|
+
### {Module/Feature Name}
|
|
158
|
+
**File**: `{file-path}:{line-number}`
|
|
159
|
+
|
|
160
|
+
**Implementation logic**:
|
|
161
|
+
{Explanation of important logic}
|
|
162
|
+
|
|
163
|
+
**Key code**:
|
|
164
|
+
```{language}
|
|
165
|
+
{Key code snippet}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Test Results
|
|
169
|
+
|
|
170
|
+
### Unit Tests
|
|
171
|
+
- Test file: `{test-file-path}`
|
|
172
|
+
- Test cases: {count}
|
|
173
|
+
- Pass rate: {percentage}
|
|
174
|
+
|
|
175
|
+
**Test output**:
|
|
176
|
+
```
|
|
177
|
+
{Test run results}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Differences from Plan
|
|
181
|
+
|
|
182
|
+
{If implementation differs from plan, explain why}
|
|
183
|
+
|
|
184
|
+
## Items for Review
|
|
185
|
+
|
|
186
|
+
**Points that need reviewer attention**:
|
|
187
|
+
- {Attention point 1}
|
|
188
|
+
- {Attention point 2}
|
|
189
|
+
|
|
190
|
+
## Known Issues
|
|
191
|
+
|
|
192
|
+
{Issues discovered during implementation or items to optimize later}
|
|
193
|
+
|
|
194
|
+
## Next Steps
|
|
195
|
+
|
|
196
|
+
{Suggestions for code review or follow-up work}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Completion Checklist
|
|
200
|
+
|
|
201
|
+
- [ ] Completed all code implementation
|
|
202
|
+
- [ ] Created implementation report `.agent-workspace/active/{task-id}/{implementation-artifact}`
|
|
203
|
+
- [ ] All tests pass
|
|
204
|
+
- [ ] Updated `current_step` to implementation in task.md
|
|
205
|
+
- [ ] Updated `updated_at` to current time in task.md
|
|
206
|
+
- [ ] Updated `assigned_to` in task.md
|
|
207
|
+
- [ ] Appended entry to Activity Log in task.md
|
|
208
|
+
- [ ] Marked implementation as complete in workflow progress
|
|
209
|
+
- [ ] Informed user of next step (must include all TUI command formats — do not filter)
|
|
210
|
+
|
|
211
|
+
## STOP
|
|
212
|
+
|
|
213
|
+
After completing the checklist, **stop**. Do not auto-commit. Wait for code review before submission.
|
|
214
|
+
|
|
215
|
+
## Notes
|
|
216
|
+
|
|
217
|
+
1. **Prerequisites**: Must have a reviewed technical plan (`plan.md` or `plan-r{N}.md` exists and is approved)
|
|
218
|
+
2. **No auto-commit**: Do NOT execute `git commit` or `git add` automatically. Remind the user to commit manually
|
|
219
|
+
3. **Test requirement**: All new code must have unit tests; test coverage must not decrease
|
|
220
|
+
4. **Code quality**: Follow project coding standards
|
|
221
|
+
5. **Plan deviation**: If you need to deviate from the plan, document the reason in the implementation report
|
|
222
|
+
6. **Versioning rule**: First-round implementation uses `implementation.md`; later re-implementations use `implementation-r{N}.md`
|
|
223
|
+
|
|
224
|
+
## Error Handling
|
|
225
|
+
|
|
226
|
+
- Task not found: Prompt "Task {task-id} not found"
|
|
227
|
+
- Missing plan: Prompt "Technical plan not found, please run the plan-task skill first"
|
|
228
|
+
- Test failure: Output test errors, ask user whether to continue
|
|
229
|
+
- Build failure: Output build errors, stop implementation
|