gitlink-cli/skills/gitlink-cli-contract-guard/examples/json-output-review.md

20 lines
581 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 示例JSON 输出契约审查
用户请求:
```text
Use $gitlink-cli-contract-guard 看一下这个改动会不会破坏 `--format json` 输出,尤其是脚本依赖的字段。
```
期望动作:
1. 定位输出相关代码和测试。
2. 判断字段名、字段类型、envelope 是否变化。
3. 核对是否有测试覆盖机器可读输出。
4. 给出“安全 / 需补验证 / 高风险”的结论。
输出要点:
- 区分“新增字段”与“破坏字段”。
- 如果只是怀疑,不要下过度确定的结论,要把缺失证据写清楚。