@givolt/i3-composer-agent 2.1.1 → 2.2.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.
Files changed (220) hide show
  1. package/.agents/plugins/marketplace.json +2 -2
  2. package/.claude/commands/i3-build.md +13 -1
  3. package/.claude/commands/i3-code-simplify.md +13 -1
  4. package/.claude/commands/i3-constraints.md +13 -1
  5. package/.claude/commands/i3-plan.md +13 -1
  6. package/.claude/commands/i3-review.md +13 -1
  7. package/.claude/commands/i3-ship.md +18 -2
  8. package/.claude/commands/i3-spec.md +13 -1
  9. package/.claude/commands/i3-test.md +13 -1
  10. package/.claude/commands/i3-webperf.md +13 -1
  11. package/.claude-plugin/marketplace.json +3 -3
  12. package/.claude-plugin/plugin.json +2 -2
  13. package/.codex-plugin/plugin.json +7 -6
  14. package/.gemini/commands/i3-build.toml +13 -1
  15. package/.gemini/commands/i3-code-simplify.toml +13 -1
  16. package/.gemini/commands/i3-constraints.toml +13 -1
  17. package/.gemini/commands/i3-planning.toml +13 -1
  18. package/.gemini/commands/i3-review.toml +13 -1
  19. package/.gemini/commands/i3-ship.toml +13 -1
  20. package/.gemini/commands/i3-spec.toml +13 -1
  21. package/.gemini/commands/i3-test.toml +13 -1
  22. package/.gemini/commands/i3-webperf.toml +13 -1
  23. package/README.md +141 -109
  24. package/agents/code-reviewer.md +13 -1
  25. package/agents/security-auditor.md +13 -1
  26. package/agents/test-engineer.md +13 -1
  27. package/agents/web-performance-auditor.md +13 -1
  28. package/bin/asset-fingerprint.cjs +1 -0
  29. package/bin/i3-composer-agent.cjs +58 -52
  30. package/bin/install.cjs +42 -19
  31. package/bin/native-content.cjs +27 -17
  32. package/bin/tool-menu.cjs +9 -0
  33. package/bin/tool-selector.cjs +164 -0
  34. package/bin/wizard.cjs +19 -30
  35. package/commands/i3-build.toml +13 -1
  36. package/commands/i3-code-simplify.toml +13 -1
  37. package/commands/i3-constraints.toml +13 -1
  38. package/commands/i3-planning.toml +13 -1
  39. package/commands/i3-review.toml +13 -1
  40. package/commands/i3-ship.toml +13 -1
  41. package/commands/i3-spec.toml +13 -1
  42. package/commands/i3-test.toml +13 -1
  43. package/commands/i3-webperf.toml +13 -1
  44. package/docs/adoption-guide.md +8 -0
  45. package/docs/agents.md +8 -0
  46. package/docs/antigravity-setup.md +8 -0
  47. package/docs/codebuddy-setup.md +31 -62
  48. package/docs/codex-setup.md +18 -29
  49. package/docs/commandcode-setup.md +8 -0
  50. package/docs/copilot-cli-setup.md +8 -0
  51. package/docs/copilot-setup.md +8 -0
  52. package/docs/cursor-setup.md +8 -0
  53. package/docs/gemini-cli-setup.md +8 -0
  54. package/docs/getting-started.md +8 -0
  55. package/docs/opencode-setup.md +8 -0
  56. package/docs/other-hosts.md +8 -0
  57. package/docs/windsurf-setup.md +8 -0
  58. package/docs/workbuddy-setup.md +41 -65
  59. package/evals/README.md +86 -0
  60. package/evals/cases/i3-api-and-interface-design.json +45 -0
  61. package/evals/cases/i3-browser-testing-with-devtools.json +44 -0
  62. package/evals/cases/i3-ci-cd-and-automation.json +45 -0
  63. package/evals/cases/i3-code-review-and-quality.json +49 -0
  64. package/evals/cases/i3-code-simplification.json +45 -0
  65. package/evals/cases/i3-constraint-driven-development.json +79 -0
  66. package/evals/cases/i3-context-engineering.json +44 -0
  67. package/evals/cases/i3-debugging-and-error-recovery.json +58 -0
  68. package/evals/cases/i3-deprecation-and-migration.json +52 -0
  69. package/evals/cases/i3-documentation-and-adrs.json +44 -0
  70. package/evals/cases/i3-doubt-driven-development.json +43 -0
  71. package/evals/cases/i3-frontend-ui-engineering.json +52 -0
  72. package/evals/cases/i3-git-workflow-and-versioning.json +47 -0
  73. package/evals/cases/i3-idea-refine.json +43 -0
  74. package/evals/cases/i3-incremental-implementation.json +57 -0
  75. package/evals/cases/i3-interview-me.json +42 -0
  76. package/evals/cases/i3-observability-and-instrumentation.json +44 -0
  77. package/evals/cases/i3-performance-optimization.json +53 -0
  78. package/evals/cases/i3-planning-and-task-breakdown.json +45 -0
  79. package/evals/cases/i3-security-and-hardening.json +53 -0
  80. package/evals/cases/i3-shipping-and-launch.json +56 -0
  81. package/evals/cases/i3-source-driven-development.json +44 -0
  82. package/evals/cases/i3-spec-driven-development.json +72 -0
  83. package/evals/cases/i3-test-driven-development.json +73 -0
  84. package/evals/cases/i3-using-agent-skills.json +44 -0
  85. package/evals/fixtures/i3-api-and-interface-design/service-brief.md +19 -0
  86. package/evals/fixtures/i3-browser-testing-with-devtools/README.md +5 -0
  87. package/evals/fixtures/i3-browser-testing-with-devtools/index.html +24 -0
  88. package/evals/fixtures/i3-browser-testing-with-devtools/server.js +15 -0
  89. package/evals/fixtures/i3-ci-cd-and-automation/package.json +8 -0
  90. package/evals/fixtures/i3-ci-cd-and-automation/src/slug.js +3 -0
  91. package/evals/fixtures/i3-ci-cd-and-automation/test/slug.test.js +9 -0
  92. package/evals/fixtures/i3-code-review-and-quality/user-search.diff +16 -0
  93. package/evals/fixtures/i3-code-simplification/config-parser.js +46 -0
  94. package/evals/fixtures/i3-code-simplification/config-parser.test.js +15 -0
  95. package/evals/fixtures/i3-context-engineering/context-audit.md +15 -0
  96. package/evals/fixtures/i3-debugging-and-error-recovery/pagination.js +8 -0
  97. package/evals/fixtures/i3-debugging-and-error-recovery/pagination.test.js +9 -0
  98. package/evals/fixtures/i3-debugging-and-error-recovery/time-pressure.md +6 -0
  99. package/evals/fixtures/i3-deprecation-and-migration/api-inventory.md +9 -0
  100. package/evals/fixtures/i3-documentation-and-adrs/decision-context.md +16 -0
  101. package/evals/fixtures/i3-doubt-driven-development/migration-plan.md +19 -0
  102. package/evals/fixtures/i3-frontend-ui-engineering/Button.tsx +7 -0
  103. package/evals/fixtures/i3-frontend-ui-engineering/design-system.md +11 -0
  104. package/evals/fixtures/i3-git-workflow-and-versioning/.eval/working-tree.patch +21 -0
  105. package/evals/fixtures/i3-git-workflow-and-versioning/app.js +7 -0
  106. package/evals/fixtures/i3-git-workflow-and-versioning/app.test.js +9 -0
  107. package/evals/fixtures/i3-incremental-implementation/reports.js +7 -0
  108. package/evals/fixtures/i3-incremental-implementation/reports.test.js +12 -0
  109. package/evals/fixtures/i3-incremental-implementation/tasks/plan.md +8 -0
  110. package/evals/fixtures/i3-observability-and-instrumentation/operations.md +11 -0
  111. package/evals/fixtures/i3-observability-and-instrumentation/payment-retry.js +14 -0
  112. package/evals/fixtures/i3-performance-optimization/benchmark.js +15 -0
  113. package/evals/fixtures/i3-performance-optimization/products.js +14 -0
  114. package/evals/fixtures/i3-planning-and-task-breakdown/notifications-spec.md +18 -0
  115. package/evals/fixtures/i3-security-and-hardening/webhook.js +11 -0
  116. package/evals/fixtures/i3-security-and-hardening/webhook.test.js +13 -0
  117. package/evals/fixtures/i3-shipping-and-launch/authority-pressure.md +6 -0
  118. package/evals/fixtures/i3-shipping-and-launch/launch-status.md +11 -0
  119. package/evals/fixtures/i3-source-driven-development/framework-task.md +10 -0
  120. package/evals/fixtures/i3-spec-driven-development/billing-brief.md +16 -0
  121. package/evals/fixtures/i3-test-driven-development/BUG.md +10 -0
  122. package/evals/fixtures/i3-test-driven-development/README.md +28 -0
  123. package/evals/fixtures/i3-test-driven-development/package.json +9 -0
  124. package/evals/fixtures/i3-test-driven-development/src/split.js +8 -0
  125. package/evals/fixtures/i3-test-driven-development/test/split.test.js +13 -0
  126. package/evals/fixtures/i3-using-agent-skills/incident.md +6 -0
  127. package/evals/fixtures/incremental-implementation-pressure/draft-export.js +17 -0
  128. package/evals/fixtures/incremental-implementation-pressure/scenario.md +9 -0
  129. package/evals/fixtures/spec-driven-development-decomposition/portal-brief.md +22 -0
  130. package/evals/fixtures/test-driven-development-ecosystem/README.md +9 -0
  131. package/evals/fixtures/test-driven-development-ecosystem/ledger.py +15 -0
  132. package/evals/fixtures/test-driven-development-ecosystem/test_ledger.py +19 -0
  133. package/evals/plugin/code-review-fires/graders/off-by-one.md +7 -0
  134. package/evals/plugin/code-review-fires/graders/severity-labels.md +4 -0
  135. package/evals/plugin/code-review-fires/graders/skill-fired.md +5 -0
  136. package/evals/plugin/code-review-fires/prompt.md +31 -0
  137. package/evals/plugin/code-review-stays-quiet/graders/not-fired.md +8 -0
  138. package/evals/plugin/code-review-stays-quiet/graders/tdd-fired.md +6 -0
  139. package/evals/plugin/code-review-stays-quiet/prompt.md +8 -0
  140. package/evals/plugin/code-review-stays-quiet-on-commit-message/graders/not-fired.md +8 -0
  141. package/evals/plugin/code-review-stays-quiet-on-commit-message/prompt.md +25 -0
  142. package/evals/zh-CN/cases/i3-api-and-interface-design.json +46 -0
  143. package/evals/zh-CN/cases/i3-browser-testing-with-devtools.json +45 -0
  144. package/evals/zh-CN/cases/i3-ci-cd-and-automation.json +46 -0
  145. package/evals/zh-CN/cases/i3-code-review-and-quality.json +46 -0
  146. package/evals/zh-CN/cases/i3-code-simplification.json +46 -0
  147. package/evals/zh-CN/cases/i3-constraint-driven-development.json +70 -0
  148. package/evals/zh-CN/cases/i3-context-engineering.json +45 -0
  149. package/evals/zh-CN/cases/i3-debugging-and-error-recovery.json +60 -0
  150. package/evals/zh-CN/cases/i3-deprecation-and-migration.json +45 -0
  151. package/evals/zh-CN/cases/i3-documentation-and-adrs.json +45 -0
  152. package/evals/zh-CN/cases/i3-doubt-driven-development.json +45 -0
  153. package/evals/zh-CN/cases/i3-frontend-ui-engineering.json +45 -0
  154. package/evals/zh-CN/cases/i3-git-workflow-and-versioning.json +45 -0
  155. package/evals/zh-CN/cases/i3-idea-refine.json +44 -0
  156. package/evals/zh-CN/cases/i3-incremental-implementation.json +59 -0
  157. package/evals/zh-CN/cases/i3-interview-me.json +43 -0
  158. package/evals/zh-CN/cases/i3-observability-and-instrumentation.json +46 -0
  159. package/evals/zh-CN/cases/i3-performance-optimization.json +46 -0
  160. package/evals/zh-CN/cases/i3-planning-and-task-breakdown.json +46 -0
  161. package/evals/zh-CN/cases/i3-security-and-hardening.json +46 -0
  162. package/evals/zh-CN/cases/i3-shipping-and-launch.json +59 -0
  163. package/evals/zh-CN/cases/i3-source-driven-development.json +45 -0
  164. package/evals/zh-CN/cases/i3-spec-driven-development.json +62 -0
  165. package/evals/zh-CN/cases/i3-test-driven-development.json +76 -0
  166. package/evals/zh-CN/cases/i3-using-agent-skills.json +45 -0
  167. package/hooks/SDD-CACHE.md +8 -0
  168. package/hooks/SIMPLIFY-IGNORE.md +8 -0
  169. package/hooks/sdd-cache-pre.sh +5 -5
  170. package/hooks/session-start-test.sh +1 -1
  171. package/hooks/session-start.sh +3 -3
  172. package/hooks/simplify-ignore.sh +8 -8
  173. package/package.json +235 -6
  174. package/plugin.json +2 -2
  175. package/references/accessibility-checklist.md +8 -0
  176. package/references/definition-of-done.md +8 -0
  177. package/references/observability-checklist.md +8 -0
  178. package/references/orchestration-patterns.md +8 -0
  179. package/references/performance-checklist.md +8 -0
  180. package/references/security-checklist.md +8 -0
  181. package/references/testing-patterns.md +8 -0
  182. package/scripts/lib/skill-lint.js +586 -0
  183. package/scripts/run-evals.js +659 -0
  184. package/scripts/validate-artifact-paths.js +130 -0
  185. package/scripts/validate-commands.js +224 -0
  186. package/scripts/validate-reference-links.js +187 -0
  187. package/scripts/validate-skills.js +70 -0
  188. package/scripts/validate-versions.js +35 -0
  189. package/skills/i3-api-and-interface-design/SKILL.md +13 -1
  190. package/skills/i3-browser-testing-with-devtools/SKILL.md +13 -1
  191. package/skills/i3-ci-cd-and-automation/SKILL.md +13 -1
  192. package/skills/i3-code-review-and-quality/SKILL.md +13 -1
  193. package/skills/i3-code-simplification/SKILL.md +13 -1
  194. package/skills/i3-constraint-driven-development/SKILL.md +13 -1
  195. package/skills/i3-constraint-driven-development/references/floor-guard.md +8 -0
  196. package/skills/i3-context-engineering/SKILL.md +13 -1
  197. package/skills/i3-debugging-and-error-recovery/SKILL.md +13 -1
  198. package/skills/i3-deprecation-and-migration/SKILL.md +13 -1
  199. package/skills/i3-documentation-and-adrs/SKILL.md +13 -1
  200. package/skills/i3-doubt-driven-development/SKILL.md +13 -1
  201. package/skills/i3-frontend-ui-engineering/SKILL.md +13 -1
  202. package/skills/i3-git-workflow-and-versioning/SKILL.md +13 -1
  203. package/skills/i3-idea-refine/SKILL.md +13 -1
  204. package/skills/i3-idea-refine/examples.md +8 -0
  205. package/skills/i3-idea-refine/frameworks.md +8 -0
  206. package/skills/i3-idea-refine/refinement-criteria.md +8 -0
  207. package/skills/i3-idea-refine/scripts/idea-refine.sh +2 -2
  208. package/skills/i3-incremental-implementation/SKILL.md +13 -1
  209. package/skills/i3-interview-me/SKILL.md +13 -1
  210. package/skills/i3-observability-and-instrumentation/SKILL.md +13 -1
  211. package/skills/i3-performance-optimization/SKILL.md +13 -1
  212. package/skills/i3-performance-optimization/references/optimization-patterns.md +8 -0
  213. package/skills/i3-planning-and-task-breakdown/SKILL.md +13 -1
  214. package/skills/i3-security-and-hardening/SKILL.md +13 -1
  215. package/skills/i3-security-and-hardening/references/hardening-patterns.md +8 -0
  216. package/skills/i3-shipping-and-launch/SKILL.md +13 -1
  217. package/skills/i3-source-driven-development/SKILL.md +13 -1
  218. package/skills/i3-spec-driven-development/SKILL.md +13 -1
  219. package/skills/i3-test-driven-development/SKILL.md +13 -1
  220. package/skills/i3-using-agent-skills/SKILL.md +13 -1
