@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.
- package/.agents/plugins/marketplace.json +2 -2
- package/.claude/commands/i3-build.md +13 -1
- package/.claude/commands/i3-code-simplify.md +13 -1
- package/.claude/commands/i3-constraints.md +13 -1
- package/.claude/commands/i3-plan.md +13 -1
- package/.claude/commands/i3-review.md +13 -1
- package/.claude/commands/i3-ship.md +18 -2
- package/.claude/commands/i3-spec.md +13 -1
- package/.claude/commands/i3-test.md +13 -1
- package/.claude/commands/i3-webperf.md +13 -1
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +7 -6
- package/.gemini/commands/i3-build.toml +13 -1
- package/.gemini/commands/i3-code-simplify.toml +13 -1
- package/.gemini/commands/i3-constraints.toml +13 -1
- package/.gemini/commands/i3-planning.toml +13 -1
- package/.gemini/commands/i3-review.toml +13 -1
- package/.gemini/commands/i3-ship.toml +13 -1
- package/.gemini/commands/i3-spec.toml +13 -1
- package/.gemini/commands/i3-test.toml +13 -1
- package/.gemini/commands/i3-webperf.toml +13 -1
- package/README.md +141 -109
- package/agents/code-reviewer.md +13 -1
- package/agents/security-auditor.md +13 -1
- package/agents/test-engineer.md +13 -1
- package/agents/web-performance-auditor.md +13 -1
- package/bin/asset-fingerprint.cjs +1 -0
- package/bin/i3-composer-agent.cjs +58 -52
- package/bin/install.cjs +42 -19
- package/bin/native-content.cjs +27 -17
- package/bin/tool-menu.cjs +9 -0
- package/bin/tool-selector.cjs +164 -0
- package/bin/wizard.cjs +19 -30
- package/commands/i3-build.toml +13 -1
- package/commands/i3-code-simplify.toml +13 -1
- package/commands/i3-constraints.toml +13 -1
- package/commands/i3-planning.toml +13 -1
- package/commands/i3-review.toml +13 -1
- package/commands/i3-ship.toml +13 -1
- package/commands/i3-spec.toml +13 -1
- package/commands/i3-test.toml +13 -1
- package/commands/i3-webperf.toml +13 -1
- package/docs/adoption-guide.md +8 -0
- package/docs/agents.md +8 -0
- package/docs/antigravity-setup.md +8 -0
- package/docs/codebuddy-setup.md +31 -62
- package/docs/codex-setup.md +18 -29
- package/docs/commandcode-setup.md +8 -0
- package/docs/copilot-cli-setup.md +8 -0
- package/docs/copilot-setup.md +8 -0
- package/docs/cursor-setup.md +8 -0
- package/docs/gemini-cli-setup.md +8 -0
- package/docs/getting-started.md +8 -0
- package/docs/opencode-setup.md +8 -0
- package/docs/other-hosts.md +8 -0
- package/docs/windsurf-setup.md +8 -0
- package/docs/workbuddy-setup.md +41 -65
- package/evals/README.md +86 -0
- package/evals/cases/i3-api-and-interface-design.json +45 -0
- package/evals/cases/i3-browser-testing-with-devtools.json +44 -0
- package/evals/cases/i3-ci-cd-and-automation.json +45 -0
- package/evals/cases/i3-code-review-and-quality.json +49 -0
- package/evals/cases/i3-code-simplification.json +45 -0
- package/evals/cases/i3-constraint-driven-development.json +79 -0
- package/evals/cases/i3-context-engineering.json +44 -0
- package/evals/cases/i3-debugging-and-error-recovery.json +58 -0
- package/evals/cases/i3-deprecation-and-migration.json +52 -0
- package/evals/cases/i3-documentation-and-adrs.json +44 -0
- package/evals/cases/i3-doubt-driven-development.json +43 -0
- package/evals/cases/i3-frontend-ui-engineering.json +52 -0
- package/evals/cases/i3-git-workflow-and-versioning.json +47 -0
- package/evals/cases/i3-idea-refine.json +43 -0
- package/evals/cases/i3-incremental-implementation.json +57 -0
- package/evals/cases/i3-interview-me.json +42 -0
- package/evals/cases/i3-observability-and-instrumentation.json +44 -0
- package/evals/cases/i3-performance-optimization.json +53 -0
- package/evals/cases/i3-planning-and-task-breakdown.json +45 -0
- package/evals/cases/i3-security-and-hardening.json +53 -0
- package/evals/cases/i3-shipping-and-launch.json +56 -0
- package/evals/cases/i3-source-driven-development.json +44 -0
- package/evals/cases/i3-spec-driven-development.json +72 -0
- package/evals/cases/i3-test-driven-development.json +73 -0
- package/evals/cases/i3-using-agent-skills.json +44 -0
- package/evals/fixtures/i3-api-and-interface-design/service-brief.md +19 -0
- package/evals/fixtures/i3-browser-testing-with-devtools/README.md +5 -0
- package/evals/fixtures/i3-browser-testing-with-devtools/index.html +24 -0
- package/evals/fixtures/i3-browser-testing-with-devtools/server.js +15 -0
- package/evals/fixtures/i3-ci-cd-and-automation/package.json +8 -0
- package/evals/fixtures/i3-ci-cd-and-automation/src/slug.js +3 -0
- package/evals/fixtures/i3-ci-cd-and-automation/test/slug.test.js +9 -0
- package/evals/fixtures/i3-code-review-and-quality/user-search.diff +16 -0
- package/evals/fixtures/i3-code-simplification/config-parser.js +46 -0
- package/evals/fixtures/i3-code-simplification/config-parser.test.js +15 -0
- package/evals/fixtures/i3-context-engineering/context-audit.md +15 -0
- package/evals/fixtures/i3-debugging-and-error-recovery/pagination.js +8 -0
- package/evals/fixtures/i3-debugging-and-error-recovery/pagination.test.js +9 -0
- package/evals/fixtures/i3-debugging-and-error-recovery/time-pressure.md +6 -0
- package/evals/fixtures/i3-deprecation-and-migration/api-inventory.md +9 -0
- package/evals/fixtures/i3-documentation-and-adrs/decision-context.md +16 -0
- package/evals/fixtures/i3-doubt-driven-development/migration-plan.md +19 -0
- package/evals/fixtures/i3-frontend-ui-engineering/Button.tsx +7 -0
- package/evals/fixtures/i3-frontend-ui-engineering/design-system.md +11 -0
- package/evals/fixtures/i3-git-workflow-and-versioning/.eval/working-tree.patch +21 -0
- package/evals/fixtures/i3-git-workflow-and-versioning/app.js +7 -0
- package/evals/fixtures/i3-git-workflow-and-versioning/app.test.js +9 -0
- package/evals/fixtures/i3-incremental-implementation/reports.js +7 -0
- package/evals/fixtures/i3-incremental-implementation/reports.test.js +12 -0
- package/evals/fixtures/i3-incremental-implementation/tasks/plan.md +8 -0
- package/evals/fixtures/i3-observability-and-instrumentation/operations.md +11 -0
- package/evals/fixtures/i3-observability-and-instrumentation/payment-retry.js +14 -0
- package/evals/fixtures/i3-performance-optimization/benchmark.js +15 -0
- package/evals/fixtures/i3-performance-optimization/products.js +14 -0
- package/evals/fixtures/i3-planning-and-task-breakdown/notifications-spec.md +18 -0
- package/evals/fixtures/i3-security-and-hardening/webhook.js +11 -0
- package/evals/fixtures/i3-security-and-hardening/webhook.test.js +13 -0
- package/evals/fixtures/i3-shipping-and-launch/authority-pressure.md +6 -0
- package/evals/fixtures/i3-shipping-and-launch/launch-status.md +11 -0
- package/evals/fixtures/i3-source-driven-development/framework-task.md +10 -0
- package/evals/fixtures/i3-spec-driven-development/billing-brief.md +16 -0
- package/evals/fixtures/i3-test-driven-development/BUG.md +10 -0
- package/evals/fixtures/i3-test-driven-development/README.md +28 -0
- package/evals/fixtures/i3-test-driven-development/package.json +9 -0
- package/evals/fixtures/i3-test-driven-development/src/split.js +8 -0
- package/evals/fixtures/i3-test-driven-development/test/split.test.js +13 -0
- package/evals/fixtures/i3-using-agent-skills/incident.md +6 -0
- package/evals/fixtures/incremental-implementation-pressure/draft-export.js +17 -0
- package/evals/fixtures/incremental-implementation-pressure/scenario.md +9 -0
- package/evals/fixtures/spec-driven-development-decomposition/portal-brief.md +22 -0
- package/evals/fixtures/test-driven-development-ecosystem/README.md +9 -0
- package/evals/fixtures/test-driven-development-ecosystem/ledger.py +15 -0
- package/evals/fixtures/test-driven-development-ecosystem/test_ledger.py +19 -0
- package/evals/plugin/code-review-fires/graders/off-by-one.md +7 -0
- package/evals/plugin/code-review-fires/graders/severity-labels.md +4 -0
- package/evals/plugin/code-review-fires/graders/skill-fired.md +5 -0
- package/evals/plugin/code-review-fires/prompt.md +31 -0
- package/evals/plugin/code-review-stays-quiet/graders/not-fired.md +8 -0
- package/evals/plugin/code-review-stays-quiet/graders/tdd-fired.md +6 -0
- package/evals/plugin/code-review-stays-quiet/prompt.md +8 -0
- package/evals/plugin/code-review-stays-quiet-on-commit-message/graders/not-fired.md +8 -0
- package/evals/plugin/code-review-stays-quiet-on-commit-message/prompt.md +25 -0
- package/evals/zh-CN/cases/i3-api-and-interface-design.json +46 -0
- package/evals/zh-CN/cases/i3-browser-testing-with-devtools.json +45 -0
- package/evals/zh-CN/cases/i3-ci-cd-and-automation.json +46 -0
- package/evals/zh-CN/cases/i3-code-review-and-quality.json +46 -0
- package/evals/zh-CN/cases/i3-code-simplification.json +46 -0
- package/evals/zh-CN/cases/i3-constraint-driven-development.json +70 -0
- package/evals/zh-CN/cases/i3-context-engineering.json +45 -0
- package/evals/zh-CN/cases/i3-debugging-and-error-recovery.json +60 -0
- package/evals/zh-CN/cases/i3-deprecation-and-migration.json +45 -0
- package/evals/zh-CN/cases/i3-documentation-and-adrs.json +45 -0
- package/evals/zh-CN/cases/i3-doubt-driven-development.json +45 -0
- package/evals/zh-CN/cases/i3-frontend-ui-engineering.json +45 -0
- package/evals/zh-CN/cases/i3-git-workflow-and-versioning.json +45 -0
- package/evals/zh-CN/cases/i3-idea-refine.json +44 -0
- package/evals/zh-CN/cases/i3-incremental-implementation.json +59 -0
- package/evals/zh-CN/cases/i3-interview-me.json +43 -0
- package/evals/zh-CN/cases/i3-observability-and-instrumentation.json +46 -0
- package/evals/zh-CN/cases/i3-performance-optimization.json +46 -0
- package/evals/zh-CN/cases/i3-planning-and-task-breakdown.json +46 -0
- package/evals/zh-CN/cases/i3-security-and-hardening.json +46 -0
- package/evals/zh-CN/cases/i3-shipping-and-launch.json +59 -0
- package/evals/zh-CN/cases/i3-source-driven-development.json +45 -0
- package/evals/zh-CN/cases/i3-spec-driven-development.json +62 -0
- package/evals/zh-CN/cases/i3-test-driven-development.json +76 -0
- package/evals/zh-CN/cases/i3-using-agent-skills.json +45 -0
- package/hooks/SDD-CACHE.md +8 -0
- package/hooks/SIMPLIFY-IGNORE.md +8 -0
- package/hooks/sdd-cache-pre.sh +5 -5
- package/hooks/session-start-test.sh +1 -1
- package/hooks/session-start.sh +3 -3
- package/hooks/simplify-ignore.sh +8 -8
- package/package.json +235 -6
- package/plugin.json +2 -2
- package/references/accessibility-checklist.md +8 -0
- package/references/definition-of-done.md +8 -0
- package/references/observability-checklist.md +8 -0
- package/references/orchestration-patterns.md +8 -0
- package/references/performance-checklist.md +8 -0
- package/references/security-checklist.md +8 -0
- package/references/testing-patterns.md +8 -0
- package/scripts/lib/skill-lint.js +586 -0
- package/scripts/run-evals.js +659 -0
- package/scripts/validate-artifact-paths.js +130 -0
- package/scripts/validate-commands.js +224 -0
- package/scripts/validate-reference-links.js +187 -0
- package/scripts/validate-skills.js +70 -0
- package/scripts/validate-versions.js +35 -0
- package/skills/i3-api-and-interface-design/SKILL.md +13 -1
- package/skills/i3-browser-testing-with-devtools/SKILL.md +13 -1
- package/skills/i3-ci-cd-and-automation/SKILL.md +13 -1
- package/skills/i3-code-review-and-quality/SKILL.md +13 -1
- package/skills/i3-code-simplification/SKILL.md +13 -1
- package/skills/i3-constraint-driven-development/SKILL.md +13 -1
- package/skills/i3-constraint-driven-development/references/floor-guard.md +8 -0
- package/skills/i3-context-engineering/SKILL.md +13 -1
- package/skills/i3-debugging-and-error-recovery/SKILL.md +13 -1
- package/skills/i3-deprecation-and-migration/SKILL.md +13 -1
- package/skills/i3-documentation-and-adrs/SKILL.md +13 -1
- package/skills/i3-doubt-driven-development/SKILL.md +13 -1
- package/skills/i3-frontend-ui-engineering/SKILL.md +13 -1
- package/skills/i3-git-workflow-and-versioning/SKILL.md +13 -1
- package/skills/i3-idea-refine/SKILL.md +13 -1
- package/skills/i3-idea-refine/examples.md +8 -0
- package/skills/i3-idea-refine/frameworks.md +8 -0
- package/skills/i3-idea-refine/refinement-criteria.md +8 -0
- package/skills/i3-idea-refine/scripts/idea-refine.sh +2 -2
- package/skills/i3-incremental-implementation/SKILL.md +13 -1
- package/skills/i3-interview-me/SKILL.md +13 -1
- package/skills/i3-observability-and-instrumentation/SKILL.md +13 -1
- package/skills/i3-performance-optimization/SKILL.md +13 -1
- package/skills/i3-performance-optimization/references/optimization-patterns.md +8 -0
- package/skills/i3-planning-and-task-breakdown/SKILL.md +13 -1
- package/skills/i3-security-and-hardening/SKILL.md +13 -1
- package/skills/i3-security-and-hardening/references/hardening-patterns.md +8 -0
- package/skills/i3-shipping-and-launch/SKILL.md +13 -1
- package/skills/i3-source-driven-development/SKILL.md +13 -1
- package/skills/i3-spec-driven-development/SKILL.md +13 -1
- package/skills/i3-test-driven-development/SKILL.md +13 -1
- package/skills/i3-using-agent-skills/SKILL.md +13 -1
package/README.md
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
# i3 Composer Agent v2.
|
|
1
|
+
# i3 Composer Agent v2.2.1
|
|
2
2
|
|
|
3
3
|
**Intelligence. Integration. Innovation.**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
面向中文环境的软件工程工作流:需求、规格、计划、开发、测试、审查与发布。
|
|
6
|
+
包名为 `@givolt/i3-composer-agent`,插件/市场标识为 `i3-composer-agent`。
|
|
7
|
+
Skill 和命令使用 `i3-` 前缀。默认简体中文交互;用户明确要求时可切换语言。
|
|
8
|
+
代码标识、路径、参数、工具协议和机器状态保持原样。
|
|
7
9
|
|
|
8
|
-
##
|
|
10
|
+
## 通过向导安装
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
在要使用技能的项目中运行:
|
|
11
13
|
|
|
12
14
|
```bash
|
|
13
15
|
npx @givolt/i3-composer-agent
|
|
14
|
-
# Preselect a tool; the wizard still allows multiple selections:
|
|
15
16
|
npx @givolt/i3-composer-agent --codebuddy
|
|
16
|
-
# WorkBuddy desktop: use global scope for Skills discovery:
|
|
17
17
|
npx @givolt/i3-composer-agent --workbuddy --scope global
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
首屏依次为 CodeBuddy、WorkBuddy、Codex、Claude Code、Cursor、Gemini CLI,
|
|
21
|
+
WorkBuddy 在第 2 项。上下键移动,空格勾选/取消,回车确认;列表原地刷新,
|
|
22
|
+
下方实时显示已选工具。移到“更多”按空格或直接按 `m` 打开其他工具。
|
|
23
|
+
更多列表上下移动可跨页,`n`/`p` 或 PageDown/PageUp 整页翻页,`b`/左键返回常用。
|
|
24
|
+
按 `/` 输入关键词实时搜索全部 80 个工具;回车或下键结束输入,再用空格选择。
|
|
25
|
+
搜索、翻页和命令参数预选均保留选择。搜索外 `q`、Esc 或 Ctrl-C 取消。
|
|
26
|
+
确认工具后选择项目/全局范围并确认安装。
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
CodeBuddy
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Reload the IDE window or start a new session after installation. See
|
|
33
|
-
[CodeBuddy setup](docs/codebuddy-setup.md), [WorkBuddy setup](docs/workbuddy-setup.md)
|
|
34
|
-
and [Codex setup](docs/codex-setup.md).
|
|
28
|
+
全部目标均安装 25 个技能、共享参考资料,以及完整评测/Hook/脚本配套。
|
|
29
|
+
CodeBuddy、WorkBuddy、Claude Code 另安装 9 个短命令和 4 个 Agent 角色。
|
|
30
|
+
其他工具通过其原生 Skills 机制使用;短命令支持取决于宿主。
|
|
31
|
+
目录预设来自固定的 [Skills CLI 工具登记](https://github.com/vercel-labs/skills/blob/48dc9e8eb8aa19040e91cb90ba0b642c9cbad57e/src/agents.ts)
|
|
32
|
+
并增加 WorkBuddy。目录预设验证与每个宿主的实际执行验收分别记录。
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
安装后重新加载 IDE 或新建会话。详见 [CodeBuddy](docs/codebuddy-setup.md)、
|
|
35
|
+
[WorkBuddy](docs/workbuddy-setup.md) 和 [Codex](docs/codex-setup.md) 安装说明。
|
|
36
|
+
|
|
37
|
+
无需交互时,明确选择工具和范围:
|
|
37
38
|
|
|
38
39
|
```bash
|
|
39
40
|
npx @givolt/i3-composer-agent --agents codebuddy,codex --scope project --yes
|
|
@@ -43,36 +44,57 @@ npx @givolt/i3-composer-agent --claude --scope global --yes
|
|
|
43
44
|
npx @givolt/i3-composer-agent --codebuddy --scope project --dry-run
|
|
44
45
|
```
|
|
45
46
|
|
|
46
|
-
CodeBuddy
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
47
|
+
CodeBuddy 和 WorkBuddy 的项目安装共用 `.codebuddy/`,相同目标只安装一次,
|
|
48
|
+
保留已有 `.workbuddy/` 项目设置。全局分别使用 `~/.codebuddy/` 和 `~/.workbuddy/`。
|
|
49
|
+
**WorkBuddy 桌面版建议全局安装**:已观察到 5.7.7 的技能列表扫描 `.workbuddy/skills/`,
|
|
50
|
+
共用的项目 `.codebuddy/skills/` 可能不显示,但项目命令仍可发现。
|
|
51
|
+
可让 CodeBuddy 项目安装、WorkBuddy 全局安装,或让两者都全局安装。
|
|
52
|
+
|
|
53
|
+
同版本、同范围的清单所属未修改内容会复用,新增客户端合并到清单。
|
|
54
|
+
升级、修改过的内容及未登记同名冲突需确认替换;非交互使用 `--force` 前可先看 dry-run。
|
|
55
|
+
安装成功后清理替换掉的旧内容及本安装器所属历史备份,失败则恢复原文件。
|
|
56
|
+
迁移只清理旧清单所属的无前缀 Skill/命令路径,保留自定义内容。
|
|
57
|
+
标准 MIT 许可随共享参考资料安装。`npx -y` 确认 npm 下载;包的 `--yes` 确认安装计划。
|
|
58
|
+
|
|
59
|
+
## 安装内容与可选功能
|
|
60
|
+
|
|
61
|
+
| 内容 | 默认安装 | 用途 |
|
|
62
|
+
| --- | --- | --- |
|
|
63
|
+
| `skills/`(含技能内部的 `scripts/` 等资源) | 是 | 工程工作流及运行辅助文件 |
|
|
64
|
+
| `references/` | 是 | 技能引用的检查清单与参考资料 |
|
|
65
|
+
| `commands/`、`agents/` | CodeBuddy、WorkBuddy、Claude Code | 短命令与专业角色 |
|
|
66
|
+
| `hooks/` | 是,文件安装后按宿主方式启用 | 会话注入、文档缓存和代码块保护 |
|
|
67
|
+
| `scripts/` | 是 | 评测运行器、五项校验脚本及其共享库 |
|
|
68
|
+
| `evals/` | 是 | 中英文触发/行为用例、测试项目样例及插件评分规则 |
|
|
69
|
+
|
|
70
|
+
完整配套默认放在宿主目录下的 `i3-composer-agent/`,例如
|
|
71
|
+
`.codebuddy/i3-composer-agent/` 或 `~/.workbuddy/i3-composer-agent/`。
|
|
72
|
+
其中保留对应的技能、命令、角色、参考资料与清单,供评测、校验和 Hook 的相对路径使用;
|
|
73
|
+
宿主调用入口继续安装在其原生目录。该配套与技能一起升级、复用和失败恢复。
|
|
74
|
+
|
|
75
|
+
从配套目录运行以下检查,不调用模型:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm test
|
|
79
|
+
node scripts/run-evals.js --locale zh-CN --min-rank1 95
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
模型行为评测需要主动运行并消耗模型额度,详见 [评测说明](evals/README.md)。
|
|
83
|
+
本包的 `npm test` 检查随包技能的结构和中英文触发,不是业务项目测试或宿主执行验收。
|
|
84
|
+
评测结果不进入安装替换清单。安装过程不执行评测,也不自动启用 Hook。
|
|
85
|
+
|
|
86
|
+
可选 Hook 不影响普通技能和命令的使用,默认中文交互也不依赖 Hook。
|
|
87
|
+
未配置 Hook 时,自动注入、缓存和代码块保护这些增强功能不会运行。
|
|
88
|
+
会话注入仅适合缺少原生技能路由的宿主;已有原生路由时不应重复注入元技能。
|
|
89
|
+
缓存与代码块保护的配置说明分别在配套目录的 `hooks/SDD-CACHE.md`、
|
|
90
|
+
`hooks/SIMPLIFY-IGNORE.md`,当前示例针对 Claude Code,其他宿主需适配自己的事件协议。
|
|
91
|
+
脚本依赖 Bash、jq;缓存还需 curl 和哈希工具,代码块保护还需其文档列出的工具。
|
|
92
|
+
Windows PowerShell 本身不会自动提供这些脚本依赖。
|
|
93
|
+
|
|
94
|
+
## 通过宿主插件管理器安装
|
|
95
|
+
|
|
96
|
+
默认配套已包含 Skills、Commands、Agents、references、evals、hooks 和 scripts。
|
|
97
|
+
若希望另行导出目录,交给宿主插件管理器管理:
|
|
76
98
|
|
|
77
99
|
```bash
|
|
78
100
|
npx @givolt/i3-composer-agent --prepare --codebuddy
|
|
@@ -80,80 +102,88 @@ npx @givolt/i3-composer-agent --prepare --codex
|
|
|
80
102
|
npx @givolt/i3-composer-agent --prepare --claude
|
|
81
103
|
```
|
|
82
104
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
CodeBuddy Code (terminal) / Claude Code:
|
|
105
|
+
`--prepare` 只准备 `./i3-composer-agent/` 运行文件并输出宿主注册命令,
|
|
106
|
+
不会把插件自动注册到宿主,也不会启用可选 Hook。普通技能安装完成后无需再执行它。
|
|
107
|
+
需要让宿主插件管理器统一发现和管理插件时,再按下面步骤注册:
|
|
108
|
+
在 CodeBuddy Code(终端)或 Claude Code 中执行:
|
|
88
109
|
|
|
89
110
|
```text
|
|
90
111
|
/plugin marketplace add ./i3-composer-agent
|
|
91
112
|
/plugin install i3-composer-agent@i3-composer-agent
|
|
92
113
|
```
|
|
93
114
|
|
|
94
|
-
Codex
|
|
115
|
+
Codex 中执行:
|
|
95
116
|
|
|
96
117
|
```bash
|
|
97
118
|
codex plugin marketplace add ./i3-composer-agent
|
|
98
119
|
codex plugin add i3-composer-agent@i3-composer-agent
|
|
99
120
|
```
|
|
100
121
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
is maintained separately.
|
|
122
|
+
按宿主管理器选择安装范围,启用后新建会话。原生文件安装与插件注册是两种入口。
|
|
123
|
+
本包没有默认 Hook 注册配置;插件启用后,可选 Hook 仍需按上面的用途和宿主要求单独配置。
|
|
104
124
|
|
|
105
|
-
##
|
|
125
|
+
## 命令
|
|
106
126
|
|
|
107
|
-
|
|
108
|
-
`/i3-
|
|
109
|
-
commands load the same workflows under the plugin namespace:
|
|
127
|
+
CodeBuddy、WorkBuddy、Claude Code 原生安装使用 `/i3-spec`、`/i3-plan`、
|
|
128
|
+
`/i3-build`、`/i3-ship` 等短命令。支持兼容插件命令的宿主使用插件命名空间:
|
|
110
129
|
|
|
111
|
-
|
|
|
130
|
+
| 命令 | 中文说明 |
|
|
112
131
|
| --- | --- |
|
|
113
|
-
| /i3-composer-agent:i3-build |
|
|
114
|
-
| /i3-composer-agent:i3-code-simplify |
|
|
115
|
-
| /i3-composer-agent:i3-constraints |
|
|
116
|
-
| /i3-composer-agent:i3-plan |
|
|
117
|
-
| /i3-composer-agent:i3-review |
|
|
118
|
-
| /i3-composer-agent:i3-ship |
|
|
119
|
-
| /i3-composer-agent:i3-spec |
|
|
120
|
-
| /i3-composer-agent:i3-test |
|
|
121
|
-
| /i3-composer-agent:i3-webperf |
|
|
122
|
-
|
|
123
|
-
`/i3-build auto`
|
|
124
|
-
|
|
132
|
+
| /i3-composer-agent:i3-build | 按任务增量实现、构建、测试、验证并提交;添加 auto 可按已获批准的完整计划执行。 |
|
|
133
|
+
| /i3-composer-agent:i3-code-simplify | 简化代码,降低复杂度,提高可读性与维护性,并保持既有行为不变。 |
|
|
134
|
+
| /i3-composer-agent:i3-constraints | 访谈并定义项目质量门槛,提供合理默认值,写入 CONSTRAINTS.md 并落实约束。 |
|
|
135
|
+
| /i3-composer-agent:i3-plan | 把工作拆成带验收标准、验证步骤和依赖顺序的小任务。 |
|
|
136
|
+
| /i3-composer-agent:i3-review | 从正确性、可读性、架构、安全和性能五个维度审查代码。 |
|
|
137
|
+
| /i3-composer-agent:i3-ship | 并行调用三个专业角色执行发布前检查,主会话汇总 GO/NO-GO 决策与回滚计划。 |
|
|
138
|
+
| /i3-composer-agent:i3-spec | 先编写结构化规格、目标、范围与验收标准,再进入实现。 |
|
|
139
|
+
| /i3-composer-agent:i3-test | 执行 TDD:先编写失败测试,再实现和验证;缺陷使用 Prove-It 模式复现。 |
|
|
140
|
+
| /i3-composer-agent:i3-webperf | 调用 web-performance-auditor 角色审查网页性能与 Core Web Vitals。 |
|
|
141
|
+
|
|
142
|
+
`/i3-build auto` 按已获批准的任务计划执行完整流程。
|
|
143
|
+
插件调用为 `/i3-composer-agent:i3-build auto`,原审批边界和验证条件仍有效。
|
|
144
|
+
`/i3-ship` 在宿主支持时并行运行三个专业角色;不可用时读取角色提示依次审查,
|
|
145
|
+
由主会话汇总 GO/NO-GO 决策,回滚计划必需,严重问题默认阻止发布。
|
|
125
146
|
|
|
126
147
|
## Skills
|
|
127
148
|
|
|
128
|
-
|
|
|
149
|
+
| 技能 | 中文说明 |
|
|
129
150
|
| --- | --- |
|
|
130
|
-
| [i3-api-and-interface-design](skills/i3-api-and-interface-design/SKILL.md) |
|
|
131
|
-
| [i3-browser-testing-with-devtools](skills/i3-browser-testing-with-devtools/SKILL.md) |
|
|
132
|
-
| [i3-ci-cd-and-automation](skills/i3-ci-cd-and-automation/SKILL.md) |
|
|
133
|
-
| [i3-code-review-and-quality](skills/i3-code-review-and-quality/SKILL.md) |
|
|
134
|
-
| [i3-code-simplification](skills/i3-code-simplification/SKILL.md) |
|
|
135
|
-
| [i3-constraint-driven-development](skills/i3-constraint-driven-development/SKILL.md) |
|
|
136
|
-
| [i3-context-engineering](skills/i3-context-engineering/SKILL.md) |
|
|
137
|
-
| [i3-debugging-and-error-recovery](skills/i3-debugging-and-error-recovery/SKILL.md) |
|
|
138
|
-
| [i3-deprecation-and-migration](skills/i3-deprecation-and-migration/SKILL.md) |
|
|
139
|
-
| [i3-documentation-and-adrs](skills/i3-documentation-and-adrs/SKILL.md) |
|
|
140
|
-
| [i3-doubt-driven-development](skills/i3-doubt-driven-development/SKILL.md) |
|
|
141
|
-
| [i3-frontend-ui-engineering](skills/i3-frontend-ui-engineering/SKILL.md) |
|
|
142
|
-
| [i3-git-workflow-and-versioning](skills/i3-git-workflow-and-versioning/SKILL.md) |
|
|
143
|
-
| [i3-idea-refine](skills/i3-idea-refine/SKILL.md) |
|
|
144
|
-
| [i3-incremental-implementation](skills/i3-incremental-implementation/SKILL.md) |
|
|
145
|
-
| [i3-interview-me](skills/i3-interview-me/SKILL.md) |
|
|
146
|
-
| [i3-observability-and-instrumentation](skills/i3-observability-and-instrumentation/SKILL.md) |
|
|
147
|
-
| [i3-performance-optimization](skills/i3-performance-optimization/SKILL.md) |
|
|
148
|
-
| [i3-planning-and-task-breakdown](skills/i3-planning-and-task-breakdown/SKILL.md) |
|
|
149
|
-
| [i3-security-and-hardening](skills/i3-security-and-hardening/SKILL.md) |
|
|
150
|
-
| [i3-shipping-and-launch](skills/i3-shipping-and-launch/SKILL.md) |
|
|
151
|
-
| [i3-source-driven-development](skills/i3-source-driven-development/SKILL.md) |
|
|
152
|
-
| [i3-spec-driven-development](skills/i3-spec-driven-development/SKILL.md) |
|
|
153
|
-
| [i3-test-driven-development](skills/i3-test-driven-development/SKILL.md) |
|
|
154
|
-
| [i3-using-agent-skills](skills/i3-using-agent-skills/SKILL.md) |
|
|
155
|
-
|
|
156
|
-
##
|
|
151
|
+
| [i3-api-and-interface-design](skills/i3-api-and-interface-design/SKILL.md) | 设计稳定的 API、模块接口和类型契约。适用于 REST/GraphQL 端点、模块边界、前后端接口及公共 API 设计。 |
|
|
152
|
+
| [i3-browser-testing-with-devtools](skills/i3-browser-testing-with-devtools/SKILL.md) | 通过 Chrome DevTools MCP 在真实浏览器测试。适用于网页开发或排错、检查 DOM、控制台错误、网络请求、性能及视觉结果;需要配置 chrome-devtools MCP。 |
|
|
153
|
+
| [i3-ci-cd-and-automation](skills/i3-ci-cd-and-automation/SKILL.md) | 配置 CI/CD 构建与部署流水线。适用于每次 PR 自动执行 lint 和测试、失败阻止合并,配置持续集成质量门禁与部署策略。 |
|
|
154
|
+
| [i3-code-review-and-quality](skills/i3-code-review-and-quality/SKILL.md) | 按正确性、可读性、架构、安全与性能审查代码。适用于合并前审查自己、其他代理或人工编写的改动,包括 diff、PR 和内联代码评审。 |
|
|
155
|
+
| [i3-code-simplification](skills/i3-code-simplification/SKILL.md) | 在保持行为不变的前提下简化代码。适用于简化现有代码结构、重构复杂逻辑、保留全部现有行为,并提高可读性、维护性与可扩展性。 |
|
|
156
|
+
| [i3-constraint-driven-development](skills/i3-constraint-driven-development/SKILL.md) | 把项目质量标准写入 CONSTRAINTS.md 并落实为约束。适用于制定无障碍、性能、覆盖率等门槛,选择合理默认值,防止跳过测试、削弱断言、压低阈值、屏蔽错误或以空实现通过检查。 |
|
|
157
|
+
| [i3-context-engineering](skills/i3-context-engineering/SKILL.md) | 优化代理上下文与项目规则。适用于新会话、输出质量下降、任务切换,以及配置项目规则文件、上下文和提示。 |
|
|
158
|
+
| [i3-debugging-and-error-recovery](skills/i3-debugging-and-error-recovery/SKILL.md) | 系统复现故障、定位根因并验证修复。适用于测试失败、构建损坏、运行崩溃、功能回归、异常报错或行为不符合预期。 |
|
|
159
|
+
| [i3-deprecation-and-migration](skills/i3-deprecation-and-migration/SKILL.md) | 管理废弃与迁移。适用于替换旧系统、API 或功能、迁移用户、生产数据库无停机扩展/收缩,以及决定维护或退役现有代码。 |
|
|
160
|
+
| [i3-documentation-and-adrs](skills/i3-documentation-and-adrs/SKILL.md) | 记录文档、架构决策与设计理由。适用于编写 ADR、公共 API 发生变化时补充文档、交付功能,以及保存后续工程师和代理理解设计取舍所需的背景。 |
|
|
161
|
+
| [i3-doubt-driven-development](skills/i3-doubt-driven-development/SKILL.md) | 对非平凡决策进行独立的对抗式审查。适用于核查假设、压力测试计划、寻找隐藏失败模式、陌生代码、安全敏感功能、生产认证或高风险不可逆迁移。 |
|
|
162
|
+
| [i3-frontend-ui-engineering](skills/i3-frontend-ui-engineering/SKILL.md) | 实现可访问、响应式、具有生产质量的前端界面。适用于页面/组件开发、布局、状态管理、WCAG 无障碍、交互与视觉质量改进。 |
|
|
163
|
+
| [i3-git-workflow-and-versioning](skills/i3-git-workflow-and-versioning/SKILL.md) | 组织 Git 分支、提交、冲突处理、PR 与版本发布。适用于任何代码改动、拆分工作区改动、并行开发、推送、合并、语义化版本、标签及变更日志。 |
|
|
164
|
+
| [i3-idea-refine](skills/i3-idea-refine/SKILL.md) | 通过发散与收敛思考完善模糊想法。适用于创意探索、细化方案、验证假设、压力测试计划,以及确定方向前比较更多选项。 |
|
|
165
|
+
| [i3-incremental-implementation](skills/i3-incremental-implementation/SKILL.md) | 把改动拆成小而完整、可验证的实现切片。适用于涉及多个文件的功能、领取计划中的下一任务、特性开关发布,以及避免一次落地过大的改动。 |
|
|
166
|
+
| [i3-interview-me](skills/i3-interview-me/SKILL.md) | 通过一次一个问题的访谈或采访明确真实意图,直到约 95% 把握并确信理解用户想要什么。适用于需求不充分、缺少目标用户或目的、用户要求访谈/质询,或在提出方案、规格与计划前发现关键需求仍在猜测。 |
|
|
167
|
+
| [i3-observability-and-instrumentation](skills/i3-observability-and-instrumentation/SKILL.md) | 为生产行为增加日志、指标、链路追踪与告警。适用于新增可观测性、交付生产功能并提供运行证据,以及无法从已有数据定位生产故障。 |
|
|
168
|
+
| [i3-performance-optimization](skills/i3-performance-optimization/SKILL.md) | 优化前端、后端、查询和数据库性能。适用于性能指标、回归、Core Web Vitals、慢加载、N+1 查询或性能剖析发现瓶颈。 |
|
|
169
|
+
| [i3-planning-and-task-breakdown](skills/i3-planning-and-task-breakdown/SKILL.md) | 把规格和明确需求拆成有顺序的任务。适用于实施计划、验收条件、验证步骤、依赖排序、范围估算,以及大任务或并行工作安排。 |
|
|
170
|
+
| [i3-security-and-hardening](skills/i3-security-and-hardening/SKILL.md) | 分析漏洞、威胁与安全加固。适用于不可信输入、webhook URL 服务端请求与 SSRF 防护、认证授权、会话、数据存储、外部集成、OWASP Top Ten、依赖 CVE、供应链、个人数据与隐私合规。 |
|
|
171
|
+
| [i3-shipping-and-launch](skills/i3-shipping-and-launch/SKILL.md) | 检查生产发布条件与回滚策略。适用于上线准备、发布清单、监控、分阶段部署和回滚方案,确保风险有依据且可恢复。 |
|
|
172
|
+
| [i3-source-driven-development](skills/i3-source-driven-development/SKILL.md) | 以官方文档和权威来源支撑实现决策。适用于核对框架/库用法、验证方案、查证 API 和避免过时实现,并保留来源证据。 |
|
|
173
|
+
| [i3-spec-driven-development](skills/i3-spec-driven-development/SKILL.md) | 在实现前形成结构化规格。适用于新项目、功能或重大改动、PRD、需求澄清、目标与范围、场景和验收标准,以及将需求拆为独立可测试能力。 |
|
|
174
|
+
| [i3-test-driven-development](skills/i3-test-driven-development/SKILL.md) | 执行测试先行的红绿重构循环。适用于实现逻辑、修复缺陷、修改行为、复现报错及证明改动有效;缺陷修复使用先证明失败的 Prove-It 模式。 |
|
|
175
|
+
| [i3-using-agent-skills](skills/i3-using-agent-skills/SKILL.md) | 发现并调用合适的工程技能。适用于开始会话、判断任务意图、选择技能或工作流;作为元技能协调其他技能的发现和调用。 |
|
|
176
|
+
|
|
177
|
+
## Agent 角色
|
|
178
|
+
|
|
179
|
+
| 角色 | 中文说明 |
|
|
180
|
+
| --- | --- |
|
|
181
|
+
| [code-reviewer](agents/code-reviewer.md) | 高级代码审查角色,评估正确性、可读性、架构、安全和性能。适用于合并前完整代码评审,并输出有严重程度和证据的问题报告。 |
|
|
182
|
+
| [security-auditor](agents/security-auditor.md) | 安全工程角色,分析漏洞、威胁模型与安全编码。适用于安全审查、认证授权、威胁分析和加固建议,并输出审计报告。 |
|
|
183
|
+
| [test-engineer](agents/test-engineer.md) | 质量工程角色,设计测试策略、编写测试并分析覆盖率。适用于测试套件设计、现有代码测试、边界/错误/并发路径与测试质量评估。 |
|
|
184
|
+
| [web-performance-auditor](agents/web-performance-auditor.md) | 网页性能角色,分析 Core Web Vitals、加载、渲染与网络。适用于性能审计、CWV 分析和识别结构性性能反模式。 |
|
|
185
|
+
|
|
186
|
+
## 导出与升级
|
|
157
187
|
|
|
158
188
|
```bash
|
|
159
189
|
npx @givolt/i3-composer-agent --extract --dir /path/to/plugin
|
|
@@ -161,6 +191,8 @@ npx @givolt/i3-composer-agent --codebuddy --dir /path/to/plugin --dry-run
|
|
|
161
191
|
npx @givolt/i3-composer-agent --codebuddy --dir /path/to/plugin --force
|
|
162
192
|
```
|
|
163
193
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
AGENTS.md
|
|
194
|
+
明确 `--dir` 保持完整插件准备行为。成功替换后清理旧插件和所属历史备份。
|
|
195
|
+
升级时重新运行安装命令并确认替换,完成后重新加载宿主。
|
|
196
|
+
仓库维护用的 AGENTS.md、CLAUDE.md 不复制进业务项目。
|
|
197
|
+
Codex 通过 `$i3-spec-driven-development` 等技能名调用;其原生 `/plan` 是宿主计划模式。
|
|
198
|
+
中文语言策略、工程方法、审批要求与工具限制在各入口独立生效。
|
package/agents/code-reviewer.md
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-reviewer
|
|
3
|
-
description:
|
|
3
|
+
description: "高级代码审查角色,评估正确性、可读性、架构、安全和性能。适用于合并前完整代码评审,并输出有严重程度和证据的问题报告。"
|
|
4
|
+
# i3-description-source: "description: Senior code reviewer that evaluates changes across five dimensions — correctness, readability, architecture, security, and performance. Use for thorough code review before merge."
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- i3:zh-CN:start -->
|
|
8
|
+
## 中文交互与输出
|
|
9
|
+
|
|
10
|
+
默认使用简体中文回复,包括追问、选项说明、阶段进度、分析、规格、计划、验收、代码审查与发布报告。只有用户明确要求其他语言时才切换;输入中出现英文术语、代码或引用不构成切换语言的要求。
|
|
11
|
+
下文的工程步骤、审批要求、退出条件和工具约束完整有效。英文示例中的人类可读标题、说明和占位内容在实际输出时应译为中文;保留原有信息与验证标准,不删减方法。
|
|
12
|
+
Skill/Command/Agent 标识、文件路径、命令参数、代码/API 名称、工具调用参数、JSON 键/类型/枚举、机器状态、测试期望字面量及引用原文保持原样。生成文档正文用中文,SPEC.md、tasks/plan.md、tasks/todo.md、CONSTRAINTS.md 等约定路径不改名。
|
|
13
|
+
严重程度按原规则判断,面向用户可写“严重(Critical)”“必须修复(Required)”“小问题(Nit)”“可选(Optional)”“建议考虑(Consider)”“仅供参考(FYI)”;High/Medium/Low、APPROVE/REQUEST CHANGES 和 GO/NO-GO 保留其原始语义与机器值。不得因翻译降低门槛,角色不能互相委派。
|
|
14
|
+
|
|
15
|
+
适用说明:高级代码审查角色,评估正确性、可读性、架构、安全和性能。适用于合并前完整代码评审,并输出有严重程度和证据的问题报告。
|
|
16
|
+
<!-- i3:zh-CN:end -->
|
|
17
|
+
|
|
6
18
|
# Senior Code Reviewer
|
|
7
19
|
|
|
8
20
|
You are an experienced Staff Engineer conducting a thorough code review. Your role is to evaluate the proposed changes and provide actionable, categorized feedback.
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: security-auditor
|
|
3
|
-
description:
|
|
3
|
+
description: "安全工程角色,分析漏洞、威胁模型与安全编码。适用于安全审查、认证授权、威胁分析和加固建议,并输出审计报告。"
|
|
4
|
+
# i3-description-source: "description: Security engineer focused on vulnerability detection, threat modeling, and secure coding practices. Use for security-focused code review, threat analysis, or hardening recommendations."
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- i3:zh-CN:start -->
|
|
8
|
+
## 中文交互与输出
|
|
9
|
+
|
|
10
|
+
默认使用简体中文回复,包括追问、选项说明、阶段进度、分析、规格、计划、验收、代码审查与发布报告。只有用户明确要求其他语言时才切换;输入中出现英文术语、代码或引用不构成切换语言的要求。
|
|
11
|
+
下文的工程步骤、审批要求、退出条件和工具约束完整有效。英文示例中的人类可读标题、说明和占位内容在实际输出时应译为中文;保留原有信息与验证标准,不删减方法。
|
|
12
|
+
Skill/Command/Agent 标识、文件路径、命令参数、代码/API 名称、工具调用参数、JSON 键/类型/枚举、机器状态、测试期望字面量及引用原文保持原样。生成文档正文用中文,SPEC.md、tasks/plan.md、tasks/todo.md、CONSTRAINTS.md 等约定路径不改名。
|
|
13
|
+
严重程度按原规则判断,面向用户可写“严重(Critical)”“必须修复(Required)”“小问题(Nit)”“可选(Optional)”“建议考虑(Consider)”“仅供参考(FYI)”;High/Medium/Low、APPROVE/REQUEST CHANGES 和 GO/NO-GO 保留其原始语义与机器值。不得因翻译降低门槛,角色不能互相委派。
|
|
14
|
+
|
|
15
|
+
适用说明:安全工程角色,分析漏洞、威胁模型与安全编码。适用于安全审查、认证授权、威胁分析和加固建议,并输出审计报告。
|
|
16
|
+
<!-- i3:zh-CN:end -->
|
|
17
|
+
|
|
6
18
|
# Security Auditor
|
|
7
19
|
|
|
8
20
|
You are an experienced Security Engineer conducting a security review. Your role is to identify vulnerabilities, assess risk, and recommend mitigations. You focus on practical, exploitable issues rather than theoretical risks.
|
package/agents/test-engineer.md
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: test-engineer
|
|
3
|
-
description:
|
|
3
|
+
description: "质量工程角色,设计测试策略、编写测试并分析覆盖率。适用于测试套件设计、现有代码测试、边界/错误/并发路径与测试质量评估。"
|
|
4
|
+
# i3-description-source: "description: QA engineer specialized in test strategy, test writing, and coverage analysis. Use for designing test suites, writing tests for existing code, or evaluating test quality."
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- i3:zh-CN:start -->
|
|
8
|
+
## 中文交互与输出
|
|
9
|
+
|
|
10
|
+
默认使用简体中文回复,包括追问、选项说明、阶段进度、分析、规格、计划、验收、代码审查与发布报告。只有用户明确要求其他语言时才切换;输入中出现英文术语、代码或引用不构成切换语言的要求。
|
|
11
|
+
下文的工程步骤、审批要求、退出条件和工具约束完整有效。英文示例中的人类可读标题、说明和占位内容在实际输出时应译为中文;保留原有信息与验证标准,不删减方法。
|
|
12
|
+
Skill/Command/Agent 标识、文件路径、命令参数、代码/API 名称、工具调用参数、JSON 键/类型/枚举、机器状态、测试期望字面量及引用原文保持原样。生成文档正文用中文,SPEC.md、tasks/plan.md、tasks/todo.md、CONSTRAINTS.md 等约定路径不改名。
|
|
13
|
+
严重程度按原规则判断,面向用户可写“严重(Critical)”“必须修复(Required)”“小问题(Nit)”“可选(Optional)”“建议考虑(Consider)”“仅供参考(FYI)”;High/Medium/Low、APPROVE/REQUEST CHANGES 和 GO/NO-GO 保留其原始语义与机器值。不得因翻译降低门槛,角色不能互相委派。
|
|
14
|
+
|
|
15
|
+
适用说明:质量工程角色,设计测试策略、编写测试并分析覆盖率。适用于测试套件设计、现有代码测试、边界/错误/并发路径与测试质量评估。
|
|
16
|
+
<!-- i3:zh-CN:end -->
|
|
17
|
+
|
|
6
18
|
# Test Engineer
|
|
7
19
|
|
|
8
20
|
You are an experienced QA Engineer focused on test strategy and quality assurance. Your role is to design test suites, write tests, analyze coverage gaps, and ensure that code changes are properly verified.
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: web-performance-auditor
|
|
3
|
-
description:
|
|
3
|
+
description: "网页性能角色,分析 Core Web Vitals、加载、渲染与网络。适用于性能审计、CWV 分析和识别结构性性能反模式。"
|
|
4
|
+
# i3-description-source: "description: Web performance engineer focused on Core Web Vitals, loading, rendering, and network optimization. Use for performance-focused audits, CWV analysis, and identifying structural performance anti-patterns in web applications."
|
|
4
5
|
---
|
|
5
6
|
|
|
7
|
+
<!-- i3:zh-CN:start -->
|
|
8
|
+
## 中文交互与输出
|
|
9
|
+
|
|
10
|
+
默认使用简体中文回复,包括追问、选项说明、阶段进度、分析、规格、计划、验收、代码审查与发布报告。只有用户明确要求其他语言时才切换;输入中出现英文术语、代码或引用不构成切换语言的要求。
|
|
11
|
+
下文的工程步骤、审批要求、退出条件和工具约束完整有效。英文示例中的人类可读标题、说明和占位内容在实际输出时应译为中文;保留原有信息与验证标准,不删减方法。
|
|
12
|
+
Skill/Command/Agent 标识、文件路径、命令参数、代码/API 名称、工具调用参数、JSON 键/类型/枚举、机器状态、测试期望字面量及引用原文保持原样。生成文档正文用中文,SPEC.md、tasks/plan.md、tasks/todo.md、CONSTRAINTS.md 等约定路径不改名。
|
|
13
|
+
严重程度按原规则判断,面向用户可写“严重(Critical)”“必须修复(Required)”“小问题(Nit)”“可选(Optional)”“建议考虑(Consider)”“仅供参考(FYI)”;High/Medium/Low、APPROVE/REQUEST CHANGES 和 GO/NO-GO 保留其原始语义与机器值。不得因翻译降低门槛,角色不能互相委派。
|
|
14
|
+
|
|
15
|
+
适用说明:网页性能角色,分析 Core Web Vitals、加载、渲染与网络。适用于性能审计、CWV 分析和识别结构性性能反模式。
|
|
16
|
+
<!-- i3:zh-CN:end -->
|
|
17
|
+
|
|
6
18
|
# Web Performance Auditor
|
|
7
19
|
|
|
8
20
|
You are an experienced Web Performance Engineer conducting a performance audit. Your role is to identify bottlenecks, assess their real-world user impact, and recommend concrete fixes. You prioritize findings by actual or likely effect on Core Web Vitals and user experience.
|
|
@@ -21,6 +21,7 @@ function fingerprint(file, asset) {
|
|
|
21
21
|
if (stat.isDirectory()) {
|
|
22
22
|
for (const entry of fs.readdirSync(current).sort()) {
|
|
23
23
|
if (asset && entry === '.DS_Store') continue;
|
|
24
|
+
if (asset?.kind === 'support' && ['results', 'node_modules', '.git'].includes(entry)) continue;
|
|
24
25
|
if (!visit(path.join(current, entry), path.join(relative, entry))) return false;
|
|
25
26
|
}
|
|
26
27
|
} else {
|