ai-agent-reliability

ai-agent-reliability is a cursor rule for Cursor from mohitagw15856/pm-claude-skills. It costs 153 tokens per session (1,152 once invoked), scanned A, original, MIT.

A reliability plan for an AI agent or automation. It maps how the system can fail and matches each failure with a check, test, human approval, or alert.

In plain words
What is it for?
It helps teams test real and difficult cases, verify inputs and outputs, gate risky actions with human approval, and plan a gradual rollout.
Why use it?
It catches malformed tool calls, invented answers, unexpected inputs, silent errors, and runaway loops before they cause real damage.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit It helps teams test real and difficult cases, verify inputs and outputs, gate risky actions with human approval, and plan a gradual rollout.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mohitagw15856/pm-claude-skills/ai-agent-reliability
About the project

PM Skills is a collection of plain-Markdown instructions that teach AI assistants structured methods for handling professional, personal, and life-admin tasks. People use it with Claude, ChatGPT, Gemini, Cursor, Codex, and other supported agents for work such as writing product requirements, reviewing documents, or planning difficult situations.

mohitagw15856/pm-claude-skills · 1,352 stars · on GitHub · mohitagw15856.github.io

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/mohitagw15856/pm-claude-skills

Made for: Cursor.

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 ai-agent-reliability

README.md
[![agentmods](https://agentmods.dev/badge/rules/mohitagw15856/pm-claude-skills/ai-agent-reliability/github.svg)](https://agentmods.dev/rules/mohitagw15856/pm-claude-skills/ai-agent-reliability)
Your own site
<a href="https://agentmods.dev/rules/mohitagw15856/pm-claude-skills/ai-agent-reliability"><img src="https://agentmods.dev/badge/rules/mohitagw15856/pm-claude-skills/ai-agent-reliability/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 ai-agent-reliability

Your own site · 80×15
<a href="https://agentmods.dev/rules/mohitagw15856/pm-claude-skills/ai-agent-reliability"><img src="https://agentmods.dev/badge/rules/mohitagw15856/pm-claude-skills/ai-agent-reliability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 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,152 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.00153 $0.01152
Opus 5 $0.00077 $0.00576
Sonnet 5 $0.00031 $0.00230
Haiku 4.5 $0.00015 $0.00115

Measured 7d ago against content hash c7a0567c07da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

ai-agent-reliability 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 7d 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.

exports/cursor/pm-ai-native/ai-agent-reliability/ai-agent-reliability.mdc · 68 lines

How it starts

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

AI-Agent Reliability

An AI agent that works in a demo and one you can trust in production are different things — the gap is everything that happens when input is messy, the model hallucinates, a tool call goes wrong, or an error fails silently. This maps where your agent can fail and the specific checks that catch each, scaled to the stakes, plus a rollout that earns trust incrementally — so "works sometimes" becomes "works reliably."

What This Skill Produces

  • A failure map — where this agent can go wrong: bad/unexpected input, hallucinated output, wrong or malformed tool calls, unhandled edge cases, silent failures, and runaway loops
  • The catching checks per failure — input validation, output verification, evals on real cases, schema/format checks on tool calls, human-in-the-loop gates, and monitoring/alerts
  • An eval approach — testing on a real set of cases (including the hard ones) so quality is measured, not assumed, and regressions are caught
  • Human-in-the-loop placement — where a human must approve, scaled to consequence (irreversible/external actions gated, low-stakes automated)
  • A right-sized plan — reliability effort matched to the stakes, not gold-plating a low-risk toy or under-testing a high-risk system
  • A trust-building rollout — shadow mode → low-stakes → expand, with monitoring, rather than shipping it everywhere and hoping

Required Inputs

Ask for these if not provided:

  • The agent — what it does, what tools/actions it takes, what it touches
  • The stakes — what a failure costs (drives how hard to test and gate)
  • Where it fails now — the flakiness you've seen (points at the weak spots)
  • Your setup — the framework/tools, and whether you can add evals/monitoring

Framework: Map Failures, Catch Each, Earn Trust

  1. Enumerate the failure modes. Walk the agent's path — input, reasoning, tool calls, output, actions — and name where each step can break. You can't guard what you haven't named.
  2. Attach a check to each. Validation for input, verification for output, schema checks for tool calls, evals for quality, gates for consequential actions — a specific catch per failure.
  3. Build real evals. A set of representative and hard cases, scored — so you know it works and catch regressions before users do.
  4. Gate by consequence. Irreversible or external actions get a human check; low-stakes steps run free. Match the gate to the cost.
  5. Right-size it. Don't over-engineer a low-risk helper or under-test a system that moves money or data — effort follows stakes.
  6. Roll out to earn trust. Shadow mode, then low-stakes live, then expand — with monitoring and alerts — so reliability is proven, not assumed.

Read the full file on GitHub · 68 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. 7d ago First seen · 68 lines · 153 tokens per session scan A c7a0567c07da

Subscribe to this mod's changes

ai-agent-reliability is a cursor rule published in the GitHub repository mohitagw15856/pm-claude-skills (1,352 stars, last pushed 3d ago), licensed MIT. It adds 153 tokens to every session and 1,152 once invoked, about $0.0008 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-09-03.