AGENT SKILL
test-backed-change
Add or update behavior-focused tests for code changes and run appropriate verification. Use when behavior changes, logic is added, or existing behavior could regress.
- License 许可
- Apache-2.0
- 最近更新
- 2026-08-14
- Stars
- ★ 19
- Forks
- 2
01 前言 Front Matter
- name
- test-backed-change
- description
- Add or update behavior-focused tests for code changes and run appropriate verification. Use when behavior changes, logic is added, or existing behavior could regress.
03 SKILL.md 正文
Test-Backed Change
Use this skill whenever implementation changes behavior.
Read templates/test-proof.md when reporting verification evidence.
Workflow
- Identify the behavior being changed.
- Find the existing test style and test level for that behavior.
- Add or update the smallest test that would fail if the behavior regressed.
- Prefer public interfaces and observable behavior over implementation details.
- Run the targeted test first.
- Run broader tests when touched surface, shared code, or risk justifies it.
- Report exact commands and results.
Guardrails
- Do not add tests that only assert implementation details.
- Do not delete or weaken failing tests to make the suite pass.
- Do not claim behavior is verified when only typecheck or lint ran.
- If no test can be added reasonably, explain why and provide the strongest available alternative evidence.
Output
Test Proof
- behavior:
- test:
- command:
- result:
- remaining gap:
04 同仓库更多 Skills
example-skill
暂无简介
★ 19
su-status
从 docs 人读真相源与 .ccb 协调件读取当前项目、Requirement 或子任务状态。
★ 19
su-revise-breakdown
根据用户反馈重写 Requirement breakdown draft。
★ 19
su-review
审查执行回执、diff 和验证证据,决定通过、返工、replan 或升级用户。
★ 19
su-resume
从 docs 人读真相源与 .ccb 协调件恢复 paused/deferred/in-progress 主体的上下文。
★ 19
su-reconcile
AI-native 自检 docs 人读真相源、.ccb 协调件与 Console 投影漂移,并按审批结果执行修复。
★ 19