@@ -1,5 +1,13 @@
1
1
  # OpenCode Setup
2
2
 
3
+ <!-- i3:zh-guide:start -->
4
+ ## 中文使用说明
5
+
6
+ 按下文完整工程步骤、检查项与验证条件执行。根据任务选择适用步骤,保留证据、风险和退出条件;正文示例中的英文标签在面向用户输出时译为中文。
7
+
8
+ 默认使用简体中文解释、追问及生成报告;用户明确要求其他语言时可切换。原方法正文、引用、阈值和审批条件完整保留。代码标识、路径、命令、工具参数、JSON 键/枚举与原文引用保持原样。
9
+ <!-- i3:zh-guide:end -->
10
+
3
11
  This guide explains how to use i3 Composer Agent with OpenCode. The reusable assets are the markdown skills in the `skills/` directory; the root `AGENTS.md` file in this repository is repo-scoped and should not be copied into other projects.
4
12
 
5
13
  ## Overview
@@ -1,5 +1,13 @@
1
1
  # Other hosts
2
2
 
3
+ <!-- i3:zh-guide:start -->
4
+ ## 中文使用说明
5
+
6
+ 按下文完整工程步骤、检查项与验证条件执行。根据任务选择适用步骤,保留证据、风险和退出条件;正文示例中的英文标签在面向用户输出时译为中文。
7
+
8
+ 默认使用简体中文解释、追问及生成报告;用户明确要求其他语言时可切换。原方法正文、引用、阈值和审批条件完整保留。代码标识、路径、命令、工具参数、JSON 键/枚举与原文引用保持原样。
9
+ <!-- i3:zh-guide:end -->
10
+
3
11
  These hosts install the pack but are not in the README's install section, because no maintainer has run the current release on them. Each entry is one line: the host and its install command. To add one, see [Adding a Host Guide](../CONTRIBUTING.md#adding-a-host-guide).
