Skip to content
Skillpedia
Testing6.2k · #14389

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.md

Copy 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

Use this skill to help me: https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-examples/agents/agentscope-codingagent/src/main/resources/workspace-templates/skills/verify-changes/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  1. Detect the project's check commands from its config files:
    • Node/TS: package.json scripts (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>.
  2. Run ONLY the checks and tests directly related to the files you changed. Never run the full test suite.
  3. Disable color output so logs are readable: NO_COLOR=1, --no-color, or --no-colors.
  4. Read the output as ground truth. If it reports errors, they are real — do not claim success.
  5. Fix the root cause, then re-run the SAME command. Repeat until it passes.

Rules

  • Only mark a todo completed once 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.

repo: agentscope-ai/agentscope-java

Popularity

GitHub stars
6.2k
Ranking position
#14389
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills