verify-patterns

verify-patterns is a skill for Claude Code, Codex from Aurite-ai/agent-verifier. It costs 49 tokens per session (3,021 once invoked), scanned A, original, MIT.

A local review guide for AI-agent workflows, focusing on loops, retries, tool use, context size, and cycles in the workflow graph. It identifies common patterns that can make an agent run indefinitely or exceed its context.

In plain words
What is it for?
Use it to inspect LangGraph, CrewAI, AutoGen, LangChain, or custom SDK-based agents for unsafe loops, retry limits, tool mismatches, and graph cycles.
Why use it?
It helps detect runaway retries, inconsistent tool definitions, circular workflows, and excessive context before they cause failures or unexpected costs. The checks depend on the agent framework used by the project.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/aurite-ai/agent-verifier/verify-patterns
Any agent
npx skills add Aurite-ai/agent-verifier --skill verify-patterns
Clone the repo
git clone --depth 1 https://github.com/Aurite-ai/agent-verifier

Made for: Claude Code, Codex.

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 verify-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/aurite-ai/agent-verifier/verify-patterns.svg)](https://agentmods.dev/skills/aurite-ai/agent-verifier/verify-patterns)
Your own site
<a href="https://agentmods.dev/skills/aurite-ai/agent-verifier/verify-patterns"><img src="https://agentmods.dev/badge/skills/aurite-ai/agent-verifier/verify-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,021 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00049 $0.03021
Opus 5 $0.00024 $0.01510
Sonnet 5 $0.00010 $0.00604
Haiku 4.5 $0.00005 $0.00302

Measured 3d ago against content hash ac539800d3fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

verify-patterns 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 3d 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.

skills/verify-patterns/SKILL.md · 348 lines

How it starts

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

Agent Pattern Verification

Purpose

Verify AI agent code for common anti-patterns that can cause infinite loops, runaway retries, tool mismatches, and context overflow. All analysis happens locally.

When to Use

Trigger this skill when the user asks to:

  • "verify agent patterns"
  • "check agent loops"
  • "verify tools"
  • "check retry limits"
  • "verify agent safety"

Note: For full verification including security, quality, and language-specific checks, tell the user to say "verify agent".

Process

Step 1: Detect Agent Framework

Identify the agent framework by checking imports in Python/TypeScript files:

Import Pattern Framework
from langgraph or import langgraph LangGraph
from crewai or import crewai CrewAI
from autogen or import autogen AutoGen
from langchain or import langchain LangChain
Direct openai/anthropic SDK only Custom

Also check for framework config files: langgraph.json, crew.yaml.

Step 2: Locate Agent Files

Find files to analyze:

Priority files:

  • graph.py, graph.ts - Agent workflow definitions
  • tools.py, tools.ts, tools/*.py, tools/*.ts - Tool implementations
  • state.py, state.ts - State schemas
  • prompts.py, prompts/*.md, system.md - Prompt templates
  • agent.py, agent.ts - Main agent logic

Directories to check:

  • src/agent/, agent/, src/, project root
  • lib/, app/, packages/

Exclude from analysis:

  • skills/ directory — these are skill definitions, not agent system prompts

Step 3: Run Pattern Checks

Check Tiers
  • [PATTERN] — Mechanical check. Apply exactly as written.
  • [HEURISTIC] — Judgment required. Mark findings clearly.

Tag every finding with [P] for pattern or [H] for heuristic.


3.1 [PATTERN] Loop Safety

Apply mechanically. Do not pass a loop because it "looks like it might terminate."

Pattern to find Pass condition Severity
while True: in Python A break statement exists within the same block scope ⚠️ Warning if absent
for { } in Go A break or return exists within the block ⚠️ Warning if absent
while (true) in TS/JS A break or return exists within the block ⚠️ Warning if absent
Function calls itself recursively A non-recursive return path exists (base case), OR a depth/counter parameter is present ⚠️ Warning if absent

Read the full file on GitHub · 348 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. 3d ago First seen · 348 lines · 49 tokens per session scan A ac539800d3fa

Subscribe to this mod's changes

verify-patterns is a skill published in the GitHub repository Aurite-ai/agent-verifier (44 stars, last pushed 7d ago), licensed MIT. It adds 49 tokens to every session and 3,021 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

procoder

Work like a senior developer in a repository governed by procoder: run the commit gate before calling anything done, format and lint through the binary, and drive the spec, plan, todo, backlog, and sprint chain in .procoder/. Use this skill when the repository contains a .procoder/ directory or an AGENTS.md naming…

azrtydxb/procoder · 101 tokens

Tech Debt Auditor

Identifies and prioritizes technical debt in a codebase with an effort/impact matrix.

Notysoty/openagentskills · 22 tokens

Unit Test Improver

Reviews existing unit tests for gaps, weak assertions, and missing edge cases, then rewrites them to be more robust.

Notysoty/openagentskills · 29 tokens

Refactor Planner

Creates a safe, step-by-step plan to refactor messy code without breaking existing behavior.

Notysoty/openagentskills · 22 tokens

observability

This skill should be used when the user asks about "observability", "logging", "metrics", "tracing", "monitoring", "structured logging", "log format", "log levels", "distributed tracing", "OpenTelemetry", "health checks", or needs guidance on implementing observability and monitoring requirements.

zircote-plugins/sdlc-quality · 66 tokens

setup

This skill should be used when the user asks about "project setup", "project initialization", "repository setup", "new project", "bootstrap project", "project structure", "development environment", "toolchain setup", "project configuration", or needs guidance on setting up new projects that comply with SDLC standards.

zircote-plugins/sdlc-quality · 64 tokens