verification-loops
Skill39 starsChanged 8 months agoMITView on GitHub
Verification Loops are systematic evaluation pipelines that validate agent outputs at every stage of execution.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- itallstartedwithaidea/claude-googleadsagentword for word, first seen May 21, 2026
Other versions1 project uses a version of this.
Word for word · 1
- itallstartedwithaidea/claude-googleadsagent★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository74 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- continuous-learningSkill
- entity-memory-managementSkill
- knowledge-base-injectionSkill
- long-horizon-workflowsSkill
- mcp-server-creationSkill
- memory-persistenceSkill
- multi-model-routingSkill
- parallel-agent-orchestrationSkill
- proactive-intelligenceSkill
- token-optimizationSkill
- adversarial-resilienceSkill
- agent-instinct-systemSkill
- anthropic-tool-masterySkill
- cognitive-scaffoldingSkill
- context-engineeringSkill
- multi-harness-portabilitySkill
- prompt-architectureSkill
- self-healing-agentsSkill
- session-archaeologySkill
- ad-copy-generationSkill
- audience-targetingSkill
- budget-optimizationSkill
- competitor-analysisSkill
- conversion-trackingSkill
- google-ads-auditSkill
- keyword-researchSkill
- landing-page-auditSkill
- pmax-optimizationSkill
- quality-score-optimizationSkill
- remarketing-strategySkill
- shopping-adsSkill
- ci-cd-pipelinesSkill
- cloudflare-workersSkill
- configuration-managementSkill
- edge-renderingSkill
- observabilitySkill
- service-discoverySkill
- ml-model-integrationSkill
- programmatic-videoSkill
- web-asset-generationSkill
- ai-chat-studioSkill
- assistant-presetsSkill
- batch-processingSkill
- knowledge-base-ragSkill
- low-code-generationSkill
- workflow-orchestrationSkill
- bioinformaticsSkill
- cheminformaticsSkill
- data-analysisSkill
- database-lookupSkill
- geospatial-analysisSkill
- machine-learningSkill
- research-methodologySkill
- scientific-writingSkill
- agent-security-scanningSkill
- codeql-semgrepSkill
- sandbox-hardeningSkill
- secret-protectionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 198
Use that as a validation-agent pattern: after the primary agent produces a finding, spawn a fresh review with the artifact, explicit …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Verification Loops
Part of Agent Skills™ by googleadsagent.ai™
Description
Verification Loops are systematic evaluation pipelines that validate agent outputs at every stage of execution. The fundamental challenge of autonomous agents is trust — how do you know the agent did the right thing? Verification Loops solve this by embedding checkpoint evaluations, continuous assertions, and multi-stage review gates throughout the agent's execution pipeline. This skill draws from the evaluation methodology used in production at googleadsagent.ai™, where Buddy™ verifies every Google Ads recommendation against historical data, budget constraints, and domain rules before surfacing it to users.
The distinction between checkpoint and continuous verification is critical. Checkpoint verification evaluates outputs at defined stage boundaries (pre-commit, post-analysis, before-deploy). Continuous verification runs assertions in real-time during generation, catching drift and hallucination before they propagate. Both approaches are complemented by pass@k metrics — generating multiple candidate outputs and selecting the best one based on grader consensus.
Production verification systems employ typed graders: deterministic graders for schema and constraint validation, LLM-as-judge graders for semantic quality assessment, and human-in-the-loop graders for high-stakes decisions. The combination creates a layered verification net that catches errors at the earliest and cheapest point in the pipeline.
Use When
- Agent outputs directly influence business decisions or user-facing content
- Regulatory or compliance requirements demand audit trails for AI-generated content
- Multi-step workflows need quality gates between stages
- You need to measure and improve agent accuracy over time (pass@k benchmarking)
- Generated code must pass tests before being committed or deployed
- Analysis results must be validated against ground truth or business rules
How It Works
graph TD
A[Agent Output] --> B[Stage 1: Deterministic Grader]
B -->|Pass| C[Stage 2: LLM-as-Judge]
B -->|Fail| D[Reject + Feedback Loop]
C -->|Pass| E[Stage 3: Confidence Scoring]
C -->|Fail| D
E -->|High Confidence| F[Accept Output]
E -->|Low Confidence| G{pass@k Available?}
G -->|Yes| H[Generate k Candidates]
H --> I[Rank by Grader Consensus]
I --> F
G -->|No| J[Human-in-the-Loop Review]
J --> F
D --> K[Error Context Injection]
K --> L[Re-generation with Feedback]
L --> BThe verification pipeline processes every agent output through three stages. Stage 1 applies deterministic graders — schema validation, constraint checking, type verification — that are fast and cheap. Stage 2 invokes an LLM-as-judge that evaluates semantic correctness, completeness, and coherence. Stage 3 computes a confidence score from the combined grader signals. Low-confidence outputs trigger pass@k generation, where multiple candidates are produced and ranked by grader consensus. Rejected outputs receive specific error feedback that is injected into the re-generation prompt.
Implementation
Multi-Stage Verification Pipeline:
interface Grader {
name: string;
type: "deterministic" | "llm_judge" | "human";
evaluate(output: string, context: VerificationContext): Promise<GradeResult>;
}
interface GradeResult {
pass: boolean;
score: number;
feedback: string;
}
class VerificationPipeline {
private stages: Grader[][] = [];
addStage(graders: Grader[]): void {
this.stages.push(graders);
}
async verify(output: string, context: VerificationContext): Promise<VerificationResult> {
const stageResults: StageResult[] = [];
for (const [idx, graders] of this.stages.entries()) {
const grades = await Promise.all(
graders.map(g => g.evaluate(output, context))
);
const stagePassed = grades.every(g => g.pass);
const stageScore = grades.reduce((sum, g) => sum + g.score, 0) / grades.length;
stageResults.push({ stage: idx, grades, passed: stagePassed, score: stageScore });
if (!stagePassed) {
return {
accepted: false,
stageResults,
feedback: grades.filter(g => !g.pass).map(g => g.feedback).join("\n"),
};
}
}
const confidence = stageResults.reduce((sum, s) => sum + s.score, 0) / stageResults.length;
return { accepted: true, stageResults, confidence };
}
}Pass@k Candidate Selection:
async def pass_at_k(task, generator, verifier, k=5):
"""Generate k candidates and select the best by verification score."""
candidates = await asyncio.gather(*[
generator.generate(task) for _ in range(k)
])
scored = []
for candidate in candidates:
result = await verifier.verify(candidate, task.context)
scored.append({
"output": candidate,
"accepted": result.accepted,
"confidence": result.confidence,
"feedback": result.feedback,
})
accepted = [s for s in scored if s["accepted"]]
if accepted:
return max(accepted, key=lambda s: s["confidence"])
return max(scored, key=lambda s: s["confidence"])LLM-as-Judge Grader:
class LLMJudgeGrader:
JUDGE_PROMPT = """You are an expert evaluator. Assess the following agent output
against the given task requirements.
Task: {task}
Output: {output}
Criteria: {criteria}
Respond with JSON:
{{"pass": true/false, "score": 0.0-1.0, "feedback": "specific feedback"}}"""
def __init__(self, judge_model, criteria):
self.judge_model = judge_model
self.criteria = criteria
async def evaluate(self, output, context):
prompt = self.JUDGE_PROMPT.format(
task=context.task_description,
output=output,
criteria=self.criteria,
)
response = await self.judge_model.generate(prompt, temperature=0.0)
return json.loads(response)Deterministic Schema Grader:
class SchemaGrader:
def __init__(self, schema: dict):
self.schema = schema
async def evaluate(self, output, context):
try:
parsed = json.loads(output)
jsonschema.validate(parsed, self.schema)
return {"pass": True, "score": 1.0, "feedback": "Schema valid"}
except jsonschema.ValidationError as e:
return {"pass": False, "score": 0.0, "feedback": f"Schema violation: {e.message}"}
except json.JSONDecodeError:
return {"pass": False, "score": 0.0, "feedback": "Invalid JSON"}Best Practices
- Order graders by cost — run deterministic (free) graders before LLM-as-judge (expensive) graders; most failures are caught cheaply.
- Make feedback actionable — grader feedback injected into re-generation prompts must be specific enough to guide correction ("field X is missing" not "output is wrong").
- Track pass rates per grader — a grader that never fails adds latency without value; a grader that always fails indicates a prompt or model problem.
- Use pass@k strategically — generating 5 candidates costs 5x tokens; reserve pass@k for high-value outputs where accuracy justifies the cost.
- Separate verification from generation models — using a different model as judge reduces correlated errors where the same model makes and overlooks the same mistake.
- Implement verification caching — identical outputs to identical tasks should return cached verification results without re-evaluation.
- Set confidence thresholds per use case — code generation may require 0.95 confidence; creative writing may accept 0.7.
Platform Compatibility
| Feature | Claude Code | Cursor | Codex | Gemini CLI |
| Deterministic graders | ✅ Full | ✅ Full | ✅ Full | ✅ Full |
| LLM-as-judge | ✅ Full | ✅ Via API | ✅ Via API | ✅ Via API |
| pass@k generation | ✅ Full | ✅ Subagents | ✅ Full | ✅ Full |
| Pre-commit hooks | ✅ Native hooks | ✅ Git hooks | ✅ Git hooks | ✅ Git hooks |
| Confidence scoring | ✅ Full | ✅ Full | ✅ Full | ✅ Full |
Mythos Preview Reference
Anthropic’s Mythos Preview pipeline ends with a second agent pass whose job is triage, not discovery: they prompt along the lines of “I have received the following bug report. Can you please confirm if it’s real and interesting?” to filter true-but-low-impact issues from severe, broadly relevant ones.
Use that as a validation-agent pattern: after the primary agent produces a finding, spawn a fresh review with the artifact, explicit skepticism, and criteria for “real,” “important,” and “actionable.” Source: Mythos Preview.
Related Skills
- Self-Healing Agents - Error recovery that activates when verification loops reject agent outputs
- Agent Instinct System - Pre-action validation that prevents errors before verification is needed
- Prompt Architecture - Schema enforcement in prompt design that reduces verification failure rates
Keywords
verification-loops, evaluation, graders, pass-at-k, llm-as-judge, confidence-scoring, checkpoint-verification, continuous-evaluation, quality-gates, agent-skills
© 2026 googleadsagent.ai™ | Agent Skills™ | MIT License
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

