Security Pattern Review

Security Pattern Review is a skill for Claude Code from ralfyishere/rules-with-receipts. It costs 117 tokens per session (1,601 once invoked), scanned A, original, MIT.

A set of instructions for testing security and validation rules against simple ways of bypassing them. These rules include filters, validators, sanitizers, access checks, and rate limits.

In plain words
What is it for?
It helps review or test allowlists, denylists, regular expressions, scanners, linters, authentication checks, and other defensive rules before release.
Why use it?
It helps reveal when a rule catches only the obvious case and creates false confidence. It requires recording any remaining bypasses.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It helps review or test allowlists, denylists, regular expressions, scanners, linters, authentication checks, and other defensive rules before release.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ralfyishere/rules-with-receipts/security-pattern-review
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.

Any agent
npx skills add ralfyishere/rules-with-receipts --skill security-pattern-review
Clone the repo
git clone --depth 1 https://github.com/ralfyishere/rules-with-receipts

Made for: Claude Code.

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 Security Pattern Review

README.md
[![agentmods](https://agentmods.dev/badge/skills/ralfyishere/rules-with-receipts/security-pattern-review/github.svg)](https://agentmods.dev/skills/ralfyishere/rules-with-receipts/security-pattern-review)
Your own site
<a href="https://agentmods.dev/skills/ralfyishere/rules-with-receipts/security-pattern-review"><img src="https://agentmods.dev/badge/skills/ralfyishere/rules-with-receipts/security-pattern-review/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 Security Pattern Review

Your own site · 80×15
<a href="https://agentmods.dev/skills/ralfyishere/rules-with-receipts/security-pattern-review"><img src="https://agentmods.dev/badge/skills/ralfyishere/rules-with-receipts/security-pattern-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00117 $0.01601
Opus 5 $0.00059 $0.00800
Sonnet 5 $0.00023 $0.00320
Haiku 4.5 $0.00012 $0.00160

Measured 8d ago against content hash 01a185f29310, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

Security Pattern Review scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Reorder / multi-stage:** the dangerous action split or reordered across a pipeline (`curl x | tr ... | sh`) so a single-token match misses it.
.claude/skills/security-pattern-review/SKILL.md · 69 lines

How it starts

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

Security Pattern Review

Purpose

A guard that catches the textbook case but not its one-token variant is not a weak guard - it is a liability, because it manufactures false assurance while an attacker walks past. The recurring failure mode is authoring a defensive pattern and testing only that it catches the obvious payload, never that a determined attacker can trivially slip around it. This skill makes evasion testing a precondition of shipping: every allowlist, denylist, regex, sanitizer, or guard is attacked against known evasion classes before it ships, and any residual bypass is written down rather than left silent.

When to use this skill

  • Before shipping any allowlist, denylist, suppression rule, detection regex, sanitizer, validator, guard, auth check, rate limit, or filter.
  • When reviewing someone else's defensive pattern or scanner/linter rule for coverage.
  • Whenever the question is "does this rule catch X", "is this pattern safe", or "will this block the attack".
  • Before relying on a CI security step or entrypoint guard - confirm it actually runs, don't trust a green check.

When NOT to use this skill

  • On patterns with no security or gate-keeping role - a display-formatting regex that fails open harms nothing.
  • On throwaway or exploratory matchers the user explicitly asked for rough, that will not ship as a control.
  • As a substitute for live-state-truth: reasoning that an input would trip the guard is weaker than running it. If the guard is executable, execute the evasion input against it.

The procedure

Step 1 - State the contract. Write down exactly what the pattern MUST catch (the payloads it exists to stop) and exactly what it MUST allow (the benign inputs it must not break). A guard with no stated allow-set will be tuned into either uselessness or a denial-of-service.

Step 2 - Enumerate the evasion classes for THIS pattern (pick the ones that apply):

  • Append-a-token / wrap: put the payload in a table cell, extra pipes, or surrounding markup so a naive "looks like a table" heuristic disables or downgrades the rule.
  • Affix bypass (unanchored allowlist): a docs. prefix or github.com. suffix that matches attacker-controlled domains (docs.evil.example, github.com.evil.example) because the match was never boundary-anchored.
  • Reorder / multi-stage: the dangerous action split or reordered across a pipeline (curl x | tr ... | sh) so a single-token match misses it.
  • Encoding / obfuscation / whitespace: URL/base64/hex encoding, inserted whitespace or comments, homoglyphs, zero-width characters.
  • Case: upper/lower/mixed case defeating a case-sensitive match.
  • The guard that never runs: a CI step or entrypoint with no __main__ guard, a script that exits before the check, a rule shadowed by an earlier one - it reports green because it never executed.

Read the full file on GitHub · 69 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. 8d ago First seen · 69 lines · 0 tokens per session scan A 01a185f29310

Subscribe to this mod's changes

Security Pattern Review is a skill published in the GitHub repository ralfyishere/rules-with-receipts (2 stars, last pushed 1mo ago), licensed MIT. It adds 117 tokens to every session and 1,601 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

promptfoo-redteam-setup

Create or refine promptfoo redteam setup configs: purpose, targets, plugins, strategies, frameworks, multi-input target inputs, policy text, grader guidance, contexts, and static-code-derived target/threat mapping. Use when preparing a red team scan plan from live probes, code evidence, or provider configs, or when…

promptfoo/promptfoo · 99 tokens

promptfoo-provider-setup

Configure promptfoo providers or redteam targets for hosted models, live HTTP APIs, Python/JavaScript local scripts, agent SDKs, or multi-input systems. Use when connecting promptfoo to the system under test, mapping vars, auth env vars, request bodies, response transforms, or static-code-derived provider wrappers. Do…

promptfoo/promptfoo · 91 tokens

promptfoo-redteam-run

Run, rerun, inspect, and QA promptfoo redteam scans from generated redteam YAML or an existing redteam setup config. Use when executing promptfoo redteam eval or promptfoo redteam run, exporting results, triaging attack success rate, grader failures, target errors, filter/rerun commands, reports, or CI gates. Do not…

promptfoo/promptfoo · 94 tokens

discount-review

Inspect the discount policy fixture with a repeatable review checklist and helper script.

promptfoo/promptfoo · 18 tokens

code-review

Reviews code for bugs, security issues, and best practices.

promptfoo/promptfoo · 11 tokens

token-skill

Use this skill when the user explicitly asks to use token-skill and wants the special token.

promptfoo/promptfoo · 23 tokens