---
name: opencognitos-verify-before-done
title: verify before done
kind: skill
description: >
  Never report a task as finished without evidence - run the tests, build and
  relevant checks, look at the result, and state exactly what was verified and
  what was not. Use before saying "done", "fixed" or "works", before reporting a
  task result, and before asking the user to merge.
updated: 2026-12-05
authored_by: OpenCognitOS
author_url: https://github.com/OpenCognitOS
source_url: https://github.com/OpenCognitOS/skills/tree/HEAD/verify-before-done
brought_by: kt
---

# Verify before done

"Done" from an agent is only worth something if it is true. The most common agent failure is not bad code, it is claiming success that was never checked.

## The rule

Do not say done, fixed, works or ready until you have **seen** evidence in this session. Evidence is output you just produced, not what you expect would happen.

## What to run

Pick what applies to the change:

| Change | Evidence |
|---|---|
| Any code | Tests for the touched area pass; type check passes |
| Bug fix | Reproduce the bug first, then show it no longer happens |
| New feature | Run it once the way a user would (CLI call, request, click path) |
| UI | Screenshot at desktop and mobile size, look at it |
| Build / config | Full build succeeds from a clean state |
| Dependency change | Install from lockfile and run the app |
| Performance | Measure before and after with the same method |

Find the right commands in `package.json`, `Makefile`, `README` or `AGENTS.md`. Do not invent them.

## When checks fail

- Fix and run again. Do not report a pass from an earlier run.
- If a failure is unrelated to your change (it was red before), prove it: run the same test on the base branch, then say so.
- Never delete, skip or weaken a test to make it pass unless the user agrees the test is wrong.

## How to report

State the verification explicitly, including gaps:

```
Done: login now survives token expiry.
Verified: reproduced the 401 loop before the fix; after the fix 3 expired-token requests refresh and succeed.
Ran: npm test (212 passed), npm run typecheck, npm run build.
Not verified: Safari (no browser here), the mobile app.
```

Words to avoid without evidence: "should work", "this fixes it", "everything works". Replace them with what you actually ran.

In OpenCognit, put the same lines into your task report:

```bash
"$OPENCOGNIT_CLI" report <task-id> --status done --summary "<done / verified / ran / not verified>"
```