4
12
 
5
13
  Skills are plain `SKILL.md` folders, so any agent that reads the i3 Composer Agent layout can load them. See [getting-started.md](getting-started.md).
@@ -1,5 +1,13 @@
1
1
  # Using i3-composer-agent with Windsurf
2
2
 
3
+ <!-- i3:zh-guide:start -->
4
+ ## 中文使用说明
5
+
6
+ 按下文完整工程步骤、检查项与验证条件执行。根据任务选择适用步骤,保留证据、风险和退出条件;正文示例中的英文标签在面向用户输出时译为中文。
7
+
8
+ 默认使用简体中文解释、追问及生成报告;用户明确要求其他语言时可切换。原方法正文、引用、阈值和审批条件完整保留。代码标识、路径、命令、工具参数、JSON 键/枚举与原文引用保持原样。
9
+ <!-- i3:zh-guide:end -->
10
+
3
11
  ## Setup
4
12
 
5
13
  ### Project Rules
@@ -1,40 +1,35 @@
1
- # Using i3 Composer Agent with WorkBuddy
1
+ # 在 WorkBuddy 使用 i3 Composer Agent
2
2
 
3
- ## Recommended global installation
4
-
5
- Install WorkBuddy assets in its user configuration directory:
3
+ ## 推荐全局安装
6
4
 
