Verify

From Brain-up/brn · View interactive version

Verify is an AI agent skill from the GitHub repository Brain-up/brn. Run the backend verification loop after Kotlin/Spring code changes — Kotlin style + unit tests via `gradlew verify`, plus integration tests when repos/migrations changed — and drive fixes until green. Use after editing backend code or when the user asks to verify/check the build.

How to use this skill

Skill file

Verify

The routine for confirming a backend change is correct. Fix the implementation

to satisfy the checks; never weaken the checks to fit the implementation.

Steps

  1. Scope the change. Note which files/modules changed. If you touched

repositories, Flyway migrations (src/main/resources/db/migration), or any

*IT test, mark that integration verification is required.

  1. Fast feedback while iterating (optional). For a quick loop on one area,

run the narrowest useful target first, e.g.

gradlew test --tests "com.epam.brn.service.SomeServiceTest".

  1. Run the gate. gradlew verify — this is ktlintCheck + unit test, no

Docker. Do not treat the task as done until it exits 0.

  1. On failure, find the root cause. Read the actual failure (assertion,

compile error, or ktlint rule). Fix the implementation. Only edit a test

if the test itself is provably wrong — then state explicitly what you changed

and why. Never delete/skip/@Disabled a test just to go green.

  1. Repeat steps 3–4 until gradlew verify passes.
  1. Style. Run gradlew ktlintFormat before finishing; the ktlint gate fails

the build otherwise. Re-run gradlew verify if it reformatted anything.

  1. Integration (only if step 1 flagged it). Ensure Docker is running, then

gradlew integrationTest. These use a Postgres Testcontainer and are slow —

run them once at the end, not on every edit.

Conventions to respect

Mockito, AssertJ, Kluent, kotlin.test, or JUnit Assertions (see CLAUDE.md).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.