capability-bump
Change the JSON shape of a ynh command safely — decide whether it bumps CapabilitiesVersion, then update the schema, goldens and docs together. Use when adding, removing or changing any field in a --format json response.
原文 · 译文尚未补齐适用对象:对象待分类。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Change a structured-output shape
- Step 1 — Decide: does this bump?
- Step 2 — Know which responses are enveloped
- Step 3 — Move all four together
- The worked example — #254
- Step 4 — Verify
- Step 5 — Say so in the PR
- The failure this prevents
config.CapabilitiesVersion is the wire-protocol version every enveloped response carries. Consumers — loop drivers, CI scripts, ynd validate-output — read it to know what they are talking to. .claude/CLAUDE.md states the rule. This skill is how you carry it out, because the rule is a decision and the execution is four files that must move together. Bumps — a consumer must adapt: removing a field renaming a field changing a field's type narrowing a type (string → enum) tightening an enum (removing a member) making an optional field required changing the meaning of an existing value Does not bump — a tolerant consumer is unaffected: adding an optional field adding a member to an open-set enum (consumers MUST tolerate unknowns, per docs/cli-structured.md) adding a whole new schema relaxing a constraint If unsure, treat it as a bump. A needless bump costs a consumer one version check. A missed one breaks them silently. Note the asymmetry: adding an enum member does not bump, removing one does. Open-set enums put the tolerance obligation on the consumer, which only works if the set only ever grows. Most golden responses do not carry capabilities at all. Many commands return a bare array
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- eyelock/ynh
- 源文件
- .claude/skills/capability-bump/SKILL.md
- 固定版本
- 3a2944a97f6341a43490dac4e5b1fd37e8c3b6e6
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:eyelock/ynh · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-10T23:01:52.077Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。