# Verification loop

> Verification loop is an open-source agent skill for developer tools. Runs build, lint, tests, coverage and diff review before an agent reports a stage done. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Nabwinsaud/forgeline/tree/main/skills/verification-loop
- **Repository:** https://github.com/nabwinsaud/forgeline
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** verification-loop
- **Collection:** https://github.com/Nabwinsaud/forgeline
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill gives an agent a fixed pre-completion routine. Before reporting a build, test or fix stage as passed, the agent works through nine steps: locating the project's own commands, then building, typechecking, linting and formatting, running the full test suite, checking coverage of changed files, regenerating code and confirming the tree stays clean, scanning for secrets and stray files, reviewing the diff against the acceptance criteria, and confirming the commit state. Any failure sends the agent back to the first step.

The guide includes command tables for Go, TypeScript and Python, and it prefers commands defined in a project's own harness, Makefile, package.json or pyproject.toml over the defaults. It also sets strict status rules: a stage passes only when every step succeeded on the current HEAD, fails if the suite cannot be made green, and goes to a human when the environment is broken for reasons unrelated to the change.

The skill expects a git repository and the relevant language toolchain. It refers to a domain harness file and a checks script that the agent may read and run but not edit. The skill also defines a structured report format listing files changed, tests added, commands run and notes.

## When your agent uses it

> The checks an agent runs before reporting a job stage as done - build, typecheck, lint, tests, coverage of changed code, codegen freshness and a self-review of the diff - plus the report format. Use when finishing any build, test or fix stage, before returning pass.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Nabwinsaud/forgeline/tree/HEAD/skills/verification-loop)
- [License: MIT](https://github.com/Nabwinsaud/forgeline/tree/HEAD/skills/verification-loop)

## Features

- **Staged build and lint checks:** Covers build, typecheck, lint and format commands for Go, TypeScript and Python projects.
- **Full test suite and coverage:** Requires running the whole suite and checking coverage of the files that were changed.
- **Codegen freshness check:** Regenerates generated code and confirms the working tree is unchanged afterwards.
- **Secrets and junk scan:** Looks for leaked credentials, stray build output and unwanted files in the diff.
- **Self-review of the diff:** Checks each acceptance criterion against code and tests, and flags debug leftovers and unvalidated input.
- **Structured pass report:** Defines a fact-based report of commands run, tests added and status outcomes.

## Good for

- Verify my changes build, pass lint and tests before finishing this task
- Check that the test coverage of the files I touched is adequate
- Make sure generated code is up to date before I commit
- Review my diff for leftover debug prints or unhandled errors
- Report whether this build stage passes or needs fixing

## Install

### Claude Code

This skill ships in the `forgeline` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Nabwinsaud/forgeline
/plugin install forgeline@forgeline
```

Or copy only this skill to `~/.claude/skills/verification-loop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/verification-loop &&
cp -R "$tmp/skills/verification-loop" ~/.claude/skills/verification-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/verification-loop` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/verification-loop` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/verification-loop &&
cp -R "$tmp/skills/verification-loop" ~/.agents/skills/verification-loop &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/verification-loop` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/verification-loop` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/verification-loop &&
cp -R "$tmp/skills/verification-loop" ~/.cursor/skills/verification-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/verification-loop` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Nabwinsaud/forgeline.git --path skills/verification-loop
```

Or copy the folder to `~/.gemini/skills/verification-loop` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/verification-loop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/verification-loop &&
cp -R "$tmp/skills/verification-loop" ~/.copilot/skills/verification-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/verification-loop` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git
```

Then copy `forgeline/skills/verification-loop` into your agent's skills folder as `verification-loop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Verification loop trigger?

Its description says it applies when finishing any build, test or fix stage, before returning a pass status.

### Does Verification loop change my code or the checks script?

It instructs the agent to read and run the project's checks script but not to edit it. The routine itself runs builds, tests and git inspection commands.

### Which languages does Verification loop cover?

The command tables cover Go, TypeScript and Python, and it falls back to project-defined commands when those are available.

### How do I install Verification loop in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/verification-loop to use it in all your projects, or to .claude/skills/verification-loop in one project. Or install the forgeline plugin, which includes it: /plugin marketplace add Nabwinsaud/forgeline, then /plugin install forgeline@forgeline.

### Does Verification loop run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Verification loop?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Verification loop?

The closest alternatives to Verification loop are Vibe pre commit audit, Project review, Verify, Validate skills and Go code review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Vibe pre commit audit](https://ai-powered.com/skills/vibe-pre-commit-audit): Vibe pre commit audit is an open-source agent skill for security.
- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Verify](https://ai-powered.com/skills/verify-k1-c): Verify is an open-source agent skill for developer tools.
- [Validate skills](https://ai-powered.com/skills/validate-skills): Validate skills is an open-source agent skill for developer tools.
- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [Maintain formal verification skill](https://ai-powered.com/skills/maintain-formal-verification-skill): Maintain formal verification skill is an open-source agent skill for security.
- [Principle prove it works](https://ai-powered.com/skills/principle-prove-it-works): Principle prove it works is an open-source agent skill for developer tools.
- [TDD workflow](https://ai-powered.com/skills/tdd-workflow-nabwinsaud): TDD workflow is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/verification-loop-nabwinsaud
