@fitlab-ai/agent-infra 0.4.0 → 0.4.2
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 +23 -15
- package/README.zh-CN.md +23 -15
- package/lib/defaults.json +5 -9
- package/lib/init.js +1 -6
- package/lib/update.js +0 -55
- package/package.json +1 -1
- package/templates/.agents/QUICKSTART.md +17 -7
- package/templates/.agents/QUICKSTART.zh-CN.md +23 -13
- package/templates/.agents/README.md +33 -27
- package/templates/.agents/README.zh-CN.md +35 -29
- 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 +39 -221
- package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +39 -220
- 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 +2 -5
- package/templates/.agents/skills/create-task/SKILL.zh-CN.md +2 -4
- package/templates/.agents/skills/implement-task/SKILL.md +47 -176
- package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +43 -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 +2 -3
- package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +2 -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 +40 -162
- package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +38 -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 +34 -490
- package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +34 -489
- package/templates/.agents/skills/sync-issue/reference/comment-publish.md +84 -0
- package/templates/.agents/skills/sync-issue/reference/comment-publish.zh-CN.md +84 -0
- package/templates/.agents/skills/sync-issue/reference/label-sync.md +62 -0
- package/templates/.agents/skills/sync-issue/reference/label-sync.zh-CN.md +62 -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 +37 -284
- package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +41 -288
- 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 +45 -55
- 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/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 +2 -2
- package/templates/.claude/commands/create-pr.zh-CN.md +2 -2
- 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 +2 -2
- package/templates/.claude/commands/sync-pr.zh-CN.md +2 -2
- 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 +2 -2
- package/templates/.gemini/commands/_project_/sync-pr.zh-CN.toml +2 -2
- 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 +2 -2
- package/templates/.opencode/commands/sync-pr.zh-CN.md +2 -2
- 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/.claude/CLAUDE.md +0 -176
- package/templates/.claude/CLAUDE.zh-CN.md +0 -176
- package/templates/.claude/project-rules.md +0 -65
- package/templates/.claude/project-rules.zh-CN.md +0 -65
- package/templates/.codex/README.md +0 -38
- package/templates/.codex/README.zh-CN.md +0 -37
- package/templates/.opencode/COMMAND_STYLE_GUIDE.md +0 -232
- package/templates/.opencode/COMMAND_STYLE_GUIDE.zh-CN.md +0 -232
- package/templates/.opencode/README.md +0 -76
- package/templates/.opencode/README.zh-CN.md +0 -77
- package/templates/AGENTS.md +0 -104
- package/templates/AGENTS.zh-CN.md +0 -104
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: create-release-note
|
|
3
|
-
description:
|
|
4
|
-
从 PR 和 commit 生成版本发布说明。
|
|
5
|
-
当用户要求生成发布说明时触发。参数:版本号,可选的上一版本号。
|
|
3
|
+
description: "从 PR 和 commit 生成版本发布说明"
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# 创建发布说明
|
|
@@ -11,13 +9,13 @@ description: >
|
|
|
11
9
|
|
|
12
10
|
## 执行流程
|
|
13
11
|
|
|
14
|
-
###
|
|
12
|
+
### 1. 解析参数
|
|
15
13
|
|
|
16
14
|
从参数中提取:
|
|
17
15
|
- `<version>`:当前发布版本(必需),格式 `X.Y.Z`
|
|
18
16
|
- `<prev-version>`:上一版本(可选),如未提供则自动检测
|
|
19
17
|
|
|
20
|
-
###
|
|
18
|
+
### 2. 确定版本范围
|
|
21
19
|
|
|
22
20
|
**当前标签**:`v<version>`
|
|
23
21
|
|
|
@@ -33,7 +31,7 @@ git rev-parse v<version>
|
|
|
33
31
|
git rev-parse v<prev-version>
|
|
34
32
|
```
|
|
35
33
|
|
|
36
|
-
###
|
|
34
|
+
### 3. 参考历史发布说明格式与分类
|
|
37
35
|
|
|
38
36
|
获取最近多条已发布的 Release Note 作为格式参考,并参考预定义的完整分类清单:
|
|
39
37
|
|
|
@@ -58,7 +56,7 @@ done
|
|
|
58
56
|
- 后续步骤 7 生成发布说明时,**必须**同时参考步骤 3 的历史格式风格和完整分类清单,保持版本间的一致性
|
|
59
57
|
- 如果没有历史发布说明,则使用步骤 7 中定义的默认格式
|
|
60
58
|
|
|
61
|
-
###
|
|
59
|
+
### 4. 收集已合并的 PR
|
|
62
60
|
|
|
63
61
|
获取标签之间的日期范围,然后查询已合并的 PR:
|
|
64
62
|
|
|
@@ -78,7 +76,7 @@ gh pr list --state merged --base <branch> \
|
|
|
78
76
|
git log v<prev-version>..v<version> --format="%H %s" --no-merges
|
|
79
77
|
```
|
|
80
78
|
|
|
81
|
-
###
|
|
79
|
+
### 5. 收集关联 Issue
|
|
82
80
|
|
|
83
81
|
从每个 PR body 中提取关联的 Issue:
|
|
84
82
|
- 匹配模式:`Closes #N`、`Fixes #N`、`Resolves #N`(不区分大小写)
|
|
@@ -87,7 +85,7 @@ git log v<prev-version>..v<version> --format="%H %s" --no-merges
|
|
|
87
85
|
gh issue view <N> --json number,title,labels,url
|
|
88
86
|
```
|
|
89
87
|
|
|
90
|
-
###
|
|
88
|
+
### 6. 分类变更
|
|
91
89
|
|
|
92
90
|
**按类型**(从 PR 标题的 Conventional Commit 前缀):
|
|
93
91
|
- `feat`、`perf`、`refactor`、依赖升级 -> Enhancement
|
|
@@ -98,7 +96,7 @@ gh issue view <N> --json number,title,labels,url
|
|
|
98
96
|
- 从 PR 标题中的方括号 `[module]` 或 Conventional scope `feat(module):` 推断模块
|
|
99
97
|
- 兜底:分析变更的文件
|
|
100
98
|
|
|
101
|
-
###
|
|
99
|
+
### 7. 生成发布说明
|
|
102
100
|
|
|
103
101
|
**优先使用步骤 3 中获取的历史格式风格,并确保覆盖步骤 3 列出的所有分类。** 如果存在历史发布说明,严格沿用其章节结构、标题风格(含 emoji)、条目格式和双语布局。
|
|
104
102
|
|
|
@@ -127,7 +125,7 @@ gh issue view <N> --json number,title,labels,url
|
|
|
127
125
|
4. 贡献者:去重,按贡献数量降序排列
|
|
128
126
|
5. 空部分:省略没有条目的部分
|
|
129
127
|
|
|
130
|
-
###
|
|
128
|
+
### 8. 展示并确认
|
|
131
129
|
|
|
132
130
|
向用户展示生成的发布说明。
|
|
133
131
|
|
|
@@ -135,7 +133,7 @@ gh issue view <N> --json number,title,labels,url
|
|
|
135
133
|
1. 需要调整吗?
|
|
136
134
|
2. 是否创建 GitHub Draft Release?
|
|
137
135
|
|
|
138
|
-
###
|
|
136
|
+
### 9. 创建 Draft Release(如确认)
|
|
139
137
|
|
|
140
138
|
```bash
|
|
141
139
|
gh release create v<version> \
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: create-task
|
|
3
|
-
description:
|
|
4
|
-
Create a task skeleton from the user's natural-language description.
|
|
5
|
-
Triggered when the user describes a new feature, bug, or improvement request.
|
|
6
|
-
The only output is task.md; do not write any business code. Argument: task description text.
|
|
3
|
+
description: "Create a task from a natural-language description"
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# Create Task
|
|
@@ -27,7 +24,7 @@ After executing this skill, you **must** immediately update task status in task.
|
|
|
27
24
|
### 1. Parse the User Description
|
|
28
25
|
|
|
29
26
|
Extract from the natural-language description:
|
|
30
|
-
- **Task title**: a concise title (maximum 50 characters)
|
|
27
|
+
- **Task title**: a concise title (maximum 50 characters), in the same language as the user's description
|
|
31
28
|
- **Task type**: `feature` | `bugfix` | `refactor` | `docs` | `chore` (infer from the description)
|
|
32
29
|
- **Workflow**: `feature-development` | `bug-fix` | `refactoring` (infer from the type)
|
|
33
30
|
- **Detailed description**: the cleaned-up original user request
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: create-task
|
|
3
|
-
description:
|
|
4
|
-
根据用户的自然语言描述创建任务骨架。当用户描述一个新功能、Bug 或改进需求时触发。
|
|
5
|
-
唯一的产出是 task.md —— 不编写任何业务代码。参数:任务描述文本。
|
|
3
|
+
description: "根据自然语言描述创建任务"
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# 创建任务
|
|
@@ -26,7 +24,7 @@ description: >
|
|
|
26
24
|
### 1. 解析用户描述
|
|
27
25
|
|
|
28
26
|
从自然语言描述中提取:
|
|
29
|
-
- **任务标题**:简洁标题(最多 50
|
|
27
|
+
- **任务标题**:简洁标题(最多 50 个字符),使用与用户描述相同的语言
|
|
30
28
|
- **任务类型**:`feature` | `bugfix` | `refactor` | `docs` | `chore`(从描述推断)
|
|
31
29
|
- **工作流**:`feature-development` | `bug-fix` | `refactoring`(从类型推断)
|
|
32
30
|
- **详细描述**:整理后的用户原始描述
|
|
@@ -1,104 +1,63 @@
|
|
|
1
1
|
---
|
|
2
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.
|
|
3
|
+
description: "Implement a task from its technical plan and output a report"
|
|
8
4
|
---
|
|
9
5
|
|
|
10
6
|
# Implement Task
|
|
11
7
|
|
|
8
|
+
Implement the approved task and produce `implementation.md` or `implementation-r{N}.md`.
|
|
9
|
+
|
|
12
10
|
## Boundary / Critical Rules
|
|
13
11
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- After executing this skill, you **must** immediately update task
|
|
12
|
+
- Follow the latest approved plan artifact: `plan.md` or `plan-r{N}.md`
|
|
13
|
+
- Never auto-run `git add` or `git commit`
|
|
14
|
+
- Create a new implementation artifact for each round and never overwrite an older one
|
|
15
|
+
- After executing this skill, you **must** immediately update task.md
|
|
18
16
|
|
|
19
17
|
## Steps
|
|
20
18
|
|
|
21
19
|
### 1. Verify Prerequisites
|
|
22
20
|
|
|
23
|
-
Check
|
|
24
|
-
- `.agents/workspace/active/{task-id}/task.md`
|
|
21
|
+
Check these files first:
|
|
22
|
+
- `.agents/workspace/active/{task-id}/task.md`
|
|
25
23
|
- At least one technical plan artifact: `plan.md` or `plan-r{N}.md`
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
If either file is missing, prompt the user to complete the prerequisite step first.
|
|
25
|
+
If either file is missing, stop and ask the user to complete the prerequisite step.
|
|
30
26
|
|
|
31
27
|
### 2. Determine the Input Plan and Implementation Round
|
|
32
28
|
|
|
33
|
-
Scan `.agents/workspace/active/{task-id}/`
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
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`.
|
|
29
|
+
Scan `.agents/workspace/active/{task-id}/` and record:
|
|
30
|
+
- the highest-round plan file as `{plan-artifact}`
|
|
31
|
+
- the next implementation artifact as `implementation.md` or `implementation-r{N}.md`
|
|
32
|
+
- `{implementation-round}` and `{implementation-artifact}`
|
|
47
33
|
|
|
48
|
-
|
|
34
|
+
If any `plan-r{N}.md` exists, read the highest-round plan file. Otherwise read `plan.md`.
|
|
49
35
|
|
|
50
|
-
|
|
51
|
-
- Technical approach and solution strategy
|
|
52
|
-
- Detailed implementation steps
|
|
53
|
-
- Files to create/modify
|
|
54
|
-
- Test strategy
|
|
55
|
-
- Any constraints or risks
|
|
36
|
+
### 3. Read the Technical Plan
|
|
56
37
|
|
|
57
|
-
|
|
38
|
+
Read `{plan-artifact}` carefully and extract:
|
|
39
|
+
- implementation steps
|
|
40
|
+
- files to create or modify
|
|
41
|
+
- test strategy
|
|
42
|
+
- constraints, risks, and any approved tradeoffs
|
|
58
43
|
|
|
59
|
-
|
|
44
|
+
### 4. Implement the Code
|
|
60
45
|
|
|
61
|
-
|
|
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)
|
|
46
|
+
Follow `.agents/workflows/feature-development.yaml` and the plan in order.
|
|
67
47
|
|
|
68
|
-
|
|
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
|
|
48
|
+
> Detailed implementation rules, testing discipline, and deviation handling live in `reference/implementation-rules.md`. Read `reference/implementation-rules.md` before executing this step.
|
|
73
49
|
|
|
74
50
|
### 5. Run Test Verification
|
|
75
51
|
|
|
76
|
-
|
|
52
|
+
Use the project test command from the `test` skill and keep iterating until all required tests pass.
|
|
77
53
|
|
|
78
|
-
|
|
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
|
-
If tests fail:
|
|
88
|
-
- Analyze the failure first, and prioritize fixing problems introduced by the current implementation, plus any test or documentation updates required to match the approved plan
|
|
89
|
-
- Re-run the tests after each fix until they pass, or until you confirm the remaining issue is an external blocker outside the current task scope
|
|
90
|
-
- Only stop when the failure is blocked by external dependencies, missing environment, or unclear requirements that cannot be resolved within the task; in that case, report the blocker and do not create the implementation report, update task.md as implementation-complete, or output the Step 8 completion template
|
|
54
|
+
If tests fail, Attempt to fix the issue and re-run tests first. Only stop when you confirm an external blocker, missing environment, or unclear requirement that is out of scope for the task.
|
|
91
55
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
### 6. Output Implementation Report
|
|
56
|
+
### 6. Write the Implementation Report
|
|
95
57
|
|
|
96
58
|
Create `.agents/workspace/active/{task-id}/{implementation-artifact}`.
|
|
97
59
|
|
|
98
|
-
|
|
99
|
-
- Do not overwrite any existing implementation report
|
|
100
|
-
- Record the actual round number and artifact filename in the report
|
|
101
|
-
- If this is a re-implementation round, explain what triggered it
|
|
60
|
+
> Report structure, required sections, and the full template live in `reference/report-template.md`. Read `reference/report-template.md` before writing the report.
|
|
102
61
|
|
|
103
62
|
### 7. Update Task Status
|
|
104
63
|
|
|
@@ -110,125 +69,37 @@ date "+%Y-%m-%d %H:%M:%S"
|
|
|
110
69
|
|
|
111
70
|
Update `.agents/workspace/active/{task-id}/task.md`:
|
|
112
71
|
- `current_step`: implementation
|
|
113
|
-
- `assigned_to`: {current
|
|
72
|
+
- `assigned_to`: {current agent}
|
|
114
73
|
- `updated_at`: {current time}
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
|
|
119
|
-
- {yyyy-MM-dd HH:mm:ss} — **Implementation (Round {N})** by {agent} — Code implemented, {n} files modified, {n} tests passed → {artifact-filename}
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### 8. Inform User
|
|
123
|
-
|
|
124
|
-
> **IMPORTANT**: All TUI command formats listed below must be output in full. Do not show only the format for the current AI agent.
|
|
125
|
-
|
|
126
|
-
Output format:
|
|
127
|
-
```
|
|
128
|
-
Implementation complete for task {task-id}.
|
|
129
|
-
|
|
130
|
-
Summary:
|
|
131
|
-
- Modified files: {count}
|
|
132
|
-
- New files: {count}
|
|
133
|
-
- Tests passed: {count}/{total}
|
|
134
|
-
|
|
135
|
-
Output file:
|
|
136
|
-
- Implementation report: .agents/workspace/active/{task-id}/{implementation-artifact} (Round {implementation-round})
|
|
137
|
-
|
|
138
|
-
Next step - code review:
|
|
139
|
-
- Claude Code / OpenCode: /review-task {task-id}
|
|
140
|
-
- Gemini CLI: /{{project}}:review-task {task-id}
|
|
141
|
-
- Codex CLI: $review-task {task-id}
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
## Output Template
|
|
145
|
-
|
|
146
|
-
```markdown
|
|
147
|
-
# Implementation Report
|
|
148
|
-
|
|
149
|
-
- **Implementation round**: Round {implementation-round}
|
|
150
|
-
- **Artifact file**: `{implementation-artifact}`
|
|
74
|
+
- review the `## Requirements` section and only change items from `- [ ]` to `- [x]` when they are clearly satisfied by this round's implemented code and passing tests
|
|
75
|
+
- record `{implementation-artifact}` for Round `{implementation-round}`
|
|
76
|
+
- append:
|
|
77
|
+
`- {yyyy-MM-dd HH:mm:ss} — **Implementation (Round {N})** by {agent} — Code implemented, {n} files modified, {n} tests passed → {implementation-artifact}`
|
|
151
78
|
|
|
152
|
-
|
|
79
|
+
### 8. Inform the User
|
|
153
80
|
|
|
154
|
-
|
|
155
|
-
- `{file-path}` - {Description}
|
|
156
|
-
|
|
157
|
-
### Modified Files
|
|
158
|
-
- `{file-path}` - {Summary of changes}
|
|
159
|
-
|
|
160
|
-
## Key Code Explanation
|
|
161
|
-
|
|
162
|
-
### {Module/Feature Name}
|
|
163
|
-
**File**: `{file-path}:{line-number}`
|
|
164
|
-
|
|
165
|
-
**Implementation logic**:
|
|
166
|
-
{Explanation of important logic}
|
|
167
|
-
|
|
168
|
-
**Key code**:
|
|
169
|
-
```{language}
|
|
170
|
-
{Key code snippet}
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
## Test Results
|
|
174
|
-
|
|
175
|
-
### Unit Tests
|
|
176
|
-
- Test file: `{test-file-path}`
|
|
177
|
-
- Test cases: {count}
|
|
178
|
-
- Pass rate: {percentage}
|
|
179
|
-
|
|
180
|
-
**Test output**:
|
|
181
|
-
```
|
|
182
|
-
{Test run results}
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
## Differences from Plan
|
|
186
|
-
|
|
187
|
-
{If implementation differs from plan, explain why}
|
|
188
|
-
|
|
189
|
-
## Items for Review
|
|
190
|
-
|
|
191
|
-
**Points that need reviewer attention**:
|
|
192
|
-
- {Attention point 1}
|
|
193
|
-
- {Attention point 2}
|
|
194
|
-
|
|
195
|
-
## Known Issues
|
|
196
|
-
|
|
197
|
-
{Issues discovered during implementation or items to optimize later}
|
|
198
|
-
|
|
199
|
-
## Next Steps
|
|
200
|
-
|
|
201
|
-
{Suggestions for code review or follow-up work}
|
|
202
|
-
```
|
|
81
|
+
Output the implementation summary and include all TUI command variants for the next review step.
|
|
203
82
|
|
|
204
83
|
## Completion Checklist
|
|
205
84
|
|
|
206
|
-
- [ ]
|
|
207
|
-
- [ ] Created
|
|
208
|
-
- [ ] All tests
|
|
209
|
-
- [ ] Updated
|
|
210
|
-
- [ ]
|
|
211
|
-
- [ ] Updated `assigned_to` in task.md
|
|
212
|
-
- [ ] Appended entry to Activity Log in task.md
|
|
213
|
-
- [ ] Marked implementation as complete in workflow progress
|
|
214
|
-
- [ ] Informed user of next step (must include all TUI command formats — do not filter)
|
|
85
|
+
- [ ] Implemented the approved code changes
|
|
86
|
+
- [ ] Created `{implementation-artifact}`
|
|
87
|
+
- [ ] All required tests passed
|
|
88
|
+
- [ ] Updated task.md and appended the Activity Log entry
|
|
89
|
+
- [ ] Included every TUI command format in the user-facing next step
|
|
215
90
|
|
|
216
91
|
## STOP
|
|
217
92
|
|
|
218
|
-
|
|
93
|
+
Stop after the checklist is complete. Do not auto-commit.
|
|
219
94
|
|
|
220
95
|
## Notes
|
|
221
96
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
4. **Code quality**: Follow project coding standards
|
|
226
|
-
5. **Plan deviation**: If you need to deviate from the plan, document the reason in the implementation report
|
|
227
|
-
6. **Versioning rule**: First-round implementation uses `implementation.md`; later re-implementations use `implementation-r{N}.md`
|
|
97
|
+
- Round 1 uses `implementation.md`; later rounds use `implementation-r{N}.md`
|
|
98
|
+
- Record any deviation from `{plan-artifact}` in the report
|
|
99
|
+
- New tests must validate meaningful business behavior, not just passthrough data
|
|
228
100
|
|
|
229
101
|
## Error Handling
|
|
230
102
|
|
|
231
|
-
- Task not found:
|
|
232
|
-
- Missing plan:
|
|
233
|
-
- Test failure
|
|
234
|
-
- Build failure: Output build errors, stop implementation
|
|
103
|
+
- Task not found: `Task {task-id} not found`
|
|
104
|
+
- Missing plan: `Technical plan not found, please run the plan-task skill first`
|
|
105
|
+
- Test failure after local fixes: explain the external blocker and stop without creating the implementation artifact
|