Agent Done Gate: Prove Tasks Finished, Not Claimed

    by Vijay Kumar

    1

    AI agents are cheerful and quick to say "Done!" even when a test was skipped, a file was never written or a flag does nothing.

    $6

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    What it does

    • Writes 3 to 8 checkable completion criteria before any work starts, all marked failed
    • Separates builder and verifier roles so an agent never grades its own work
    • Runs file, text-match, command and coverage checks fresh and records the evidence for each
    • Treats judgment-based criteria as failed until a verifier supplies quoted evidence
    • Locks the criteria file with a checksum so edits after the fact fail the gate
    • Prints a pass or fail table with the next fix, and records any human override

    Who it's for

    Developers and technical leads

    Stop trusting your agent when it says a feature is finished and actually verify the code works.

    Try asking: “Run a completion check on the new login feature I just built.”

    Project managers overseeing AI work

    Get a clear report of what is actually done versus what the agent just claims is done.

    Try asking: “Verify this project is really done using the definition of done criteria.”

    Founders building with agents

    Ensure every new piece of code meets your quality standards before you accept it.

    Try asking: “Check if the payment integration is finished according to our original plan.”

    Agent Done Gate: Prove Tasks Finished, Not Claimed

    Example session with this skill installed

    Add a --dry-run flag to the CLI in demo_project. Before you build, write the completion criteria. When you finish, run the verify gate and only tell me it's done if it passes.

    • Read your context and instructions
    • Compiled the agent done gate

    Criteria written first (all met: false): flag-exists, tests, help-text, readme, docs-explain. The builder then implemented the flag and reported "done". The verifier ran the gate:

    $ python3 scripts/run_gate.py examples/criteria.example.json --cwd examples/demo_project
    Verify gate: FAIL (4/5 met)
    
    | id | kind | met | evidence |
    |---|---|---|---|
    | flag-exists | contains | yes | cli.py:5 p.add_argument("--dry-run", action="store_true", help="print |
    | tests | command | yes | exit 0: 1 passed |
    | help-text | command | yes | exit 0:   --dry-run   print planned changes, write nothing |
    | readme | file | yes | README.md exists, 63 bytes |
    | docs-explain | llm | no | needs independent judgment with evidence (default FAIL) |
    
    

    The agent did not report completion. It read the README, quoted line 3 ("--dry-run prints planned changes and writes nothing") into the judgments file, and re-ran:

    Verify gate: PASS (5/5 met)
    

    Agent report: Done, with evidence: 5 of 5 criteria met on a fresh run (flag present at cli.py:5, test exits 0, help text lists the flag, README exists and explains the behaviour). Criteria were frozen before the build and were not edited.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    AI agents are cheerful and quick to say "Done!" even when a test was skipped, a file was never written or a flag does nothing. The builder is the worst judge of its own work.

    Agent Done Gate fixes the incentive. Before building, the agent writes the finish line as a short list of checkable criteria, such as "cli.py contains --dry-run", "pytest -k dry_run exits 0" or "coverage is at least 80%". Every one starts as failed. When the work is finished, a separate verifier step runs every check fresh, records the evidence (exit code, matched line, coverage number) and only then turns a criterion green. Phrases like "all done" count for nothing.

    The bundled runner script makes this concrete. It runs the checks without a shell, inside your project folder, with a timeout, and prints a table you can paste into a PR. You can freeze the criteria file with a checksum, so if anyone edits it later to make the work pass, the gate fails with "criteria changed after freeze". For criteria that only a person or model can judge, the runner accepts a judgments file, and a judgment without quoted evidence is ignored.

    You end up with a clear yes or no on "is it really done", an evidence table, and a short list of what to fix next. Works for code changes, data tasks, documents and migrations.

    Automated checks only work on files and commands the agent can access locally. LLM-based checks are used only when runnable tests are impossible.

    Files: `SKILL.md`, `README.md`, `scripts/run_gate.py` (about 7 KB, standard library only), `references/writing-good-criteria.md`, `examples/`. Kinds: file, contains, command, coverage, llm. Flags: `--freeze`, `--dry-run`, `--judgments`, `--report`, `--allow-shell` (off by default). Permissions to expect in the scan: file read, subprocess execution of commands written in the user's own criteria file (no shell by default, timeout enforced).

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    It prevents your AI agent from claiming a task is done based on its own opinion. By requiring a list of checkable requirements to be written before the work starts, it forces the agent to prove every item is finished with evidence like finding a specific file or running a test command.

    You only need a way for your agent to read and write files. The skill uses a Python script and can read from simple checklists in your notes or structured files like JSON or Markdown to track the requirements.

    The skill provides a clear table showing every requirement, whether it passed or failed, and the specific proof for each. For example, it might show that a file exists and has the correct size, or that a specific command finished successfully.

    It cannot check external websites or private online accounts unless your agent already has access to them. It is also limited to checking things it can see in your files, like code, data, or documents.

    You can tell your agent to use it by saying phrases like verify this is really done, perform a completion check, or use the definition of done. It is best to trigger it before the agent reports a task as complete.

    The skill separates the worker role from the checker role. It requires the agent to act as an independent verifier that ignores its own previous reasoning and only looks at fresh, runnable evidence to decide if the task truly meets the criteria.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.