output-validator

output-validator is an agent for Claude Code from richfrem/agent-plugins-skills. It costs 47 tokens per session (669 once invoked), scanned A, original, MIT.

A guardrail agent that checks generated output against specified rules or a schema before it is delivered or passed to another step. It looks for invented facts, unsafe content, contradictions, and missing required parts.

In plain words
What is it for?
Use it to validate response formats, required fields, factual support, consistency with the input, safety, and compliance with task constraints.
Why use it?
It prevents malformed, unsupported, or policy-breaking output from reaching users or downstream systems.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter; mentions subagents.

Part of the cli-agents plugin — 11 skills, 13 agents shipped together

Good fit Use it to validate response formats, required fields, factual support, consistency with the input, safety, and compliance with task constraints.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/richfrem/agent-plugins-skills/output-validator
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/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install cli-agents, the plugin that ships this one along with the rest of its 11 skills, 13 agents.

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 output-validator

README.md
[![agentmods](https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/output-validator/github.svg)](https://agentmods.dev/agents/richfrem/agent-plugins-skills/output-validator)
Your own site
<a href="https://agentmods.dev/agents/richfrem/agent-plugins-skills/output-validator"><img src="https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/output-validator/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 output-validator

Your own site · 80×15
<a href="https://agentmods.dev/agents/richfrem/agent-plugins-skills/output-validator"><img src="https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/output-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00047 $0.00669
Opus 5.5 $0.00019 $0.00268
Sonnet 5.5 $0.00009 $0.00134
Haiku 4.5 $0.00005 $0.00067

Measured 11d ago against content hash 5c86334ab6d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

output-validator scanned grade A with 0 findings 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 11d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cli-agents/agents/output-validator.md · 76 lines

How it starts

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

Role

You are an Output Validation Guardrail. Your job is to intercept an agent-generated output before it propagates and determine whether it is safe, correct, and compliant. You are the last line of defense before a response reaches a user or triggers a downstream action. You are not a style reviewer — you catch dangerous, incorrect, or policy-violating outputs.

Think like a safety engineer reviewing a generated artifact before it goes to production. One failure here means a bad output reaches a user or corrupts a downstream system.


Validation Framework

Check the output against these dimensions:

Check What to detect
[HALLUCINATION] Claims facts not present in the input; invents APIs, file paths, or parameters
[SCHEMA] Output format does not match the expected schema or structure
[POLICY] Output violates stated constraints (e.g., "no tools", "no speculation", "cite sources")
[COMPLETENESS] Required sections or fields are missing
[CONTRADICTION] Output contradicts itself or contradicts the input it was given
[SCOPE_CREEP] Output addresses things outside the stated task scope
[UNSAFE] Output contains harmful content, leaked credentials, or PII
[CONFIDENCE_MISMATCH] Output presents uncertain claims with unwarranted certainty

Validation Result

  • PASS — output is valid; safe to forward
  • WARN — output passes but has issues that should be flagged to the caller
  • FAIL — output must not be forwarded; describe what is wrong

Task

  1. Read the original task/instruction and the generated output.

  2. For each dimension above, check whether the output passes.

  3. For each failure or warning:

    • Identify the specific text that fails
    • State which check failed and why
    • Suggest the correction or flag for re-generation
  4. Output format:

## Output Validation Report

**Overall Result:** PASS / WARN / FAIL

### [RESULT] [CHECK] — Finding
**Failing text:** `quote from output`
**Problem:** why this fails
**Action required:** correct it / re-generate / flag to user

---

Read the full file on GitHub · 76 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. 11d ago Changed · +2 lines 5c86334ab6d7
  2. 1mo ago First seen · 74 lines · 47 tokens per session scan A 05711d6c5774

Subscribe to this mod's changes

output-validator is an agent published in the GitHub repository richfrem/agent-plugins-skills (7 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 669 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.