skill-family-engineering-kit 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/CHANGELOG.zh-CN.md +20 -0
  3. package/README.md +60 -15
  4. package/README.zh-CN.md +60 -23
  5. package/data/capability-catalog/capability-catalog.en.json +2154 -0
  6. package/data/capability-catalog/capability-catalog.json +1438 -0
  7. package/data/capability-catalog/capability-catalog.schema.json +318 -0
  8. package/data/capability-catalog/capability-catalog.zh-CN.json +2154 -0
  9. package/data/examples/minimal-plugin-payload/.claude-plugin/plugin.json +5 -0
  10. package/data/examples/minimal-plugin-payload/shared/sample.txt +1 -0
  11. package/data/examples/minimal-plugin-payload/skills/entry/SKILL.md +9 -0
  12. package/data/examples/minimal-plugin-payload/skills/leaf/SKILL.md +9 -0
  13. package/docs/agents/capability-catalog.en.json +5 -3
  14. package/docs/agents/capability-catalog.json +91 -2
  15. package/docs/agents/capability-catalog.schema.json +125 -2
  16. package/docs/agents/capability-catalog.zh-CN.json +29 -27
  17. package/docs/architecture/index.html +1 -1
  18. package/docs/en/architecture/index.html +1 -1
  19. package/docs/en/migration/index.html +72 -20
  20. package/docs/en/quickstart/index.html +138 -14
  21. package/docs/en/reference/compatibility/index.html +6 -6
  22. package/docs/migration/index.html +72 -20
  23. package/docs/public/status/index.html +3 -3
  24. package/docs/quickstart/index.html +138 -14
  25. package/docs/reference/api/contracts/index.html +45 -11
  26. package/docs/reference/api/engineering-kit/index.html +62 -2
  27. package/docs/reference/api/harness/index.html +31 -0
  28. package/docs/reference/compatibility/index.html +6 -6
  29. package/docs/search/search_index.json +1 -1
  30. package/package.json +3 -3
  31. package/release-notes/0.14.0.yaml +21 -0
  32. package/src/adopt-plan.mjs +115 -1
  33. package/src/capability-assessment.mjs +438 -0
  34. package/src/cli.mjs +148 -6
  35. package/src/errors.mjs +1 -0
  36. package/src/index.mjs +1 -1
  37. package/src/migration.mjs +278 -1
  38. package/src/plugin-verification.mjs +1 -1
  39. package/src/qualification.mjs +309 -0
  40. package/src/scaffold.mjs +10 -1
  41. package/src/skeleton.mjs +162 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ <!-- release-skill:changelog:start version=0.14.0 locale=en baseline=sha256:ae68c432972367cf4f77239dcad446fe4d15fc73e6042f70bd0a7b67041f93b9 -->
4
+ ## [0.14.0] - 2026-08-28
5
+
6
+ Engineering Kit 0.14.0 adds capability discovery, migration guidance, consumer contract-test wiring, and an explicit qualification entrypoint.
7
+
8
+ ### Added
9
+
10
+ - Adds read-only capability assessment through adopt-plan and the list-capabilities CLI mode.
11
+ - Adds consumer contract-test scaffolding guidance and the explicit qualification command for real-host evidence.
12
+
13
+ ### Changed
14
+
15
+ - Documents separate candidate discovery, migration completion, contract integration, and real-host qualification conclusions.
16
+
17
+ ### Upgrade Notes
18
+
19
+ Pin all three Foundation packages to 0.14.0. Capability assessment and migration planning write no files; contract vectors and official fakes prove wiring only; qualification remains an explicit consumer-owned activity.
20
+ <!-- release-skill:changelog:end version=0.14.0 locale=en -->
21
+
22
+
3
23
  <!-- release-skill:changelog:start version=0.13.0 locale=en baseline=sha256:b9eed0b2361ff46c23ddd903b98b7059d9ceed8329f846010cb4a943101ec9a3 -->
4
24
  ## [0.13.0] - 2026-08-26
5
25
 
@@ -1,5 +1,25 @@
1
1
  # 变更日志
2
2
 
