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.
npx skills add ralfyishere/rules-with-receipts --skill security-pattern-reviewgit clone --depth 1 https://github.com/ralfyishere/rules-with-receiptsWrote 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.
[](https://agentmods.dev/skills/ralfyishere/rules-with-receipts/security-pattern-review)<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.
<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>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.
| Model | Per session | Once 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 |
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. 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 orgithub.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.
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.
- 8d ago First seen · 69 lines · 0 tokens per session scan A 01a185f29310
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.
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-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-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…
discount-review
Inspect the discount policy fixture with a repeatable review checklist and helper script.
code-review
Reviews code for bugs, security issues, and best practices.
token-skill
Use this skill when the user explicitly asks to use token-skill and wants the special token.