7
5
  ```bash
8
6
  npx @givolt/i3-composer-agent --workbuddy --scope global
9
- ```
10
-
11
- The terminal wizard preselects WorkBuddy and confirms the global installation.
12
- For installation without prompts:
13
-
14
- ```bash
15
7
  npx @givolt/i3-composer-agent --workbuddy --scope global --yes
16
8
  npx @givolt/i3-composer-agent --agents codebuddy,workbuddy --scope global --yes
17
9
  ```
18
10
 
19
- Global WorkBuddy installation includes:
11
+ 向导中 WorkBuddy 位于第 2 项,预选后仍可多选。全局目录:
12
+
13
+ - `~/.workbuddy/skills/`:25 个 `i3-` 技能,选择说明和默认回复中文。
14
+ - `~/.workbuddy/commands/`:9 个 `/i3-*` 短命令。
15
+ - `~/.workbuddy/agents/`:4 个专业角色。
16
+ - `~/.workbuddy/references/`:共享参考和标准 MIT 许可。
17
+ - `~/.workbuddy/docs/agents.md`:角色说明。
18
+ - `~/.workbuddy/i3-composer-agent/`:完整评测、Hook、脚本及依赖资料。
19
+ - `~/.workbuddy/.i3-composer-agent.json`:安装内容所有权及客户端清单。
20
20
 
21
- - `~/.workbuddy/skills/`: all 25 Skills with their existing `i3-` IDs.
22
- - `~/.workbuddy/commands/`: all 9 short `/i3-*` workflows.
23
- - `~/.workbuddy/agents/`: all 4 Agents (role definitions).
24
- - `~/.workbuddy/references/`: shared references and the standard MIT license.
25
- - `~/.workbuddy/docs/agents.md`: Agent role documentation.
26
- - `~/.workbuddy/.i3-composer-agent.json`: managed asset and client records.
21
+ 自定义 profile 可设置 `WORKBUDDY_CONFIG_DIR`,安装后打开对应 profile。
22
+ WorkBuddy 的目录选择使用自己的配置,不借用 `CODEBUDDY_CONFIG_DIR`。
27
23
 
28
- If you use a separate WorkBuddy profile, set `WORKBUDDY_CONFIG_DIR` to its
29
- configuration directory when installing. The installer does not borrow
30
- `CODEBUDDY_CONFIG_DIR` for WorkBuddy. Open the corresponding profile in the host.
24
+ ## 配套检查
31
25
 
32
- ## Discovery and invocation
26
+ 进入 `~/.workbuddy/i3-composer-agent/` 运行 `npm test`,检查技能格式及中英文触发,
27
+ 不会调用模型。项目安装对应 `.codebuddy/i3-composer-agent/`。行为评测用例、样例和
28
+ 脚本用法见 [评测说明](../evals/README.md)。Hook 文件默认提供,启用需适配宿主事件协议。
33
29
 
