# AI Test Loop

> Force an independent critic to score your agent's work 0-100 with real commands, loop until the threshold, and block delivery on a fail-closed security gate.

AI Test Loop is a free AI agent skill on Agensi by Samuel Andrade, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Samuel Andrade](https://www.agensi.io/creators/samuel-andrade)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ai-test-loop
- Tags: testing, code-review, automation, devops

## About this skill

The builder is not allowed to grade its own homework. This skill turns "looks done" into
"verified, scored, and independently reviewed" — the loop either reaches the threshold with
evidence, or it reports exactly which gaps remain.

Use it whenever an agent produced something a human will rely on: code, UI, a pipeline, a
document, a data migration. Not for throwaway exploration.

| Role | Who | Job |
|---|---|---|
| Orchestrator | the agent running the task | picks checks, runs rounds, fixes infrastructure, owns the report |
| Builder | the agent/model that wrote the artifact | fixes gaps, one class of gap per pass |
| Critic | a **script you write** (`loop_runner.py` + your checks) | runs real commands, returns a 0-100 score and a gap list |
| Reviewer | a **separate** agent/model context | audits critic + builder, votes, can reopen the loop |

Rule zero: builder ≠ critic ≠ reviewer. If the same context does all three, the loop is theatre.
Run steps 1-3 below in the working session, then drive the script for the machine part.

## Requires

- Playwright
- Node.js
- axe

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the AI Test Loop skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does AI Test Loop do?

Force an independent critic to score your agent's work 0-100 with real commands, loop until the threshold, and block delivery on a fail-closed security gate.

### Which AI agents support AI Test Loop?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use AI Test Loop?

Connect your AI agent to Agensi through MCP, then ask it to use AI Test Loop on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
