agent-verification-patterns

agent-verification-patterns is a cursor rule for coding agents from Desko77/cursor-1c-skills. It costs 14 tokens per session (859 once invoked), scanned A, original, MIT.

A checking method for code that must account for every input item, such as files, records, strings, or mapping rules. It repeatedly compares the full input list with the code until nothing is uncovered or handled incorrectly.

In plain words
What is it for?
Use it after writing migrations, mappings, parsers, imports, exports, or data transformations. It helps find missing cases and incorrect rules across a complete input list.
Why use it?
It removes the risk of relying on a few sample tests or manual spot checks when many varied inputs must be supported.

Cursor rule

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 rules/desko77/cursor-1c-skills/agent-verification-patterns
Clone the repo
git clone --depth 1 https://github.com/Desko77/cursor-1c-skills

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 agent-verification-patterns

README.md
[![agentmods](https://agentmods.dev/badge/rules/desko77/cursor-1c-skills/agent-verification-patterns.svg)](https://agentmods.dev/rules/desko77/cursor-1c-skills/agent-verification-patterns)
Your own site
<a href="https://agentmods.dev/rules/desko77/cursor-1c-skills/agent-verification-patterns"><img src="https://agentmods.dev/badge/rules/desko77/cursor-1c-skills/agent-verification-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 859 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.00014 $0.00859
Opus 5 $0.00007 $0.00430
Sonnet 5 $0.00003 $0.00172
Haiku 4.5 $0.00001 $0.00086

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

Security

Grade A, and why

agent-verification-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 4d 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.

rules/agent-verification-patterns.mdc · 70 lines

How it starts

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

Agent Verification Patterns

Паттерны проверки результата работы AI-агента. Главный - итеративная сверка покрытия (reconciliation loop).

Применяется: при разработке, где есть набор входов (файлы, строки, записи, форматы) и набор правил/кода, который должен их все покрывать. Типовые случаи: миграции, объектные мэппинги, парсеры разноформатных файлов, загрузки, трансформации данных, обмены.


Принцип

После написания/правки кода - отдельной задачей поручить агенту сверить ВЕСЬ реестр входов с правилами в коде, выявить расхождения, исправить, повторить до нуля. Сверка - не часть написания кода, а самостоятельный проверочный проход.

Ошибка покрытия (вход не обрабатывается ни одним правилом, или обрабатывается неверным) дешевле ловится сплошной сверкой, чем ручной выборкой или тестом "на удачу".


Паттерн: итеративная сверка покрытия (reconciliation loop)

Когда применять

  • На входе много элементов с вариативной структурой (N файлов разных форматов, M строк правил маппинга, K записей данных).
  • Код/правила должны однозначно покрывать каждый элемент.
  • Ручная сверка каждого элемента трудозатратна и подвержена ошибкам.

Как

  1. Зафиксировать реестр входов - явный список: файлы, значения, строки, форматы.
  2. Поручить агенту: для каждого входа определить, каким правилом/профилем/веткой кода он обрабатывается.
  3. Собрать таблицу "вход -> правило", выделить непокрытые и конфликтные (один вход подходит под несколько правил).
  4. Исправить код/правила под выявленные расхождения.
  5. Повторить сверку. Критерий завершения: 0 непокрытых, 0 конфликтов - полное и однозначное покрытие.

Ключевое

  • Сверять по фактическому содержимому, не по имени/метке: формат файла определять по шапке/структуре, а не по имени (имя может вводить в заблуждение).
  • Полный реестр, не выборка. Цель - явный счет "N/N покрыто, 0 расхождений".
  • Итеративность: первый проход почти всегда дает расхождения, они сводятся к нулю за несколько циклов.
  • Финальную приемку на реальных данных выполняет человек. Агент готовит сверку, но не заменяет приемку.

Read the full file on GitHub · 70 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. 4d ago First seen · 70 lines · 14 tokens per session scan A 7c73d9f46c0c

Subscribe to this mod's changes

agent-verification-patterns is a cursor rule published in the GitHub repository Desko77/cursor-1c-skills (55 stars, last pushed yesterday), licensed MIT. It adds 14 tokens to every session and 859 once invoked, about $0.0001 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.