3
+ <!-- release-skill:changelog:start version=0.14.0 locale=zh-CN baseline=sha256:c3c9e90c2c1e4c06d34871d18ba4062db46e484cbeccbf25867d8b59db32ccc0 -->
4
+ ## [0.14.0] - 2026-08-28
5
+
6
+ Engineering Kit 0.14.0 增加能力发现、迁移指引、消费者契约测试接线和显式资格检查入口。
7
+
8
+ ### 新增
9
+
10
+ - 通过 `adopt-plan` 与 `list-capabilities` CLI 模式增加只读能力评估。
11
+ - 增加消费者契约测试脚手架指引,以及生成真实宿主证据的显式资格检查命令。
12
+
13
+ ### 变更
14
+
15
+ - 明确区分候选发现、迁移完成、契约接入完成和真实宿主资格四种结论。
16
+
17
+ ### 升级说明
18
+
19
+ 三个 Foundation 包须一起精确锁定到 0.14.0。能力评估和迁移规划不写文件;契约向量与正式测试替身只证明接线;资格检查仍由消费者显式负责。
20
+ <!-- release-skill:changelog:end version=0.14.0 locale=zh-CN -->
21
+
22
+
3
23
  <!-- release-skill:changelog:start version=0.13.0 locale=zh-CN baseline=sha256:3493c49151b2ebabddcba806d892ce967c0ae47621b0b2c75086e1cac334ebf9 -->
4
24
  ## [0.13.0] - 2026-08-26
5
25
 
package/README.md CHANGED
@@ -4,23 +4,27 @@
4
4
 
5
5
  # skill-family-engineering-kit
6
6
 
7
- <!-- release-skill:release-version: 0.13.0 -->
7
+ <!-- release-skill:release-version: 0.14.0 -->
8
8
 
9
9
  An engineering toolkit used in development and CI. There are **exactly four** top-level commands, and no fifth:
10
10
 
11
11
  <!-- release-skill:managed:start id=latest-release -->
12
- **0.13.0** (2026-08-26)
12
+ **0.14.0** (2026-08-28)
13
13
 
14
- Engineering Kit 0.13.0 is a source candidate for complete plugin verification with separate installation, discovery and invocation facts.
14
+ Engineering Kit 0.14.0 adds capability discovery, migration guidance, consumer contract-test wiring, and an explicit qualification entrypoint.
15
15
 
16
16
  **Added**
17
17
 
18
- - Adds the permanent candidate root entry runPluginVerification({ request, bindings, hostsRoot }).
19
- - Preserves complete plugin layouts and exposes installation observations without taking over caller acceptance policy.
18
+ - Adds read-only capability assessment through adopt-plan and the list-capabilities CLI mode.
19
+ - Adds consumer contract-test scaffolding guidance and the explicit qualification command for real-host evidence.
20
+
21
+ **Changed**
22
+
23
+ - Documents separate candidate discovery, migration completion, contract integration, and real-host qualification conclusions.
20
24
 
21
25
  **Upgrade Notes**
22
26
 
23
- Pin the three packages together. Existing runHostVerification and verifyHostVerificationBindings remain available for single-Skill verification. Every actual host/source combination still needs qualification; no publication or consumer mechanism removal is implied.
27
+ Pin all three Foundation packages to 0.14.0. Capability assessment and migration planning write no files; contract vectors and official fakes prove wiring only; qualification remains an explicit consumer-owned activity.
24
28
  <!-- release-skill:managed:end id=latest-release -->
25
29
 
26
30
  | Command | Purpose | Side effects |
@@ -40,18 +44,59 @@ Kit is the "engineering stage" layer, depending on the Harness and Contracts. It
40
44
 
41
45
  ## Installation and Minimal Example
42
46
 
