AGENT SKILL

变更验证

verify_changes

在认定工作完成之前使用——运行只读的质量门禁和测试,解读失败原因,并确认变更正确无误。这是工作循环中的验证步骤。

License 许可
Apache-2.0
最近更新
2026-09-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
verify_changes
risk
read-only
family
quality-testing-debugging
profile
core
summary
Run the read-only gate (`make check`, `make check-sync`) and report pass/fail honestly before calling work done
maturity
stable
triggers
[ "verify", "run the checks", "quality gate", "make check", "is it done", "final checks", "run the tests and report", "quality checks", "before merging" ]
visibility
developer
description
Use before considering work done — run the read-only quality gate and tests, interpret failures, and confirm the change is correct. The verification step of the working loop.
auto_trigger
true
small_model_path
true

02 资源文件 1

03 SKILL.md 正文

Skill: verify_changes

Purpose

Confirm that a change is correct and meets the repository's quality bar before handing it off, using the existing read-only gates. Verification observes; it does not mutate the tree.

Required Input

  • The change to verify (working tree, branch, or specific files).
  • Any feature-specific behavior that should be exercised.

Output Format

  • The commands run and their results.
  • A pass/fail verdict per gate (format, lint, types, security, tests, sync).
  • For failures: the failing command, the relevant output, and the smallest fix.
  • Relevant manual checks performed (e.g. a CLI/app run, behavior exercised).
  • Known remaining risks.
  • Whether the implementation is ready for review.

Execution Rules

  1. Run the repo's documented quality gate when present (here: make check — ruff format check, ruff lint, bandit, mypy, pytest + coverage). In a workspace without it, use that repo's documented runner (Makefile, tox.ini, scripts/), then python -m pytest <target>, then direct execution of the real test functions — never a rewritten synthetic approximation.
  2. If skills, agents, or adapter files changed, also run make check-sync.
  3. Do not mutate files during verification. Apply fixes deliberately with make fix / make format, then re-verify.
  4. Exercise the actual behavior when feasible (focused pytest, a CLI run, or the generate_e2e_tests skill for critical flows).
  5. Report honestly: if a gate fails or a step was skipped, say so.
  6. A completion claim without an executed verification command is a defect, not a deliverable.
  7. Comply with .github/automation.md (CI is read-only; fix locally).

04 同仓库更多 Skills