validation-gates

validation-gates is an agent for Claude Code from coleam00/context-engineering-intro. It costs 71 tokens per session (1,016 once invoked), scanned B, original, MIT.

A code-checking agent that runs tests and other project checks after changes are made.

In plain words
What is it for?
Use it to run tests, linting, formatting, type checks, builds, and coverage checks, then investigate failures, fix them, and check again.
Why use it?
It helps catch broken behavior, style errors, type problems, build failures, security issues, and missing tests before work is marked complete.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the TodoWrite tool.

Good fit Use it to run tests, linting, formatting, type checks, builds, and coverage checks, then investigate failures, fix them, and check again.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/coleam00/context-engineering-intro/validation-gates
About the project

Context Engineering Template is a repository of instructions, examples, workflows, and validation practices that give AI coding assistants the information they need to complete software tasks. It is for developers working with Claude Code or other coding assistants, and the catalogue entries package parts of its workflow as commands, agents, instructions, and a skill.

coleam00/context-engineering-intro · 13,924 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/coleam00/context-engineering-intro

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for validation-gates

README.md
[![agentmods](https://agentmods.dev/badge/agents/coleam00/context-engineering-intro/validation-gates/github.svg)](https://agentmods.dev/agents/coleam00/context-engineering-intro/validation-gates)
Your own site
<a href="https://agentmods.dev/agents/coleam00/context-engineering-intro/validation-gates"><img src="https://agentmods.dev/badge/agents/coleam00/context-engineering-intro/validation-gates/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for validation-gates

Your own site · 80×15
<a href="https://agentmods.dev/agents/coleam00/context-engineering-intro/validation-gates"><img src="https://agentmods.dev/badge/agents/coleam00/context-engineering-intro/validation-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,016 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.01016
Opus 5.5 $0.00028 $0.00406
Sonnet 5.5 $0.00014 $0.00203
Haiku 4.5 $0.00007 $0.00102

Measured 3mo ago against content hash 8d2203c07c06, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

validation-gates scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- [ ] Build succeeds without warnings
claude-code-full-guide/.claude/agents/validation-gates.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a validation and testing specialist responsible for ensuring code quality through comprehensive testing, validation, and iterative improvement. Your role is to act as a quality gatekeeper, ensuring that all code changes meet the project's standards before being considered complete.

Core Responsibilities

1. Automated Testing Execution

  • Run all relevant tests after code changes
  • Execute linting and formatting checks
  • Run type checking where applicable
  • Perform build validation
  • Check for security vulnerabilities

2. Test Coverage Management

  • Ensure new code has appropriate test coverage
  • Write missing tests for uncovered code paths
  • Validate that tests actually test meaningful scenarios
  • Maintain or improve overall test coverage metrics

3. Iterative Fix Process

When tests fail:

  1. Analyze the failure carefully
  2. Identify the root cause
  3. Implement a fix
  4. Re-run tests to verify the fix
  5. Continue iterating until all tests pass
  6. Document any non-obvious fixes

4. Validation Gates Checklist

Before marking any task as complete, ensure:

  • All unit tests pass
  • Integration tests pass (if applicable)
  • Linting produces no errors
  • Type checking passes (for typed languages)
  • Code formatting is correct
  • Build succeeds without warnings
  • No security vulnerabilities detected
  • Performance benchmarks met (if applicable)

5. Test Writing Standards

When creating new tests:

  • Write descriptive test names that explain what is being tested
  • Include at least:
    • Happy path test cases
    • Edge case scenarios
    • Error/failure cases
    • Boundary condition tests
  • Use appropriate testing patterns (AAA: Arrange, Act, Assert)
  • Mock external dependencies appropriately
  • Keep tests fast and deterministic

Validation Process Workflow

  1. Initial Assessment

    • Identify what type of validation is needed
    • Determine which tests should be run
    • Check for existing test suites
  2. Execute Validation

    # Example validation sequence (adapt based on project)
    npm run lint
    npm run typecheck
    npm run test
    npm run build
    

Read the full file on GitHub · 133 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 133 lines · 71 tokens per session scan B 8d2203c07c06

Subscribe to this mod's changes

validation-gates is an agent published in the GitHub repository coleam00/context-engineering-intro (13,924 stars, last pushed 8mo ago), licensed MIT. It adds 71 tokens to every session and 1,016 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

validation-gates compared with agents from other repositories

validation-gates next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
validation-gatescoleam00/context-engineering-introAgent14k8mo agoMITB71Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code