43
- Version 0.13.0 is not published. The registry command below is for use after publication; this iteration installs the three local candidate tarballs in an isolated directory.
47
+ Version 0.14.0 is a local candidate. Build all three tarballs into one temporary directory and install those exact files for a candidate check:
48
+
49
+ ```sh
50
+ pack_dir="$(mktemp -d)"
51
+ (cd packages/skill-family-contracts && pnpm pack --pack-destination "$pack_dir")
52
+ (cd packages/skill-family-harness-node && pnpm pack --pack-destination "$pack_dir")
53
+ (cd packages/skill-family-engineering-kit && pnpm pack --pack-destination "$pack_dir")
54
+ mkdir "$pack_dir/consumer" && (cd "$pack_dir/consumer" && npm init -y)
55
+ (cd "$pack_dir/consumer" && npm install "$pack_dir/skill-family-contracts-0.14.0.tgz" "$pack_dir/skill-family-harness-node-0.14.0.tgz" "$pack_dir/skill-family-engineering-kit-0.14.0.tgz")
56
+ ```
57
+
58
+ After publication, use the registry coordinate:
59
+
60
+ ```sh
61
+ npm install --save-dev skill-family-engineering-kit@0.14.0
62
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit --help
63
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit scaffold --root <empty-dir> --project-id my-project
64
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit adopt-plan --root <repo> --list-capabilities --all --scope all --locale en --uses ./uses.json
65
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit projection --root <repo>
66
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit check --root <repo>
67
+ ```
68
+
69
+ The four commands above cover skeleton generation, read-only inventory, managed projection, and diagnostics respectively; a zero-install form is available via `npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit --help`.
70
+
71
+ ### Three adoption journeys
72
+
73
+ New projects can evaluate all uses before choosing stable capabilities:
74
+
75
+ ```sh
76
+ npm exec -- skill-family-kit adopt-plan --list-capabilities --all --scope all --locale en --uses ./uses.json
77
+ npm exec -- skill-family-kit scaffold --root ./my-project --project-id my-project --capability <stable-id>
78
+ ```
79
+
80
+ Existing projects start with a read-only plan, then record one decision for each declared use:
81
+
82
+ ```sh
83
+ npm exec -- skill-family-kit adopt-plan --root ./existing-repo
84
+ npm exec -- skill-family-kit adopt-plan --root ./existing-repo --list-capabilities --scope all --locale en
85
+ ```
86
+
87
+ Daily work can query one requirement without knowing a capability ID:
88
+
89
+ ```sh
90
+ npm exec -- skill-family-kit adopt-plan --list-capabilities --locale en --filter "must not leave a partial file when a write fails"
91
+ ```
92
+
93
+ The output distinguishes candidates (`supportedMatches`), boundaries (`boundary-found`), and no text match (`no-text-match`). A migration `complete` result covers only the migration gate. Contract integration is established by the consumer's adapter and domain tests. Real-host qualification is a separate explicit action:
44
94
 
45
95
  ```sh
46
- npm install --save-dev skill-family-engineering-kit@0.13.0
47
- npm exec -- skill-family-kit --help
48
- npm exec -- skill-family-kit scaffold --root <empty-dir> --project-id my-project
49
- npm exec -- skill-family-kit adopt-plan --root <repo>
50
- npm exec -- skill-family-kit projection --root <repo>
51
- npm exec -- skill-family-kit check --root <repo>
96
+ npm exec -- skill-family-kit check qualification --root <consumer-repo> --capability foundation.kit.plugin-verification --request <request-json> --bindings <private-bindings-json> --native
52
97
  ```
53
98
 
54
- The four commands above cover skeleton generation, read-only inventory, managed projection, and diagnostics respectively; a zero-install form is available via `npm exec --package=skill-family-engineering-kit@0.13.0 -- skill-family-kit --help`.
99
+ The qualification command requires complete explicit inputs and can invoke the capability-specific host only after preflight; it does not turn candidate discovery or migration completion into a qualification claim.
55
100
 
56
101
  ### Public Profile SPI
57
102
 
@@ -236,4 +281,4 @@ This package must not perform git init, commit, push, tag, stash, branch switch,
236
281
 
237
282
  The candidate runPluginVerification({ request, bindings, hostsRoot }) preserves a complete plugin layout and separates installation, discovery and invocation facts. Each actual host/source combination still needs qualification evidence.
238
283
 
239
- Version 0.13.0 is a local source candidate and is not published. Consume the three locally verified tarballs; a version marker, unit test or successful install is not complete host qualification or release approval.
284
+ Version 0.14.0 is a local source candidate and is not published. Consume the three locally verified tarballs; a version marker, unit test or successful install is not complete contract integration, migration completion, or real-host qualification.
package/README.zh-CN.md CHANGED
@@ -5,23 +5,27 @@
5
5
 
6
6
  # skill-family-engineering-kit
7
7
 
8
- <!-- release-skill:release-version: 0.13.0 -->
8
+ <!-- release-skill:release-version: 0.14.0 -->
9
9
 
10
10
  开发与 CI 阶段使用的工程工具包。**恰好四个**顶层命令,没有第五个:
11
11
 
12
12
  <!-- release-skill:managed:start id=latest-release -->