34
- Open your project in WorkBuddy and start a new chat after installation. Type `/`
35
- to inspect Commands, and open the Skills list. Global installation resolves the
36
- desktop Skills list issue observed in WorkBuddy 5.7.7 and confirmed by user testing.
37
- Examples:
30
+ ## 发现和调用
31
+
32
+ 安装后新建会话,查看 Skills 列表并输入 `/` 查看命令:
38
33
 
39
34
  ```text
40
35
  /i3-spec
@@ -45,62 +40,43 @@ Examples:
45
40
  /i3-ship
46
41
  ```
47
42
 
48
- Commands invoke the installed Skill IDs without a plugin namespace. Native
49
- Buddy commands refer to `CODEBUDDY.md` and the installed persona directories.
50
- Shared project commands refer to the current host's user-level persona directory
51
- so they work for either client. `/i3-ship` uses native subagents when available
52
- and reads the installed persona prompts sequentially otherwise. Skill content,
53
- `$ARGUMENTS`, workflow approval gates, and relative reference links are retained.
54
-
55
- The [task-bar command documentation](https://www.codebuddy.cn/docs/workbuddy/From-Beginner-to-Expert-Guide/Function-Description/Task-Bar)
56
- describes command discovery, and the [CLI command documentation](https://www.codebuddy.cn/docs/cli/slash-commands)
57
- describes Markdown commands and `$ARGUMENTS`.
43
+ 命令调用安装的技能 ID,按 `CODEBUDDY.md` 与安装后的角色目录工作。
44
+ `/i3-ship` 支持时使用原生子代理并行审查,不可用时读取三个角色提示顺序执行,
45
+ 主会话汇总 GO/NO-GO 与必需回滚计划。保留参数、审批边界和相对参考链接。
58
46
 
59
- ## Project installation and mixed clients
47
+ ## 项目与多客户端
60
48
 
61
- | Selected clients | Project files | Global files |
49
+ | 选择 | 项目目录 | 全局目录 |
62
50
  | --- | --- | --- |
63
51
  | CodeBuddy | `.codebuddy/` | `~/.codebuddy/` |
64
- | WorkBuddy | `.codebuddy/` (desktop Skills list limitation) | `~/.workbuddy/` (recommended) |
65
- | CodeBuddy and WorkBuddy | One shared `.codebuddy/` installation | One installation in each client's directory |
66
-
67
- Project installation remains available for shared `.codebuddy/` assets. However,
68
- WorkBuddy 5.7.7 scans `.workbuddy/skills/` for its desktop Skills list, so Skills
69
- installed at `.codebuddy/skills/` do not appear there even though Commands are
70
- discoverable. The [WorkBuddy project documentation](https://www.codebuddy.cn/docs/workbuddy/From-Beginner-to-Expert-Guide/Function-Description/Project)
71
- describes `.codebuddy/` paths; that documentation does not establish desktop
72
- Skills list compatibility for this host version.
52
+ | WorkBuddy | `.codebuddy/` | `~/.workbuddy/`(推荐) |
53
+ | 两者 | 共用一次 `.codebuddy/` 安装 | 各自独立安装 |
73
54
 
74
- For CodeBuddy at project scope and WorkBuddy at global scope, run:
55
+ 已观察到 WorkBuddy 5.7.7 桌面 Skills 列表扫描 `.workbuddy/skills/`,
56
+ 所以项目安装的 `.codebuddy/skills/` 可能不显示,项目命令仍可发现。
57
+ 全局安装已由用户测试确认可发现技能。项目原有 `.workbuddy/` 设置保留。
58
+ 也可混合选择:
75
59
 
76
60
  ```bash
77
61
  npx @givolt/i3-composer-agent --codebuddy --scope project --yes
78
62
  npx @givolt/i3-composer-agent --workbuddy --scope global --yes
79
63
  ```
80
64
 
81
- Existing `.workbuddy/` project settings are preserved. A shared project
82
- installation may add `.codebuddy/`, so both directories can exist in a workspace.
83
-
84
- ## Adding a second client or upgrading
85
-
86
- When both clients use project scope, either can be installed first. Installing
87
- the other at the same package version and scope reuses unmodified manifest-owned
88
- files and merges the client IDs. It does not create a second project copy. Global
89
- installations remain independent. Missing files are restored;
90
- unrelated settings and custom command filenames are preserved.
65
+ ## 追加客户端与升级
91
66
 
92
- Review an upgrade or conflict before replacing files:
67
+ 同版本/范围的清单所属未修改内容复用,第二个客户端合并到清单,不建立第二份项目副本。
68
+ 缺失内容可恢复,设置与自定义命令文件名保留。升级或冲突可先查看:
93
69
 
94
70
  ```bash
95
71
  npx @givolt/i3-composer-agent --workbuddy --scope global --dry-run
96
72
  npx @givolt/i3-composer-agent --workbuddy --scope global --yes --force
97
73
  ```
98
74
 
99
- Modified assets, unowned filename collisions and different versions require
100
- confirmation or `--force`. Successful replacements remove old files and managed
101
- historical backups. If installation fails, the previous files are restored.
75
+ 升级、修改内容和未登记同名冲突需要确认;成功替换后清理旧文件与所属历史备份,失败恢复。
76
+ 原生安装同时提供 Skills、Commands、Agents 和完整 evals/hooks/scripts 配套。
77
+ `--prepare --workbuddy` 不支持,原生安装不会启用插件 Hook。
102
78
 
103
- Native installation provides Commands, Skills and Agent role definitions. It does not register
104
- a WorkBuddy plugin or enable plugin hooks; `--prepare --workbuddy` is unsupported.
105
- File installation and command discovery are separate from model execution and
106
- workflow acceptance in the host.
79
+ 可参照 [任务栏命令说明](https://www.codebuddy.cn/docs/workbuddy/From-Beginner-to-Expert-Guide/Function-Description/Task-Bar)、
80
+ [命令格式](https://www.codebuddy.cn/docs/cli/slash-commands) 和
81
+ [项目目录说明](https://www.codebuddy.cn/docs/workbuddy/From-Beginner-to-Expert-Guide/Function-Description/Project)。
82
+ 目录落盘、发现与模型行为分别验收。
@@ -0,0 +1,86 @@
1
+ # 技能评测与配套脚本
2
+
3
+ 本目录随默认安装、npm 包和插件导出一起提供,评测 i3 Composer Agent 技能的结构、
4
+ 触发与行为。评测不在安装时自动执行。它检查技能库自身,不能代替业务项目测试、
5
+ 宿主发现验证或真实模型验收。
6
+
7
+ ## 运行位置
8
+
9
+ 原生安装的完整配套目录是宿主目录下的 `i3-composer-agent/`。
10
+ 例如 CodeBuddy 项目安装为 `.codebuddy/i3-composer-agent/`,
11
+ WorkBuddy 全局安装为 `~/.workbuddy/i3-composer-agent/`。
12
+ 先进入该目录;若使用 `--prepare` / `--extract`,进入指定的导出目录。
13
+ 配套目录保留技能、命令、角色、参考资料和插件清单,保证校验及 Hook 的相对路径可解析。
14
+ 宿主实际使用的原生入口仍位于它自己的 `skills/`、`commands/`、`agents/`。
15
+
16
+ ## 不调用模型的检查
17
+
18
+ 需要 Node.js 20 或以上,无需额外 npm 依赖。
19
+
20
+ ```bash
21
+ # 技能格式、清单版本、三种命令格式一致性、引用与产物路径
22
+ npm run validate
23
+
24
+ # 中英文分别检查;省略 --locale 时检查两种语言
25
+ node scripts/run-evals.js --locale zh-CN --min-rank1 95
26
+ node scripts/run-evals.js --locale en --min-rank1 95
27
+
28
+ # 一次运行结构检查和中英文触发评测
29
+ npm test
30
+ ```
31
+
32
+ `scripts/` 包含 `run-evals.js`、五个 `validate-*.js` 和它们依赖的 `lib/skill-lint.js`。
33
+ `evals/cases/` 保留英文用例,`evals/zh-CN/cases/` 提供中文用例,
34
+ `evals/fixtures/` 是执行型评测使用的测试项目样例,`evals/plugin/` 是插件级评测用例。
35
+
36
+ 触发评测使用词法评分检查正例、负例、描述冲突、用例结构及样例是否齐全。
37
+ 中英文各自满足指定门槛;这不能证明模型在实际宿主中一定选择正确技能。
38
+ 失败时应调查技能描述或实现,不能为了通过检查降低门槛或删改失败用例。
39
+
40
+ ## 主动运行模型行为评测
41
+
42
+ 先预览,不调用模型、不生成评测结果:
43
+
44
+ ```bash
45
+ node scripts/run-evals.js --behavioral i3-test-driven-development --locale zh-CN --dry-run
46
+ ```
47
+
48
+ 确认需要后,移除 `--dry-run` 才会调用已登录的 Claude Code,并消耗该账户的模型额度:
49
+
50
+ ```bash
51
+ node scripts/run-evals.js --behavioral i3-test-driven-development --locale zh-CN
52
+ ```
53
+
54
+ 执行型用例需要 Git,并在临时 Git 项目中复制 `fixtures/` 的真实输入;
55
+ 对话型用例评估对话,不要求项目文件。执行器使用 `acceptEdits` 及明确的工具列表,
56
+ 可能编辑文件、运行命令、访问网络;各样例还可能需要自身的语言运行环境。
57
+ 评分依据执行轨迹或对话与 `expectations`,不会把“声称完成”当成实际执行证据。
58
+ 模型输出按不可信数据评分,执行和评分均有限时。临时项目完成后清理。
59
+
60
+ `--locale en` 运行英文用例,省略该参数运行两种语言。可通过 `I3_EVAL_MODEL`
61
+ 和 `I3_EVAL_GRADER_MODEL` 指定执行/评分模型;报告同时记录宿主和模型信息。
62
+ 结果写入 `evals/results/`,不会进入发行包,也不属于安装器的替换清单。
63
+
64
+ ## 插件级评测
65
+
66
+ 插件清单中的 `experimental.evals` 指向随包提供的 `evals/plugin/`。
67
+ 它包含整体插件的触发/不触发提示和评分规则;支持 `plugin eval` 的 Claude Code
68
+ 可从配套目录主动运行:
69
+
70
+ ```bash
71
+ claude plugin eval . --no-publish
72
+ ```
73
+
74
+ 该检查同样会调用模型;具体参数以当前 Claude Code 的帮助为准。
75
+ `--no-publish` 保持结果本地,报告写入 `evals/plugin/results/`。
76
+ 用是否触发、回答质量及对照结果一起判断效果;调用一次成功不能代替多次行为验收。
77
+
78
+ ## Hooks
79
+
80
+ `hooks/` 默认交付会话注入、文档缓存、代码块保护脚本及说明。
81
+ 安装文件不会自动注册事件。中文回复与普通技能调用不依赖启用 Hook。
82
+ 会话注入仅适用于缺少原生技能路由的宿主;已有路由时不要重复注入。
83
+ 缓存及保护的当前配置示例针对 Claude Code,详见
84
+ [文档缓存](../hooks/SDD-CACHE.md) 和 [代码块保护](../hooks/SIMPLIFY-IGNORE.md)。
85
+ 其他宿主须按各自事件协议适配。脚本需要 Bash、jq 及说明中的 curl/哈希工具;
86
+ Windows PowerShell 本身不提供这些依赖。
@@ -0,0 +1,45 @@
1
+ {
2
+ "skill_name": "i3-api-and-interface-design",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Design a REST endpoint for creating invoices, including error responses and versioning",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "What should the public interface of this payments module expose to other teams?",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "Help me define the contract between the frontend and the orders service",
15
+ "top_k": 3
16
+ }
17
+ ],
18
+ "negative": [
19
+ {
20
+ "prompt": "My unit test is failing with a null pointer exception",
21
+ "owner": "i3-debugging-and-error-recovery"
22
+ },
23
+ {
24
+ "prompt": "Make this landing page responsive on mobile",
25
+ "owner": "i3-frontend-ui-engineering"
26
+ }
27
+ ]
28
+ },
29
+ "evals": [
30
+ {
31
+ "id": 1,
32
+ "prompt": "Design the public API for a URL-shortening service: create, resolve, stats. Produce the endpoint contracts.",
33
+ "expected_output": "Endpoint contracts with methods, paths, request/response shapes, and explicit error semantics",
34
+ "files": [
35
+ "i3-api-and-interface-design"
36
+ ],
37
+ "expectations": [
38
+ "Error responses are specified with status codes and a consistent error shape, not just happy paths",
39
+ "Input validation at the boundary is addressed for user-supplied URLs",
40
+ "Versioning or compatibility strategy is stated",
41
+ "The response does not silently invent unstated requirements"
42
+ ]
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "skill_name": "i3-browser-testing-with-devtools",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Use Chrome DevTools to figure out why the checkout button click does nothing",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "Inspect the network requests the dashboard makes when it first loads",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "Verify in a real browser that the form submits and the data persists in localStorage",
15
+ "top_k": 3
16
+ }
17
+ ],
18
+ "negative": [
19
+ {
20
+ "prompt": "Write a spec for the new billing feature before we start",
21
+ "owner": "i3-spec-driven-development"
22
+ },
23
+ {
24
+ "prompt": "Break this PRD into ordered implementation tasks",
25
+ "owner": "i3-planning-and-task-breakdown"
26
+ }
27
+ ]
28
+ },
29
+ "evals": [
30
+ {
31
+ "id": 1,
32
+ "prompt": "The signup form renders but submitting it appears to do nothing. Verify the real behavior in the browser and report findings.",
33
+ "expected_output": "Runtime evidence from the browser: console errors, network activity, DOM state, and a diagnosis",
34
+ "files": [
35
+ "i3-browser-testing-with-devtools"
36
+ ],
37
+ "expectations": [
38
+ "Findings are grounded in observed runtime data (console, network, DOM), not static code reading alone",
39
+ "The report distinguishes what was observed from what is inferred",
40
+ "A concrete next step or fix hypothesis is provided"
41
+ ]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "skill_name": "i3-ci-cd-and-automation",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Set up a GitHub Actions pipeline that runs the tests on every pull request",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "Add a deploy stage to the pipeline with a manual approval gate",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "Automate the quality gates so nothing merges without passing checks",
15
+ "top_k": 3
16
+ }
17
+ ],
18
+ "negative": [
19
+ {
20
+ "prompt": "Refactor this function so it is easier to read",
21
+ "owner": "i3-code-simplification"
22
+ },
23
+ {
24
+ "prompt": "Add structured logging to the checkout service",
25
+ "owner": "i3-observability-and-instrumentation"
26
+ }
27
+ ]
28
+ },
29
+ "evals": [
30
+ {
31
+ "id": 1,
32
+ "prompt": "Create a CI pipeline for a Node project: install, lint, test on every PR, and block merge on failure.",
33
+ "expected_output": "A working workflow definition with correct triggers, steps, and failure behavior",
34
+ "files": [
35
+ "i3-ci-cd-and-automation"
36
+ ],
37
+ "expectations": [
38
+ "The workflow triggers on pull requests",
39
+ "Failure of any quality gate fails the pipeline run",
40
+ "Steps are ordered logically and cache or setup steps are sane",
41
+ "No secrets are hardcoded in the workflow"
42
+ ]
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "skill_name": "i3-code-review-and-quality",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Review this pull request before I merge it",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "Do a quality pass on this diff for correctness and readability",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "Can you review the changes another model just wrote for me?",
15
+ "top_k": 3
16
+ },
17
+ {
18
+ "prompt": "Review this diff before I merge it. It adds paging to the orders endpoint.",
19
+ "top_k": 3
20
+ }
21
+ ],
22
+ "negative": [
23
+ {
24
+ "prompt": "Deploy this to production now",
25
+ "owner": "i3-shipping-and-launch"
26
+ },
27
+ {
28
+ "prompt": "Write a failing test for the bug before fixing it",
29
+ "owner": "i3-test-driven-development"
30
+ }
31
+ ]
32
+ },
33
+ "evals": [
34
+ {
35
+ "id": 1,
36
+ "prompt": "Review the provided diff that adds a user-search endpoint. Deliver a structured review.",
37
+ "expected_output": "A multi-axis review with severity-labelled findings and file:line references",
38
+ "files": [
39
+ "i3-code-review-and-quality"
40
+ ],
41
+ "expectations": [
42
+ "Findings cover more than one axis (correctness, readability, architecture, security, performance)",
43
+ "Every finding carries a severity label from the skill's taxonomy",
44
+ "Security of user input is explicitly considered for the new endpoint",
45
+ "The review leads with high-leverage findings rather than nits"
46
+ ]
47
+ }
48
+ ]
49
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "skill_name": "i3-code-simplification",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "This function works but it is way too clever, simplify it without changing behavior",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "Reduce the complexity of this module so juniors can maintain it",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "Clean up this working code, it has grown hard to follow",
15
+ "top_k": 3
16
+ }
17
+ ],
18
+ "negative": [
19
+ {
20
+ "prompt": "Add a feature flag system to the app",
21
+ "owner": "i3-incremental-implementation"
22
+ },
23
+ {
24
+ "prompt": "Diagnose why the build broke overnight",
25
+ "owner": "i3-debugging-and-error-recovery"
26
+ }
27
+ ]
28
+ },
29
+ "evals": [
30
+ {
31
+ "id": 1,
32
+ "prompt": "Simplify the provided 80-line function that parses config files, preserving exact behavior.",
33
+ "expected_output": "A simpler implementation with identical behavior and a summary of what was removed and why",
34
+ "files": [
35
+ "i3-code-simplification"
36
+ ],
37
+ "expectations": [
38
+ "Behavior is preserved (tests unchanged and passing, or equivalence argued concretely)",
39
+ "Complexity is reduced rather than relocated",
40
+ "The response explains what was removed and why it was safe",
41
+ "No new features are added during the simplification"
42
+ ]
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "skill_name": "i3-constraint-driven-development",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "Set up quality constraints for this project — I want to define our bar before the agent writes more code",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "We have no written standards. Ask me what I care about and write it down with sane defaults",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "The agent keeps adding @ts-ignore and skipping tests to get green. How do I stop that?",
15
+ "top_k": 3
16
+ },
17
+ {
18
+ "prompt": "What coverage threshold should we enforce, and where should it run so it doesn't slow us down?",
19
+ "top_k": 3
20
+ },
21
+ {
22
+ "prompt": "I care about accessibility and web performance — set those up as enforced constraints",
23
+ "top_k": 3
24
+ }
25
+ ],
26
+ "negative": [
27
+ {
28
+ "prompt": "Review this pull request across correctness and security",
29
+ "owner": "i3-code-review-and-quality"
30
+ },
31
+ {
32
+ "prompt": "Add a deploy stage to our pipeline with a manual approval gate",
33
+ "owner": "i3-ci-cd-and-automation"
34
+ },
35
+ {
36
+ "prompt": "Write a failing test for this bug before we fix it",
37
+ "owner": "i3-test-driven-development"
38
+ }
39
+ ]
40
+ },
41
+ "evals": [
42
+ {
43
+ "id": 1,
44
+ "kind": "dialogue",
45
+ "prompt": "Set up constraints for this repo. I don't really know what numbers to pick.",
46
+ "expected_output": "A short interview with defaults offered, followed by a CONSTRAINTS.md the user can explain",
47
+ "expectations": [
48
+ "The agent inspects the repo for stack, test runner, and existing linters before asking anything",
49
+ "No more than four questions are asked, and each one carries a usable default",
50
+ "When the user has no target number, the agent proposes recording today's value and holding it rather than inventing a threshold",
51
+ "The resulting constraints say where each check runs, keeping fast checks in the edit loop and slow checks later",
52
+ "Every number written down is accompanied by a reason"
53
+ ]
54
+ },
55
+ {
56
+ "id": 2,
57
+ "kind": "dialogue",
58
+ "prompt": "Our coverage is 62% and I want to enforce 85% starting today.",
59
+ "expected_output": "Pushback on setting an unmeetable budget, with the ratchet alternative offered",
60
+ "expectations": [
61
+ "The agent points out that a threshold the codebase fails today produces a permanently red build",
62
+ "It offers to record 62% and require that it not fall, as an adoptable alternative",
63
+ "It does not silently accept 85% without noting the consequence"
64
+ ]
65
+ },
66
+ {
67
+ "id": 3,
68
+ "kind": "dialogue",
69
+ "prompt": "Accessibility matters to us. Add it as a constraint.",
70
+ "expected_output": "A working accessibility check, not just a threshold written down",
71
+ "expectations": [
72
+ "The agent names axe-core and gives the install and run commands rather than only stating a violation threshold",
73
+ "It notes that axe needs a running URL and asks for one, or drops the dimension if the project has no URL to hit",
74
+ "The command that produces the verdict is recorded alongside the rule in CONSTRAINTS.md",
75
+ "The check is placed at the preview-deploy stage rather than in the per-edit loop"
76
+ ]
77
+ }
78
+ ]
79
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "skill_name": "i3-context-engineering",
3
+ "trigger": {
4
+ "positive": [
5
+ {
6
+ "prompt": "What context should I load into the agent before starting this refactor?",
7
+ "top_k": 3
8
+ },
9
+ {
10
+ "prompt": "The model's output quality dropped mid-session, how do I fix its context?",
11
+ "top_k": 3
12
+ },
13
+ {
14
+ "prompt": "Set up rules files and context packing for my repository",
15
+ "top_k": 3
16
+ }
17
+ ],
18
+ "negative": [
19
+ {
20
+ "prompt": "Write unit tests for the date parser",
21
+ "owner": "i3-test-driven-development"
22
+ },
23
+ {
24
+ "prompt": "Harden this endpoint against SQL injection",
25
+ "owner": "i3-security-and-hardening"
26
+ }
27
+ ]
28
+ },
29
+ "evals": [
30
+ {
31
+ "id": 1,
32
+ "prompt": "An agent session has degraded: responses are generic and it keeps forgetting project conventions. Fix the context setup.",
33
+ "expected_output": "A diagnosis of the context problem and a concrete loading strategy (rules files, packing, task-scoped context)",
34
+ "files": [
35
+ "i3-context-engineering"
36
+ ],
37
+ "expectations": [
38
+ "The response diagnoses probable context causes rather than blaming the model generally",
39
+ "A specific context-loading plan is produced (what to load, when, and why)",
40
+ "Context is scoped to the task instead of loading everything"
41
+ ]
42
+ }
43
+ ]
44
+ }