Verify completion

From xoai/sage · View interactive version

Verify completion is an AI agent skill from the GitHub repository xoai/sage. Verifies implementations and fixes actually work by executing commands and observing real results. Never trusts claims. Use as the final quality check after implementation, after a bug fix, or when the user asks "is it done", "does it work", "verify this", or "confirm the fix".

How to use this skill

Skill file

<!-- sage-metadata

cost-tier: sonnet

activation: mandatory

tags: [verification, quality, completion, testing]

inputs: [implementation, test-suite]

outputs: [verification-result]

-->

Verify Completion

Run the code. Run the tests. Observe the results. Don't trust claims.

Core Principle: An implementation is not done when the agent says "done."

It's done when evidence proves it works. Evidence means command output,

test results, and observable behavior — not descriptions of what should happen.

When to Use

As the final gate (Gate 5) after spec compliance, constitution compliance,

code quality, and hallucination checks have all passed. Also after any bug fix,

before declaring the fix complete.

Process

Step 1: Run All Tests

Execute the full test suite. Not "I believe the tests pass" — actually run them.

Capture: exact command executed
Capture: complete output including pass/fail counts
Capture: any warnings or skipped tests

ALL tests must pass. If any test fails, the verification FAILS — even if the

failing test is unrelated to the current change (you may have introduced a regression).

Step 2: Run Specific Acceptance Criteria

For each acceptance criterion in the spec:

If the spec says "API returns 200 with user.id in body," actually call the API

and inspect the response. Don't just read the code and conclude it would work.

Step 3: Verify Edge Cases

For FIX mode:

For BUILD mode:

Step 4: Produce Result

GATE: verification
RESULT: PASS | FAIL

EVIDENCE:
  Test suite: [X] passed, [Y] failed, [Z] skipped
  Command: [exact command run]
  Output: [relevant output excerpt]

ACCEPTANCE CRITERIA:
  ✓ [criterion 1] — Verified: [evidence]
  ✓ [criterion 2] — Verified: [evidence]
  ✗ [criterion 3] — FAILED: expected [X], got [Y]

ACTION: none | fix-and-retry | escalate-to-human

Rules

it as BLOCKED, not PASS.

Failure Modes

test that captures the actual failure, then fix.

skip verification. Help resolve the environment issue first.

with systematic-debug skill. Don't re-run and hope.

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.