13
- **0.13.0** (2026-08-26)
13
+ **0.14.0** (2026-08-28)
14
14
 
15
- Engineering Kit 0.13.0 源码候选增加完整插件验证,分别报告安装、发现和调用事实。
15
+ Engineering Kit 0.14.0 增加能力发现、迁移指引、消费者契约测试接线和显式资格检查入口。
16
16
 
17
17
  **新增**
18
18
 
19
- - 新增永久候选根入口 runPluginVerification({ request, bindings, hostsRoot })。
20
- - 保留完整插件布局并提供安装观察,载荷接受政策仍由调用方决定。
19
+ - 通过 `adopt-plan` `list-capabilities` CLI 模式增加只读能力评估。
20
+ - 增加消费者契约测试脚手架指引,以及生成真实宿主证据的显式资格检查命令。
21
+
22
+ **变更**
23
+
24
+ - 明确区分候选发现、迁移完成、契约接入完成和真实宿主资格四种结论。
21
25
 
22
26
  **升级说明**
23
27
 
24
- 三个包须精确锁步。runHostVerification verifyHostVerificationBindings 继续用于单 Skill 验证。每个真实宿主与来源组合仍须取得资格证据;本次不代表发布完成或消费者机制已退出。
28
+ 三个 Foundation 包须一起精确锁定到 0.14.0。能力评估和迁移规划不写文件;契约向量与正式测试替身只证明接线;资格检查仍由消费者显式负责。
25
29
  <!-- release-skill:managed:end id=latest-release -->
26
30
 
27
31
  | 命令 | 用途 | 副作用 |
@@ -41,18 +45,59 @@ Kit 是「工程阶段」层,依赖 Harness 与 Contracts。它只做四件事
41
45
 
42
46
  ## 安装和最小示例
43
47
 
44
- 0.13.0 尚未发布。下面的 registry 安装命令供发布后使用;本轮验证应在隔离目录安装三个本地候选 tarball
48
+ 0.14.0 是本地候选版本。候选验证先把三个包分别打入同一个临时目录,再安装这三个精确 tarball
49
+
50
+ ```sh
51
+ pack_dir="$(mktemp -d)"
52
+ (cd packages/skill-family-contracts && pnpm pack --pack-destination "$pack_dir")
53
+ (cd packages/skill-family-harness-node && pnpm pack --pack-destination "$pack_dir")
54
+ (cd packages/skill-family-engineering-kit && pnpm pack --pack-destination "$pack_dir")
55
+ mkdir "$pack_dir/consumer" && (cd "$pack_dir/consumer" && npm init -y)
56
+ (cd "$pack_dir/consumer" && npm install "$pack_dir/skill-family-contracts-0.14.0.tgz" "$pack_dir/skill-family-harness-node-0.14.0.tgz" "$pack_dir/skill-family-engineering-kit-0.14.0.tgz")
57
+ ```
58
+
59
+ 发布后再使用 registry 坐标:
60
+
61
+ ```sh
62
+ npm install --save-dev skill-family-engineering-kit@0.14.0
63
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit --help
64
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit scaffold --root <empty-dir> --project-id my-project
65
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit adopt-plan --root <repo> --list-capabilities --all --scope all --locale zh-CN --uses ./uses.json
66
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit projection --root <repo>
67
+ npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit check --root <repo>
68
+ ```
69
+
70
+ 以上四条命令分别覆盖生成骨架、只读盘点、受管投影与诊断;零安装形式可用 `npm exec --package=skill-family-engineering-kit@0.14.0 -- skill-family-kit --help`。
71
+
72
+ ### 三条采用旅程
73
+
74
+ 新项目可以先评估全部用途,再选择稳定能力:
75
+
76
+ ```sh
77
+ npm exec -- skill-family-kit adopt-plan --list-capabilities --all --scope all --locale zh-CN --uses ./uses.json
78
+ npm exec -- skill-family-kit scaffold --root ./my-project --project-id my-project --capability <stable-id>
79
+ ```
80
+
81
+ 存量项目先运行只读计划,再为每个已声明用途记录一项 decision:
82
+
83
+ ```sh
84
+ npm exec -- skill-family-kit adopt-plan --root ./existing-repo
85
+ npm exec -- skill-family-kit adopt-plan --root ./existing-repo --list-capabilities --scope all --locale zh-CN
86
+ ```
87
+
88
+ 日常工作不必先知道 capability ID,可以直接查询单项需求:
89
+
90
+ ```sh
91
+ npm exec -- skill-family-kit adopt-plan --list-capabilities --locale zh-CN --filter "写文件失败时不能留下残缺文件"
92
+ ```
93
+
94
+ 输出会区分候选(`supportedMatches`)、边界(`boundary-found`)和无文本命中(`no-text-match`)。迁移 `complete` 只覆盖迁移门禁;契约接入完成由消费者的适配器和领域测试证明。真实宿主资格是独立的显式动作:
45
95
 
