verify-changes
What it does
This skill runs the right checks after a code change and keeps fixing until they pass. It is for developers who want an agent to confirm its edits work before it reports success.
When to use it
- ✓When your agent has just edited a source file and needs to confirm it works.
- ✓When you want the build, lint or tests run before a pull request is opened.
- ✓When a check fails and you want the agent to fix the cause and run it again.
Skill link
https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-examples/agents/agentscope-codingagent/src/main/resources/workspace-templates/skills/verify-changes/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Edit the login handler, then run the build, lint and the login test to make sure everything passes before you tell me it is done.”
5 new skills a week. 1 minute to read.
How it works
The skill finds the check commands that match the project, such as the build, lint or a single test file, and runs them on the files that changed. It reads the output as the truth, fixes the cause of any error and runs the same command again.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Verify Changes
Editing a file is only half a step. Always close the loop by verifying before you mark work done or open a PR. This is the manual equivalent of an IDE/LSP diagnostics loop.
Procedure
- Detect the project's check commands from its config files:
- Node/TS:
package.jsonscripts (build,lint,typecheck),tsconfig.json->npx tsc --noEmit,npx eslint <changed files>. - Python:
ruff check <path>,mypy <path>,pytest <specific test file>. - Java/Maven:
mvn -q -pl <module> compile, then the single relevant test class via-Dtest=<ClassName>. - Gradle:
./gradlew :<module>:compileJava/:<module>:test --tests <ClassName>.
- Node/TS:
- Run ONLY the checks and tests directly related to the files you changed. Never run the full test suite.
- Disable color output so logs are readable:
NO_COLOR=1,--no-color, or--no-colors. - Read the output as ground truth. If it reports errors, they are real — do not claim success.
- Fix the root cause, then re-run the SAME command. Repeat until it passes.
Rules
- Only mark a todo
completedonce its verification command passes. - If you cannot find a check command, at minimum compile/parse the changed files.
- Do not disable or delete failing tests to make checks pass.
FAQ
Does it run the whole test suite?
No, the skill runs only the checks and tests directly related to the changed files.
Can it disable failing tests to pass?
No, the skill says not to disable or delete failing tests.
What if there is no check command?
At minimum, the skill compiles or parses the changed files.
Details
Original description by the author
Verify code changes by running the project's typecheck, build, lint, and targeted tests, then fix and re-run until clean. Use after editing any source file.
Popularity
- GitHub stars
- 6.2k
- Ranking position
- #14389
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agentscope-java
6.2kHelps your agent write non-blocking Java code for AgentScope, a multi-agent framework built on Project Reactor.
data-report
6.2kHelps your agent summarize a dataset into a report with averages, totals, ranges and trends, saved as a Markdown file.
data-transform
6.2kHelps your agent convert a data file between formats such as CSV and JSON, so the data can be used in other tools.
git-changelog
6.2kHelps your agent write a changelog or release notes from a Git history, grouped into features, fixes and other changes.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.