@fitlab-ai/agent-infra 0.4.0 → 0.4.1
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/README.md +1 -3
- package/README.zh-CN.md +1 -3
- package/lib/defaults.json +2 -0
- package/lib/init.js +1 -6
- package/lib/update.js +0 -55
- package/package.json +1 -1
- package/templates/.agents/QUICKSTART.md +10 -0
- package/templates/.agents/QUICKSTART.zh-CN.md +10 -0
- package/templates/.agents/README.md +18 -11
- package/templates/.agents/README.zh-CN.md +18 -11
- package/templates/.agents/skills/analyze-task/SKILL.md +1 -4
- package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/block-task/SKILL.md +1 -5
- package/templates/.agents/skills/block-task/SKILL.zh-CN.md +1 -4
- package/templates/.agents/skills/check-task/SKILL.md +1 -5
- package/templates/.agents/skills/check-task/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/close-codescan/SKILL.md +1 -4
- package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/close-dependabot/SKILL.md +1 -4
- package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/commit/SKILL.md +26 -198
- package/templates/.agents/skills/commit/SKILL.zh-CN.md +26 -197
- package/templates/.agents/skills/commit/reference/commit-message.md +60 -0
- package/templates/.agents/skills/commit/reference/commit-message.zh-CN.md +60 -0
- package/templates/.agents/skills/commit/reference/copyright-check.md +39 -0
- package/templates/.agents/skills/commit/reference/copyright-check.zh-CN.md +39 -0
- package/templates/.agents/skills/commit/reference/task-status-update.md +88 -0
- package/templates/.agents/skills/commit/reference/task-status-update.zh-CN.md +88 -0
- package/templates/.agents/skills/complete-task/SKILL.md +1 -6
- package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +1 -4
- package/templates/.agents/skills/create-issue/SKILL.md +32 -251
- package/templates/.agents/skills/create-issue/SKILL.zh-CN.md +33 -252
- package/templates/.agents/skills/create-issue/reference/label-and-type.md +77 -0
- package/templates/.agents/skills/create-issue/reference/label-and-type.zh-CN.md +77 -0
- package/templates/.agents/skills/create-issue/reference/template-matching.md +45 -0
- package/templates/.agents/skills/create-issue/reference/template-matching.zh-CN.md +45 -0
- package/templates/.agents/skills/create-pr/SKILL.md +33 -224
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +32 -222
- package/templates/.agents/skills/create-pr/reference/branch-strategy.md +29 -0
- package/templates/.agents/skills/create-pr/reference/branch-strategy.zh-CN.md +29 -0
- package/templates/.agents/skills/create-pr/reference/pr-body-template.md +86 -0
- package/templates/.agents/skills/create-pr/reference/pr-body-template.zh-CN.md +86 -0
- package/templates/.agents/skills/create-release-note/SKILL.md +10 -13
- package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +10 -12
- package/templates/.agents/skills/create-task/SKILL.md +1 -4
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/implement-task/SKILL.md +46 -176
- package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +42 -170
- package/templates/.agents/skills/implement-task/reference/implementation-rules.md +58 -0
- package/templates/.agents/skills/implement-task/reference/implementation-rules.zh-CN.md +58 -0
- package/templates/.agents/skills/implement-task/reference/report-template.md +63 -0
- package/templates/.agents/skills/implement-task/reference/report-template.zh-CN.md +63 -0
- package/templates/.agents/skills/import-codescan/SKILL.md +1 -4
- package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/import-dependabot/SKILL.md +1 -4
- package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/import-issue/SKILL.md +1 -3
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/init-labels/SKILL.md +1 -4
- package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +1 -4
- package/templates/.agents/skills/init-milestones/SKILL.md +1 -3
- package/templates/.agents/skills/init-milestones/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/plan-task/SKILL.md +1 -5
- package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/refine-task/SKILL.md +38 -162
- package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +36 -158
- package/templates/.agents/skills/refine-task/reference/fix-workflow.md +76 -0
- package/templates/.agents/skills/refine-task/reference/fix-workflow.zh-CN.md +76 -0
- package/templates/.agents/skills/refine-task/reference/report-template.md +38 -0
- package/templates/.agents/skills/refine-task/reference/report-template.zh-CN.md +38 -0
- package/templates/.agents/skills/refine-title/SKILL.md +1 -4
- package/templates/.agents/skills/refine-title/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/release/SKILL.md +10 -12
- package/templates/.agents/skills/release/SKILL.zh-CN.md +10 -11
- package/templates/.agents/skills/review-task/SKILL.md +37 -239
- package/templates/.agents/skills/review-task/SKILL.zh-CN.md +37 -238
- package/templates/.agents/skills/review-task/reference/output-templates.md +72 -0
- package/templates/.agents/skills/review-task/reference/output-templates.zh-CN.md +72 -0
- package/templates/.agents/skills/review-task/reference/report-template.md +63 -0
- package/templates/.agents/skills/review-task/reference/report-template.zh-CN.md +63 -0
- package/templates/.agents/skills/review-task/reference/review-criteria.md +24 -0
- package/templates/.agents/skills/review-task/reference/review-criteria.zh-CN.md +24 -0
- package/templates/.agents/skills/sync-issue/SKILL.md +29 -487
- package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +30 -487
- package/templates/.agents/skills/sync-issue/reference/comment-publish.md +88 -0
- package/templates/.agents/skills/sync-issue/reference/comment-publish.zh-CN.md +88 -0
- package/templates/.agents/skills/sync-issue/reference/delivery-detection.md +42 -0
- package/templates/.agents/skills/sync-issue/reference/delivery-detection.zh-CN.md +42 -0
- package/templates/.agents/skills/sync-issue/reference/label-sync.md +63 -0
- package/templates/.agents/skills/sync-issue/reference/label-sync.zh-CN.md +63 -0
- package/templates/.agents/skills/sync-issue/reference/milestone-sync.md +37 -0
- package/templates/.agents/skills/sync-issue/reference/milestone-sync.zh-CN.md +37 -0
- package/templates/.agents/skills/sync-pr/SKILL.md +25 -287
- package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +29 -291
- package/templates/.agents/skills/sync-pr/reference/comment-publish.md +82 -0
- package/templates/.agents/skills/sync-pr/reference/comment-publish.zh-CN.md +82 -0
- package/templates/.agents/skills/sync-pr/reference/delivery-detection.md +54 -0
- package/templates/.agents/skills/sync-pr/reference/delivery-detection.zh-CN.md +54 -0
- package/templates/.agents/skills/test/SKILL.md +1 -3
- package/templates/.agents/skills/test/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/test-integration/SKILL.md +1 -4
- package/templates/.agents/skills/test-integration/SKILL.zh-CN.md +1 -3
- package/templates/.agents/skills/update-agent-infra/SKILL.md +2 -6
- package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +2 -4
- package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +42 -46
- package/templates/.agents/skills/upgrade-dependency/SKILL.md +1 -4
- package/templates/.agents/skills/upgrade-dependency/SKILL.zh-CN.md +1 -3
- package/templates/.claude/CLAUDE.md +13 -51
- package/templates/.claude/CLAUDE.zh-CN.md +13 -51
- package/templates/.claude/commands/analyze-task.md +1 -1
- package/templates/.claude/commands/analyze-task.zh-CN.md +1 -1
- package/templates/.claude/commands/block-task.md +2 -1
- package/templates/.claude/commands/block-task.zh-CN.md +2 -1
- package/templates/.claude/commands/check-task.md +2 -1
- package/templates/.claude/commands/check-task.zh-CN.md +2 -1
- package/templates/.claude/commands/close-codescan.md +2 -1
- package/templates/.claude/commands/close-codescan.zh-CN.md +2 -1
- package/templates/.claude/commands/close-dependabot.md +2 -1
- package/templates/.claude/commands/close-dependabot.zh-CN.md +2 -1
- package/templates/.claude/commands/commit.md +1 -1
- package/templates/.claude/commands/commit.zh-CN.md +1 -1
- package/templates/.claude/commands/complete-task.md +1 -1
- package/templates/.claude/commands/complete-task.zh-CN.md +1 -1
- package/templates/.claude/commands/create-issue.md +1 -1
- package/templates/.claude/commands/create-issue.zh-CN.md +1 -1
- package/templates/.claude/commands/create-pr.md +1 -1
- package/templates/.claude/commands/create-pr.zh-CN.md +1 -1
- package/templates/.claude/commands/create-release-note.md +2 -1
- package/templates/.claude/commands/create-release-note.zh-CN.md +2 -1
- package/templates/.claude/commands/create-task.md +1 -1
- package/templates/.claude/commands/create-task.zh-CN.md +1 -1
- package/templates/.claude/commands/implement-task.md +1 -1
- package/templates/.claude/commands/implement-task.zh-CN.md +1 -1
- package/templates/.claude/commands/import-codescan.md +1 -0
- package/templates/.claude/commands/import-codescan.zh-CN.md +2 -1
- package/templates/.claude/commands/import-dependabot.md +1 -0
- package/templates/.claude/commands/import-dependabot.zh-CN.md +2 -1
- package/templates/.claude/commands/import-issue.md +1 -1
- package/templates/.claude/commands/import-issue.zh-CN.md +1 -1
- package/templates/.claude/commands/init-labels.md +1 -0
- package/templates/.claude/commands/init-labels.zh-CN.md +2 -1
- package/templates/.claude/commands/init-milestones.md +2 -1
- package/templates/.claude/commands/init-milestones.zh-CN.md +2 -1
- package/templates/.claude/commands/plan-task.md +1 -1
- package/templates/.claude/commands/plan-task.zh-CN.md +1 -1
- package/templates/.claude/commands/refine-task.zh-CN.md +1 -1
- package/templates/.claude/commands/refine-title.md +2 -1
- package/templates/.claude/commands/refine-title.zh-CN.md +2 -1
- package/templates/.claude/commands/release.md +2 -1
- package/templates/.claude/commands/release.zh-CN.md +2 -1
- package/templates/.claude/commands/review-task.md +1 -1
- package/templates/.claude/commands/review-task.zh-CN.md +1 -1
- package/templates/.claude/commands/sync-issue.md +1 -1
- package/templates/.claude/commands/sync-issue.zh-CN.md +1 -1
- package/templates/.claude/commands/sync-pr.md +1 -1
- package/templates/.claude/commands/sync-pr.zh-CN.md +1 -1
- package/templates/.claude/commands/test-integration.md +2 -1
- package/templates/.claude/commands/test-integration.zh-CN.md +2 -1
- package/templates/.claude/commands/test.md +1 -1
- package/templates/.claude/commands/test.zh-CN.md +1 -1
- package/templates/.claude/commands/update-agent-infra.md +2 -1
- package/templates/.claude/commands/update-agent-infra.zh-CN.md +2 -1
- package/templates/.claude/commands/upgrade-dependency.md +2 -1
- package/templates/.claude/commands/upgrade-dependency.zh-CN.md +2 -1
- package/templates/.gemini/commands/_project_/analyze-task.toml +1 -1
- package/templates/.gemini/commands/_project_/analyze-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/block-task.toml +1 -1
- package/templates/.gemini/commands/_project_/block-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/check-task.toml +1 -1
- package/templates/.gemini/commands/_project_/check-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/close-codescan.toml +1 -1
- package/templates/.gemini/commands/_project_/close-codescan.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/close-dependabot.toml +1 -1
- package/templates/.gemini/commands/_project_/close-dependabot.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/commit.toml +1 -1
- package/templates/.gemini/commands/_project_/commit.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/complete-task.toml +1 -1
- package/templates/.gemini/commands/_project_/complete-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/create-issue.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/create-pr.toml +1 -1
- package/templates/.gemini/commands/_project_/create-pr.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/create-release-note.toml +1 -1
- package/templates/.gemini/commands/_project_/create-release-note.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/create-task.toml +1 -1
- package/templates/.gemini/commands/_project_/create-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/implement-task.toml +1 -1
- package/templates/.gemini/commands/_project_/implement-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/import-codescan.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/import-dependabot.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/import-issue.toml +1 -1
- package/templates/.gemini/commands/_project_/import-issue.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/init-labels.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/init-milestones.toml +1 -1
- package/templates/.gemini/commands/_project_/init-milestones.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/plan-task.toml +1 -1
- package/templates/.gemini/commands/_project_/plan-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/refine-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/refine-title.toml +1 -1
- package/templates/.gemini/commands/_project_/refine-title.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/release.toml +1 -1
- package/templates/.gemini/commands/_project_/release.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/review-task.toml +1 -1
- package/templates/.gemini/commands/_project_/review-task.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/sync-issue.toml +1 -1
- package/templates/.gemini/commands/_project_/sync-issue.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/sync-pr.toml +1 -1
- package/templates/.gemini/commands/_project_/sync-pr.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/test-integration.toml +1 -1
- package/templates/.gemini/commands/_project_/test-integration.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/test.toml +1 -1
- package/templates/.gemini/commands/_project_/test.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/update-agent-infra.toml +1 -1
- package/templates/.gemini/commands/_project_/update-agent-infra.zh-CN.toml +1 -1
- package/templates/.gemini/commands/_project_/upgrade-dependency.toml +1 -1
- package/templates/.gemini/commands/_project_/upgrade-dependency.zh-CN.toml +1 -1
- package/templates/.github/hooks/check-version-format.sh +29 -0
- package/templates/.github/hooks/pre-commit +8 -0
- package/templates/.opencode/commands/analyze-task.md +1 -1
- package/templates/.opencode/commands/analyze-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/block-task.md +1 -1
- package/templates/.opencode/commands/block-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/check-task.md +1 -1
- package/templates/.opencode/commands/check-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/close-codescan.md +1 -1
- package/templates/.opencode/commands/close-codescan.zh-CN.md +1 -1
- package/templates/.opencode/commands/close-dependabot.md +1 -1
- package/templates/.opencode/commands/close-dependabot.zh-CN.md +1 -1
- package/templates/.opencode/commands/commit.md +1 -1
- package/templates/.opencode/commands/commit.zh-CN.md +1 -1
- package/templates/.opencode/commands/complete-task.md +1 -1
- package/templates/.opencode/commands/complete-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/create-issue.zh-CN.md +1 -1
- package/templates/.opencode/commands/create-pr.md +1 -1
- package/templates/.opencode/commands/create-pr.zh-CN.md +1 -1
- package/templates/.opencode/commands/create-release-note.md +1 -1
- package/templates/.opencode/commands/create-release-note.zh-CN.md +1 -1
- package/templates/.opencode/commands/create-task.md +1 -1
- package/templates/.opencode/commands/create-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/implement-task.md +1 -1
- package/templates/.opencode/commands/implement-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/import-codescan.zh-CN.md +1 -1
- package/templates/.opencode/commands/import-dependabot.zh-CN.md +1 -1
- package/templates/.opencode/commands/import-issue.md +1 -1
- package/templates/.opencode/commands/import-issue.zh-CN.md +1 -1
- package/templates/.opencode/commands/init-labels.zh-CN.md +1 -1
- package/templates/.opencode/commands/init-milestones.md +1 -1
- package/templates/.opencode/commands/init-milestones.zh-CN.md +1 -1
- package/templates/.opencode/commands/plan-task.md +1 -1
- package/templates/.opencode/commands/plan-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/refine-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/refine-title.md +1 -1
- package/templates/.opencode/commands/refine-title.zh-CN.md +1 -1
- package/templates/.opencode/commands/release.md +1 -1
- package/templates/.opencode/commands/release.zh-CN.md +1 -1
- package/templates/.opencode/commands/review-task.md +1 -1
- package/templates/.opencode/commands/review-task.zh-CN.md +1 -1
- package/templates/.opencode/commands/sync-issue.md +1 -1
- package/templates/.opencode/commands/sync-issue.zh-CN.md +1 -1
- package/templates/.opencode/commands/sync-pr.md +1 -1
- package/templates/.opencode/commands/sync-pr.zh-CN.md +1 -1
- package/templates/.opencode/commands/test-integration.md +1 -1
- package/templates/.opencode/commands/test-integration.zh-CN.md +1 -1
- package/templates/.opencode/commands/test.md +1 -1
- package/templates/.opencode/commands/test.zh-CN.md +1 -1
- package/templates/.opencode/commands/update-agent-infra.md +1 -1
- package/templates/.opencode/commands/update-agent-infra.zh-CN.md +1 -1
- package/templates/.opencode/commands/upgrade-dependency.md +1 -1
- package/templates/.opencode/commands/upgrade-dependency.zh-CN.md +1 -1
- package/templates/AGENTS.md +10 -2
- package/templates/AGENTS.zh-CN.md +10 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Implementation Rules
|
|
2
|
+
|
|
3
|
+
Read this file before coding or interpreting test failures.
|
|
4
|
+
|
|
5
|
+
## Execute Code Implementation
|
|
6
|
+
|
|
7
|
+
Follow the `implementation` step in `.agents/workflows/feature-development.yaml`.
|
|
8
|
+
|
|
9
|
+
**Required tasks**:
|
|
10
|
+
- [ ] implement the feature code according to the plan
|
|
11
|
+
- [ ] write comprehensive unit tests
|
|
12
|
+
- [ ] run tests locally to validate the feature
|
|
13
|
+
- [ ] update related documentation and comments
|
|
14
|
+
- [ ] follow project coding standards
|
|
15
|
+
|
|
16
|
+
**Implementation principles**:
|
|
17
|
+
1. **Follow the plan strictly**: do not deviate from the technical plan
|
|
18
|
+
2. **Work step by step**: execute the planned sequence
|
|
19
|
+
3. **Keep testing continuously**: re-run tests as work progresses
|
|
20
|
+
4. **Keep it simple**: do not add unplanned features
|
|
21
|
+
|
|
22
|
+
## Run Test Verification
|
|
23
|
+
|
|
24
|
+
Run the project test command. Refer to the `test` skill for project-specific commands.
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# See .agents/skills/test/SKILL.md for the project's test command
|
|
28
|
+
# Common patterns:
|
|
29
|
+
# npm test (Node.js)
|
|
30
|
+
# mvn test (Maven)
|
|
31
|
+
# pytest (Python)
|
|
32
|
+
# go test ./... (Go)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
If tests fail:
|
|
36
|
+
- analyze the failure first and prioritize fixing issues introduced by this implementation
|
|
37
|
+
- re-run tests after each fix until they pass, or confirm that the problem is an external blocker
|
|
38
|
+
- only stop without producing the implementation artifact when the failure is caused by an external blocker, missing environment, or unclear requirement that cannot be resolved inside the task
|
|
39
|
+
|
|
40
|
+
Two-way failure handling:
|
|
41
|
+
1. implementation-caused failures:
|
|
42
|
+
- fix the code, tests, docs, or fixtures introduced by this implementation
|
|
43
|
+
- re-run the test command after each fix
|
|
44
|
+
- continue until all required tests pass
|
|
45
|
+
2. external blockers:
|
|
46
|
+
- confirm the failure comes from missing environment, unrelated upstream breakage, or unclear requirements outside this task
|
|
47
|
+
- stop without creating `implementation.md` / `implementation-r{N}.md`
|
|
48
|
+
- do not mark implementation complete in `task.md`
|
|
49
|
+
- do not output the normal success/next-step template
|
|
50
|
+
|
|
51
|
+
## Notes
|
|
52
|
+
|
|
53
|
+
1. **Prerequisite**: the approved technical plan must exist (`plan.md` or `plan-r{N}.md`)
|
|
54
|
+
2. **No auto-commit**: do not run `git commit` or `git add`
|
|
55
|
+
3. **Test quality**: new tests must validate meaningful business logic
|
|
56
|
+
4. **Code quality**: follow project coding conventions
|
|
57
|
+
5. **Plan deviation**: record any deviation in the implementation report
|
|
58
|
+
6. **Versioning**: Round 1 uses `implementation.md`; later rounds use `implementation-r{N}.md`
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# 实现规则
|
|
2
|
+
|
|
3
|
+
在编写代码或判断测试失败原因之前先读取本文件。
|
|
4
|
+
|
|
5
|
+
## 执行代码实现
|
|
6
|
+
|
|
7
|
+
遵循 `.agents/workflows/feature-development.yaml` 中的 `implementation` 步骤。
|
|
8
|
+
|
|
9
|
+
**必做任务**:
|
|
10
|
+
- [ ] 按计划实现功能代码
|
|
11
|
+
- [ ] 编写完整的单元测试
|
|
12
|
+
- [ ] 在本地运行测试验证功能
|
|
13
|
+
- [ ] 更新相关文档和注释
|
|
14
|
+
- [ ] 遵守项目编码规范
|
|
15
|
+
|
|
16
|
+
**实现原则**:
|
|
17
|
+
1. **严格遵循方案**:不要偏离技术方案
|
|
18
|
+
2. **按步骤推进**:按计划顺序执行
|
|
19
|
+
3. **持续测试**:实现过程中持续重新运行测试
|
|
20
|
+
4. **保持简单**:不要加入未计划的功能
|
|
21
|
+
|
|
22
|
+
## 运行测试验证
|
|
23
|
+
|
|
24
|
+
运行项目测试命令。项目特定命令请参考 `test` skill。
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# 参考 .agents/skills/test/SKILL.md 中的项目测试命令
|
|
28
|
+
# 常见模式:
|
|
29
|
+
# npm test (Node.js)
|
|
30
|
+
# mvn test (Maven)
|
|
31
|
+
# pytest (Python)
|
|
32
|
+
# go test ./... (Go)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
如果测试失败:
|
|
36
|
+
- 先分析失败原因,并优先修复由本次实现引入的问题
|
|
37
|
+
- 每次修复后重新运行测试,直到通过,或者确认问题属于外部阻塞
|
|
38
|
+
- 只有当失败由外部阻塞、环境缺失或当前任务内无法澄清的需求问题导致时,才允许在不生成实现产物的情况下停止
|
|
39
|
+
|
|
40
|
+
双分支失败处理:
|
|
41
|
+
1. 本次实现引入的失败:
|
|
42
|
+
- 修复由本次实现引入的代码、测试、文档或 fixture 问题
|
|
43
|
+
- 每次修复后重新运行测试命令
|
|
44
|
+
- 持续处理直到所有必需测试通过
|
|
45
|
+
2. 外部阻塞:
|
|
46
|
+
- 确认失败来自缺失环境、无关的上游损坏,或任务范围外的需求不明确
|
|
47
|
+
- 停止,并且不要创建 `implementation.md` / `implementation-r{N}.md`
|
|
48
|
+
- 不要在 `task.md` 中把实现标记为完成
|
|
49
|
+
- 不要输出正常的成功/下一步模板
|
|
50
|
+
|
|
51
|
+
## 注意事项
|
|
52
|
+
|
|
53
|
+
1. **前置条件**:必须存在已批准的技术方案(`plan.md` 或 `plan-r{N}.md`)
|
|
54
|
+
2. **禁止自动提交**:不要执行 `git commit` 或 `git add`
|
|
55
|
+
3. **测试质量**:新增测试必须验证有意义的业务逻辑
|
|
56
|
+
4. **代码质量**:遵循项目编码规范
|
|
57
|
+
5. **方案偏离**:任何偏离都要记录到实现报告中
|
|
58
|
+
6. **版本命名**:Round 1 使用 `implementation.md`,后续轮次使用 `implementation-r{N}.md`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Implementation Report Template
|
|
2
|
+
|
|
3
|
+
Use this structure when creating `implementation.md` or `implementation-r{N}.md`.
|
|
4
|
+
|
|
5
|
+
## Output Template
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Implementation Report
|
|
9
|
+
|
|
10
|
+
- **Implementation Round**: Round {implementation-round}
|
|
11
|
+
- **Artifact File**: `{implementation-artifact}`
|
|
12
|
+
|
|
13
|
+
## Modified Files
|
|
14
|
+
|
|
15
|
+
### New Files
|
|
16
|
+
- `{file-path}` - {description}
|
|
17
|
+
|
|
18
|
+
### Modified Files
|
|
19
|
+
- `{file-path}` - {change summary}
|
|
20
|
+
|
|
21
|
+
## Key Code Explanation
|
|
22
|
+
|
|
23
|
+
### {Module/Feature Name}
|
|
24
|
+
**File**: `{file-path}:{line-number}`
|
|
25
|
+
|
|
26
|
+
**Implementation Logic**:
|
|
27
|
+
{important logic summary}
|
|
28
|
+
|
|
29
|
+
**Key Code**:
|
|
30
|
+
```{language}
|
|
31
|
+
{key-code-snippet}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Test Results
|
|
35
|
+
|
|
36
|
+
### Unit Tests
|
|
37
|
+
- Test file: `{test-file-path}`
|
|
38
|
+
- Test case count: {count}
|
|
39
|
+
- Pass rate: {percentage}
|
|
40
|
+
|
|
41
|
+
**Test Output**:
|
|
42
|
+
```
|
|
43
|
+
{test-run-output}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Differences from Plan
|
|
47
|
+
|
|
48
|
+
{describe any deviation from the approved plan}
|
|
49
|
+
|
|
50
|
+
## Items for Review
|
|
51
|
+
|
|
52
|
+
**Focus areas for reviewers**:
|
|
53
|
+
- {item 1}
|
|
54
|
+
- {item 2}
|
|
55
|
+
|
|
56
|
+
## Known Issues
|
|
57
|
+
|
|
58
|
+
{known issues or follow-up ideas}
|
|
59
|
+
|
|
60
|
+
## Next Steps
|
|
61
|
+
|
|
62
|
+
{recommended follow-up}
|
|
63
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# 实现报告模板
|
|
2
|
+
|
|
3
|
+
创建 `implementation.md` 或 `implementation-r{N}.md` 时,使用以下结构。
|
|
4
|
+
|
|
5
|
+
## 输出模板
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# 实现报告
|
|
9
|
+
|
|
10
|
+
- **实现轮次**: Round {implementation-round}
|
|
11
|
+
- **产物文件**: `{implementation-artifact}`
|
|
12
|
+
|
|
13
|
+
## 变更文件
|
|
14
|
+
|
|
15
|
+
### 新建文件
|
|
16
|
+
- `{file-path}` - {description}
|
|
17
|
+
|
|
18
|
+
### 修改文件
|
|
19
|
+
- `{file-path}` - {change summary}
|
|
20
|
+
|
|
21
|
+
## 关键代码说明
|
|
22
|
+
|
|
23
|
+
### {模块/功能名称}
|
|
24
|
+
**文件**: `{file-path}:{line-number}`
|
|
25
|
+
|
|
26
|
+
**实现逻辑**:
|
|
27
|
+
{important logic summary}
|
|
28
|
+
|
|
29
|
+
**关键代码**:
|
|
30
|
+
```{language}
|
|
31
|
+
{key-code-snippet}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## 测试结果
|
|
35
|
+
|
|
36
|
+
### 单元测试
|
|
37
|
+
- 测试文件: `{test-file-path}`
|
|
38
|
+
- 测试用例数: {count}
|
|
39
|
+
- 通过率: {percentage}
|
|
40
|
+
|
|
41
|
+
**测试输出**:
|
|
42
|
+
```
|
|
43
|
+
{test-run-output}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 与方案的差异
|
|
47
|
+
|
|
48
|
+
{describe any deviation from the approved plan}
|
|
49
|
+
|
|
50
|
+
## 供审查关注的内容
|
|
51
|
+
|
|
52
|
+
**建议审查者重点关注**:
|
|
53
|
+
- {item 1}
|
|
54
|
+
- {item 2}
|
|
55
|
+
|
|
56
|
+
## 已知问题
|
|
57
|
+
|
|
58
|
+
{known issues or follow-up ideas}
|
|
59
|
+
|
|
60
|
+
## 下一步
|
|
61
|
+
|
|
62
|
+
{recommended follow-up}
|
|
63
|
+
```
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: import-codescan
|
|
3
|
-
description:
|
|
4
|
-
Import a Code Scanning (CodeQL) alert and create a remediation task.
|
|
5
|
-
Triggered when the user asks to import a Code Scanning alert.
|
|
6
|
-
Argument: alert number.
|
|
3
|
+
description: "Import a Code Scanning alert and create a remediation task"
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# Import Code Scanning Alert
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: import-dependabot
|
|
3
|
-
description:
|
|
4
|
-
Import a Dependabot security alert and create a remediation task.
|
|
5
|
-
Triggered when the user asks to import a Dependabot alert.
|
|
6
|
-
Argument: alert number.
|
|
3
|
+
description: "Import a Dependabot alert and create a remediation task"
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# Import Dependabot Security Alert
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: init-labels
|
|
3
|
-
description:
|
|
4
|
-
Initialize the repository's standard GitHub Labels taxonomy in one pass.
|
|
5
|
-
Create the common labels, auto-detect `in:` labels from the project structure,
|
|
6
|
-
do not create `theme:` labels, overwrite exact-match GitHub defaults, and report unmatched defaults.
|
|
3
|
+
description: "Initialize the repository's standard GitHub Labels taxonomy"
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# Initialize GitHub Labels
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: init-milestones
|
|
3
|
-
description:
|
|
4
|
-
Initialize the repository's standard GitHub Milestones taxonomy in one pass.
|
|
5
|
-
Create General Backlog, the initial milestones derived from the current version baseline, and optionally backfill historical milestones.
|
|
3
|
+
description: "Initialize the repository's standard GitHub Milestones taxonomy"
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Initialize GitHub Milestones
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: plan-task
|
|
3
|
-
description:
|
|
4
|
-
Design a technical plan for a task and output a detailed implementation
|
|
5
|
-
plan. Triggered when the user asks for a design or technical plan after
|
|
6
|
-
requirements analysis is complete. This is a mandatory human review
|
|
7
|
-
checkpoint. Argument: task-id.
|
|
3
|
+
description: "Design a technical plan for a task"
|
|
8
4
|
---
|
|
9
5
|
|
|
10
6
|
# Design Technical Plan
|
|
@@ -1,94 +1,52 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: refine-task
|
|
3
|
-
description:
|
|
4
|
-
Process code review feedback and fix the issues found in review. Fix items by
|
|
5
|
-
priority (Blocker -> Major -> Minor). Only handle issues explicitly marked in
|
|
6
|
-
the review; do not add unrelated changes. Triggered when the user asks to fix
|
|
7
|
-
review findings. Argument: task-id.
|
|
3
|
+
description: "Handle code review feedback and fix issues"
|
|
8
4
|
---
|
|
9
5
|
|
|
10
|
-
# Refine
|
|
6
|
+
# Refine Task
|
|
7
|
+
|
|
8
|
+
Fix review findings and produce `refinement.md` or `refinement-r{N}.md`.
|
|
11
9
|
|
|
12
10
|
## Boundary / Critical Rules
|
|
13
11
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
- After executing this skill, you **must** immediately update task
|
|
12
|
+
- Fix only the issues documented in review artifacts
|
|
13
|
+
- Never auto-run `git add` or `git commit`
|
|
14
|
+
- After executing this skill, you **must** immediately update task.md
|
|
17
15
|
|
|
18
16
|
## Steps
|
|
19
17
|
|
|
20
18
|
### 1. Verify Prerequisites
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
- `.agents/workspace/active/{task-id}/task.md`
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
Note: `{task-id}` format is `TASK-{yyyyMMdd-HHmmss}`, for example `TASK-20260306-143022`
|
|
27
|
-
|
|
28
|
-
If `task.md` is missing or there is no review artifact, prompt the user to complete the prerequisite step first.
|
|
20
|
+
Require:
|
|
21
|
+
- `.agents/workspace/active/{task-id}/task.md`
|
|
22
|
+
- at least one review artifact: `review.md` or `review-r{N}.md`
|
|
29
23
|
|
|
30
|
-
|
|
31
|
-
1. Scan review artifact files in the task directory (`review.md`, `review-r{N}.md`)
|
|
32
|
-
2. Use the highest-round review artifact as the input for this refinement round and record it as `{review-artifact}`
|
|
33
|
-
3. Scan refinement artifact files (`refinement.md`, `refinement-r{N}.md`) and determine the current refinement artifact:
|
|
34
|
-
- If neither `refinement.md` nor `refinement-r*.md` exists -> this is Round 1 and must create `refinement.md`
|
|
35
|
-
- If `refinement.md` exists and no `refinement-r*.md` exists -> this is Round 2 and must create `refinement-r2.md`
|
|
36
|
-
- If `refinement-r{N}.md` exists -> this is Round N+1 and must create `refinement-r{N+1}.md`
|
|
37
|
-
- Record `{refinement-round}` and `{refinement-artifact}`
|
|
38
|
-
4. Scan implementation report files (`implementation.md`, `implementation-r{N}.md`) and use the highest-round artifact as the implementation context `{implementation-artifact}`
|
|
39
|
-
- Record `{implementation-artifact}`
|
|
40
|
-
5. **Consistency check**: verify that the most recent Code Review entry in `task.md` `## Activity Log` matches the round number and filename of the latest review artifact found in Step 2
|
|
24
|
+
During prerequisite discovery, record `{review-artifact}`, `{refinement-round}`, `{refinement-artifact}`, and Record `{implementation-artifact}` from the latest implementation report.
|
|
41
25
|
|
|
42
|
-
|
|
26
|
+
Also validate the latest Code Review entry in Activity Log. If it points to a missing file, stop with:
|
|
43
27
|
`Review artifact mismatch: Activity Log references {expected} but file not found. Please verify the review artifact exists.`
|
|
44
28
|
|
|
45
29
|
### 2. Read Review and Implementation Context
|
|
46
30
|
|
|
47
|
-
|
|
48
|
-
- All blockers (must fix)
|
|
49
|
-
- All major issues (should fix)
|
|
50
|
-
- Minor issues (optional improvements)
|
|
51
|
-
- Reviewer recommendations and suggestions
|
|
52
|
-
- The context of the current implementation and previous refinements
|
|
53
|
-
|
|
54
|
-
### 3. Plan the Fixes
|
|
55
|
-
|
|
56
|
-
Classify and prioritize:
|
|
57
|
-
1. **Blockers first**: all blockers must be resolved
|
|
58
|
-
2. **Then major issues**: handle all major issues
|
|
59
|
-
3. **Finally minor issues**: fix if appropriate (optional)
|
|
31
|
+
Read the latest `{review-artifact}` and `{implementation-artifact}` before editing any code.
|
|
60
32
|
|
|
61
|
-
|
|
62
|
-
- Which files need to be modified
|
|
63
|
-
- What exact change is required
|
|
64
|
-
- How to verify the fix
|
|
33
|
+
### 3. Plan and Apply the Fixes
|
|
65
34
|
|
|
66
|
-
|
|
35
|
+
Prioritize Blocker -> Major -> Minor and keep changes tightly scoped.
|
|
67
36
|
|
|
68
|
-
|
|
37
|
+
> The detailed fix workflow, repair order, and verification loop live in `reference/fix-workflow.md`. Read `reference/fix-workflow.md` before making changes.
|
|
69
38
|
|
|
70
|
-
|
|
71
|
-
1. Read the affected file
|
|
72
|
-
2. Apply the fix
|
|
73
|
-
3. Verify that the change resolves the review finding
|
|
74
|
-
4. Run relevant tests
|
|
39
|
+
### 4. Run Test Verification
|
|
75
40
|
|
|
76
|
-
|
|
77
|
-
- Only fix marked review issues -- do not add unrelated changes
|
|
78
|
-
- Do not add extra "improvements" beyond the scope of the review
|
|
79
|
-
- Keep the changes minimal and focused
|
|
41
|
+
Run the project test command after the fixes and keep the repair cycle focused on the documented findings.
|
|
80
42
|
|
|
81
|
-
### 5.
|
|
82
|
-
|
|
83
|
-
Execute the project's test command. Reference the `test` skill for the project-specific test command.
|
|
84
|
-
|
|
85
|
-
Ensure all tests still pass after the fixes.
|
|
86
|
-
|
|
87
|
-
### 6. Create Refinement Report
|
|
43
|
+
### 5. Write the Refinement Report
|
|
88
44
|
|
|
89
45
|
Create `.agents/workspace/active/{task-id}/{refinement-artifact}`.
|
|
90
46
|
|
|
91
|
-
|
|
47
|
+
> The report structure and example sections live in `reference/report-template.md`. Read `reference/report-template.md` before writing the report.
|
|
48
|
+
|
|
49
|
+
### 6. Update Task Status
|
|
92
50
|
|
|
93
51
|
Get the current time:
|
|
94
52
|
|
|
@@ -96,115 +54,33 @@ Get the current time:
|
|
|
96
54
|
date "+%Y-%m-%d %H:%M:%S"
|
|
97
55
|
```
|
|
98
56
|
|
|
99
|
-
Update
|
|
100
|
-
-
|
|
101
|
-
- `assigned_to`: {current AI agent}
|
|
102
|
-
- `updated_at`: {current time}
|
|
103
|
-
- Record the refinement artifact for this round: `{refinement-artifact}` (Round `{refinement-round}`)
|
|
104
|
-
- **Append** to `## Activity Log` (do NOT overwrite previous entries):
|
|
105
|
-
```
|
|
106
|
-
- {yyyy-MM-dd HH:mm:ss} — **Refinement (Round {N}, for {review-artifact})** by {agent} — Fixed {n} blockers, {n} major, {n} minor issues → {refinement-artifact}
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### 8. Inform User
|
|
110
|
-
|
|
111
|
-
> **IMPORTANT**: All TUI command formats listed below must be output in full. Do not show only the format for the current AI agent.
|
|
112
|
-
|
|
113
|
-
> **⚠️ CONDITION CHECK — before showing the two next steps below, you must judge the result of this refinement round first:**
|
|
114
|
-
>
|
|
115
|
-
> - If this round fixed any `Blocker` or `Major` issue, or the changes touched core logic or test scope broadly, **default recommendation** is "Run review again"
|
|
116
|
-
> - If this round fixed only `Minor` issues and the change scope is small and low-risk, "Commit directly" may be offered as an option
|
|
117
|
-
> - If any `Blocker` or `Major` issue remains unresolved, **do not** imply that direct commit is acceptable; explicitly tell the user to continue fixing or re-run review
|
|
118
|
-
>
|
|
119
|
-
> **Do not present "Commit directly" as the default path unless you are sure no high-risk issue remains.**
|
|
120
|
-
|
|
121
|
-
Output format:
|
|
122
|
-
```
|
|
123
|
-
Refinement complete for task {task-id}.
|
|
124
|
-
|
|
125
|
-
Fix summary:
|
|
126
|
-
- Blockers fixed: {count}/{total}
|
|
127
|
-
- Major issues fixed: {count}/{total}
|
|
128
|
-
- Minor issues fixed: {count}/{total}
|
|
129
|
-
- All tests passing: {yes/no}
|
|
130
|
-
- Review input: {review-artifact}
|
|
131
|
-
- Refinement artifact: {refinement-artifact}
|
|
132
|
-
|
|
133
|
-
Next step - re-review or commit:
|
|
134
|
-
- Run review again (default recommendation; prioritize this after Blocker/Major fixes):
|
|
135
|
-
- Claude Code / OpenCode: /review-task {task-id}
|
|
136
|
-
- Gemini CLI: /{{project}}:review-task {task-id}
|
|
137
|
-
- Codex CLI: $review-task {task-id}
|
|
138
|
-
- Commit directly (only when only Minor issues were fixed and risk is low):
|
|
139
|
-
- Claude Code / OpenCode: /commit
|
|
140
|
-
- Gemini CLI: /{{project}}:commit
|
|
141
|
-
- Codex CLI: $commit
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
## Output Template
|
|
145
|
-
|
|
146
|
-
```markdown
|
|
147
|
-
# Refinement Report
|
|
148
|
-
|
|
149
|
-
- **Refinement round**: Round {refinement-round}
|
|
150
|
-
- **Artifact file**: `{refinement-artifact}`
|
|
151
|
-
- **Review input**: `{review-artifact}`
|
|
152
|
-
- **Implementation context**: `{implementation-artifact}`
|
|
153
|
-
|
|
154
|
-
### Review Feedback Handling
|
|
57
|
+
Update task.md and append:
|
|
58
|
+
`- {yyyy-MM-dd HH:mm:ss} — **Refinement (Round {N}, for {review-artifact})** by {agent} — Fixed {n} blockers, {n} major, {n} minor issues → {refinement-artifact}`
|
|
155
59
|
|
|
156
|
-
|
|
157
|
-
1. **{Issue title}** (from {review-artifact})
|
|
158
|
-
- **Fix**: {What changed}
|
|
159
|
-
- **File**: `{file-path}:{line-number}`
|
|
160
|
-
- **Validation**: {How it was verified}
|
|
60
|
+
### 7. Inform User
|
|
161
61
|
|
|
162
|
-
|
|
163
|
-
1. **{Issue title}** (from {review-artifact})
|
|
164
|
-
- **Fix**: {What changed}
|
|
165
|
-
- **File**: `{file-path}:{line-number}`
|
|
166
|
-
|
|
167
|
-
#### Minor Issue Handling
|
|
168
|
-
1. **{Issue title}** (from {review-artifact})
|
|
169
|
-
- **Fix**: {What changed}
|
|
170
|
-
|
|
171
|
-
#### Unresolved Issues
|
|
172
|
-
- {Issue}: {Reason it was not handled, for example disagreement with the review suggestion}
|
|
173
|
-
|
|
174
|
-
### Test Results After Refinement
|
|
175
|
-
- All tests passing: {yes/no}
|
|
176
|
-
- Test output: {Summary}
|
|
177
|
-
```
|
|
62
|
+
Recommend re-review by default when Blocker or Major issues were fixed. Only present direct commit as a low-risk option when the changes are truly minor.
|
|
178
63
|
|
|
179
64
|
## Completion Checklist
|
|
180
65
|
|
|
181
|
-
- [ ] Read
|
|
182
|
-
- [ ] Fixed all
|
|
183
|
-
- [ ]
|
|
184
|
-
- [ ]
|
|
185
|
-
- [ ]
|
|
186
|
-
- [ ] Created refinement report `{refinement-artifact}`
|
|
187
|
-
- [ ] Updated task status in task.md
|
|
188
|
-
- [ ] Appended an Activity Log entry to task.md
|
|
189
|
-
- [ ] Informed the user of the next step (must include all TUI command formats without filtering)
|
|
66
|
+
- [ ] Read the latest review and implementation context
|
|
67
|
+
- [ ] Fixed all required Blocker and Major findings
|
|
68
|
+
- [ ] Wrote `{refinement-artifact}`
|
|
69
|
+
- [ ] Updated task.md and appended the Activity Log entry
|
|
70
|
+
- [ ] Recommended the correct next step based on residual risk
|
|
190
71
|
|
|
191
72
|
## Notes
|
|
192
73
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
4. **Disagreement**: If you disagree with a review finding, record your reasoning in "Unresolved Issues"
|
|
197
|
-
5. **Re-review**: After fixing blockers, re-run `review-task` to validate the result
|
|
198
|
-
6. **Consistency requirement**: The latest review artifact, Activity Log entry, and refinement report title must all reference the same review round
|
|
199
|
-
7. **Versioning rule**: First refinement uses `refinement.md`; later rounds use `refinement-r{N}.md`
|
|
74
|
+
- Round 1 uses `refinement.md`; later rounds use `refinement-r{N}.md`
|
|
75
|
+
- Record any disagreement with a review comment under unresolved issues in the report
|
|
76
|
+
- Do not expand scope beyond the review findings
|
|
200
77
|
|
|
201
78
|
## STOP
|
|
202
79
|
|
|
203
|
-
|
|
80
|
+
Stop after the checklist is complete.
|
|
204
81
|
|
|
205
82
|
## Error Handling
|
|
206
83
|
|
|
207
|
-
- Task not found:
|
|
208
|
-
- Missing review report:
|
|
209
|
-
- Review artifact mismatch:
|
|
210
|
-
- Test failure after fixes: Output the test errors and ask the user how to proceed
|
|
84
|
+
- Task not found: `Task {task-id} not found`
|
|
85
|
+
- Missing review report: `Review report not found, please run the review-task skill first`
|
|
86
|
+
- Review artifact mismatch: `Review artifact mismatch: Activity Log references {expected} but file not found. Please verify the review artifact exists.`
|