46
96
  ```sh
47
- npm install --save-dev skill-family-engineering-kit@0.13.0
48
- npm exec -- skill-family-kit --help
49
- npm exec -- skill-family-kit scaffold --root <empty-dir> --project-id my-project
50
- npm exec -- skill-family-kit adopt-plan --root <repo>
51
- npm exec -- skill-family-kit projection --root <repo>
52
- npm exec -- skill-family-kit check --root <repo>
97
+ npm exec -- skill-family-kit check qualification --root <consumer-repo> --capability foundation.kit.plugin-verification --request <request-json> --bindings <private-bindings-json> --native
53
98
  ```
54
99
 
55
- 以上四条命令分别覆盖生成骨架、只读盘点、受管投影与诊断;零安装形式可用 `npm exec --package=skill-family-engineering-kit@0.13.0 -- skill-family-kit --help`。
100
+ 资格命令要求完整的显式输入,预检通过后才可能调用能力特定宿主;候选发现或迁移完成不会自动变成资格结论。
56
101
 
57
102
  ### 公共 Profile SPI
58
103
 
@@ -116,14 +161,6 @@ Profile 必须显式提供,Kit 不默认绑定具体宿主。规范宿主 ID
116
161
 
117
162
  `executableSha256` 只绑定启动前严格读取的字节,进程仍按路径启动;调用方须在版本观察和执行期间独占可执行文件命名空间。Foundation 保留 `session-*` 目录,调用方检查后清理独占的外层 `temporaryRoot`。
118
163
 
119
- ### 候选真实宿主验证库 API
120
-
121
- `runHostVerification({ request, bindings, hostsRoot })` 和 `verifyHostVerificationBindings({ results, expectedCommon, expectedRequestDigestByHost })` 是库 API,不是第五个 Kit 命令。前者通过已准入的内置 driver(`kimi-code-print-v1` 或 `workbuddy-codebuddy-print-v1`,均绑定 `existing-user-state + host-managed`),针对调用方绑定的根执行一次候选验证,并返回经过 Contracts 校验的脱敏四态结果;后者是纯函数,只组合 `observed` 结果,并核对共同字段和逐宿主 request digest。
122
-
123
- 该 API 不接管消费者 workload、领域输出检查、领域 PASS/FAIL、发布新鲜度或发布状态。调用方提供 canonical 的 `existingUserStateRoot`;Foundation 只把它投影进子进程环境,不读取、摘要、修改或清理其中内容,也不会因此为 manual Profile 授予 build、plan、apply、install、update 或 uninstall 能力。
124
-
125
- `executableSha256` 只绑定启动前严格读取到的字节。实际进程仍按 pathname 启动,因此调用方必须在 probe 和正式调用期间独占可执行文件的命名空间。Foundation 保留本次调用的 `session-*` 目录,不按路径删除;调用方检查完成后,统一清理其独占的外层 `temporaryRoot`。
126
-
127
164
  ## 典型使用场景
128
165
 
129
166
  - 新项目骨架:`scaffold`(不覆盖非空存量仓)。
@@ -245,4 +282,4 @@ projection 只写同时满足两个条件的路径:manifest 列出,且目标
245
282
 
246
283
  新增候选 runPluginVerification({ request, bindings, hostsRoot }),保留完整插件布局并分别报告安装、发现与调用事实。真实宿主与来源组合仍需独立资格证据。
247
284
 
248
- 0.13.0 为本地源码候选,尚未发布。消费本地已验证的三包 tarball,不能把版本标记、单元测试或安装成功当作完整宿主资格与发布批准。
285
+ 0.14.0 为本地源码候选,尚未发布。消费本地已验证的三包 tarball;版本标记、单元测试或安装成功都不等于契约接入完成、迁移完成或真实宿主资格。