verify-before-done
Use when about to say a Godot change is done, fixed, passing or ready, or before committing or opening a pull request.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- verify-before-done
- description
- Use when about to say a Godot change is done, fixed, passing or ready, or before committing or opening a pull request.
03 SKILL.md 正文
Verify before done
The Iron Law
NO "DONE", "FIXED" OR "PASSING" WITHOUT A FRESH test -Json THAT SHOWS ok: true
Evidence before claims. If you have not run it in this message, you cannot say it passes. Violating the letter of this rule
is violating its spirit. With the kit's plugin enabled, a Stop hook backs it up: once for each set of changes, it stops you from ending
your turn while Godot files changed since the last full passing test run, and tells you to run the tests. If the tests ran
and failed, or you stop again, it lets the turn end, so report the result, or say why the tests could not run. The hook checks only that tests passed after
the last edit; it says nothing about whether the design or the code is good.
The gate
- Run the full suite, not the one test you were iterating on:
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 test -Json -Quiet - Read
ok,error.codeand everyrunnerResults[]entry.ok: falseis not done, whatever else is true. - Check what ran.
detect -Jsonlistsrunners; the runner that covers your change must be inrunnerResultswithtotal > 0. A UI or scene change needsvalidateandflows/smoke, not only unit tests. - Check the release path when you touched csproj,
project.godot, export presets or autoloads:doctor -Jsonhas noFAIL, andexport -Json -Quiet -Runpasses for each shipped preset (thegodot-verifiersubagent can run it). - Only then say what you ran and what it showed, in numbers: "test -Json: ok, dotnet 8/8, gut 2/2, flows 1/1".
Rationalizations
| Thought | Reality |
|---|---|
| "It runs fine in the editor" | The editor hides missing exports, trimmed C# and release-only errors. Run the kit. |
| "I only changed a scene / a constant" | validate and smoke exist for exactly the files no unit test touches. |
| "The unit test I wrote passes" | You ran one test. Other code may now fail. Run all of it. |
| "That failure is a flake" | A flake is a diagnosis, not a reason. Re-run once to confirm (test -Retry 1), then root-cause. Never skip the test. |
| "It passed on the retry, so it's green" | flaky[] lists it: report it by name. A test that fails now and then may hide a real bug. |
| "Quarantine it and move on" | Only the user decides that, with an owner and an end date in quarantine.json. Report quarantined[] too. |
| "No time to run everything" | The kit is the time saver. A wrong "done" costs a round trip. |
| "The last run was green" | That was before your change. Fresh evidence only. |
| "Zero tests ran, so nothing failed" | Zero tests fails by design. The framework is not wired; see godot-test-loop. |
| "I'll lower the coverage floor / ignore that engine error" | That moves the goalposts. Fix the cause, or ask the user. |
Red flags - stop
Words like "should work", "probably", "looks good", "I believe". Relying on a partial run. Reporting success from a tool's own message instead of the JSON. Committing with an unread failure. All of these mean: run the gate.
Reporting honestly
If something failed, say which runner, which error.code and the failing name/file/line, then fix or ask. If you
skipped a step (no export templates, no Windows runner), say that it was skipped and why. Never present a skipped check as passed.
04 同仓库更多 Skills
over-budget
Use when a fixture exceeds the size budget.
bad-yaml
暂无简介
bad-workflow-description
Use when testing; runs the kit and then reads the JSON.
bad-version
Use when a fixture quotes a stale package version.
bad-value
Use when a fixture passes a value outside a parameter's set.
bad-trigger
Helps with Godot tests.