code-change-verification
Verify an AI-assisted code change before declaring it complete, using focused tests, repository checks, and clear residual-risk reporting.
- License 许可
- MIT
- 最近更新
- 2026-04-27
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- code-change-verification
- description
- Verify an AI-assisted code change before declaring it complete, using focused tests, repository checks, and clear residual-risk reporting.
03 SKILL.md 正文
Code Change Verification
Use this skill when you have changed code and need to decide whether the work is ready to hand back to a maintainer. It is useful for Codex, Claude Code, Gemini CLI, OpenCode, and other terminal-based coding agents.
When To Use
- After implementing a bug fix, feature, refactor, dependency update, or test change.
- Before saying a task is done, ready for review, or safe to merge.
- When a command failed and you need to explain what was verified and what remains uncertain.
- When the repository has maintainer-provided commands in
AGENTS.md, package scripts, CI config, or task YAML.
Workflow
- Re-read the request,
AGENTS.md, and any task-specific instructions. - Inspect the diff and list the behavior that changed.
- Identify the narrowest relevant checks first, such as a package test, single test file, typecheck, or targeted build.
- Run the focused checks from inside the repository, using existing package scripts when available.
- Run broader required checks when the change affects shared behavior, public APIs, generated output, CI, or docs.
- If a check fails, stop and fix the cause when it is in scope. If it is out of scope or environment-related, record the exact failure and why you are not fixing it.
- Inspect the final diff for accidental edits, generated noise, credential exposure, broad file writes, and changes outside the requested scope.
- Summarize what passed, what failed or was skipped, and any residual risk. Do not claim the checks prove correctness.
Safety Boundaries
- Do not read secret or credential files, SSH keys, cloud credentials, or unrelated private files.
- Do not run destructive commands or commands that write outside the repository.
- Do not approve, merge, push, deploy, publish, or auto-accept changes unless the maintainer explicitly asked for that exact action.
- Do not hide failing checks. Report them with the command, exit status, and relevant output.
- Do not say verification guarantees safety, security, or correctness. Say what was checked.
Examples
Targeted verification after a CLI change:
Changed behavior:
- maintainerbench lint now reports invalid skill frontmatter.
Checks run:
- pnpm --filter @maintainerbench/cli test
- pnpm typecheck
Result:
- Both checks passed.
- I did not run the full repository build because this change only touched test-covered CLI lint logic.
Repository-wide verification before handoff:
Checks run:
- pnpm test
- pnpm build
- pnpm exec maintainerbench lint --json
Residual risk:
- These checks cover the local test suite and MaintainerBench self-lint, but they do not guarantee runtime behavior in every downstream repository.
Failed verification:
Command failed:
- pnpm --filter @maintainerbench/cli test
Observed failure:
- eval.test.ts failed because the report status was still "risk" instead of "needs-review".
Next step:
- I need to update the status mapping or adjust the test expectation before declaring the change complete.
04 同仓库更多 Skills
pr-review
Review an AI-assisted pull request for correctness, safety, maintainability, tests, and documentation, then produce a maintainer-friendly review.
docs-sync
Update documentation when public behavior, commands, configuration, templates, workflows, or reports change.
broken
暂无简介
code-change-verification
Verify code changes with focused tests and required repository checks.
pr-review
Review AI-assisted pull requests for correctness, safety, and maintainability.
docs-sync
Keep documentation aligned with user-facing code and workflow changes.