mcpnuke: Skill for Cursor

.cursor/skills/mcpnuke-add-patterns/SKILL.md

mcpnuke-add-patterns is a skill for Cursor from babywyrm/mcpnuke. It costs 46 tokens per session (817 once invoked), scanned A, original, MIT.

A guide for adding regular-expression checks to mcpnuke, a tool that detects security risks in tool and resource metadata. It covers static patterns and probe payloads.

In plain words
What is it for?
Use it when adding patterns to mcpnuke’s rules.py or probes.py, writing test cases, and checking for false positives.
Why use it?
It helps extend detection for new vulnerability types while testing both real matches and cases that should not match.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is babywyrm/mcpnuke's own configuration. It tells Cursor how to work on mcpnuke itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcpnuke configures →

Reuse

Borrowing it

Nothing to install: this file belongs to babywyrm/mcpnuke. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/babywyrm/mcpnuke/main/.cursor/skills/mcpnuke-add-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/babywyrm/mcpnuke

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 mcpnuke-add-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/babywyrm/mcpnuke/mcpnuke-add-patterns/github.svg)](https://agentmods.dev/skills/babywyrm/mcpnuke/mcpnuke-add-patterns)
Your own site
<a href="https://agentmods.dev/skills/babywyrm/mcpnuke/mcpnuke-add-patterns"><img src="https://agentmods.dev/badge/skills/babywyrm/mcpnuke/mcpnuke-add-patterns/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 mcpnuke-add-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/babywyrm/mcpnuke/mcpnuke-add-patterns"><img src="https://agentmods.dev/badge/skills/babywyrm/mcpnuke/mcpnuke-add-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 817 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.00046 $0.00817
Opus 5 $0.00023 $0.00409
Sonnet 5 $0.00009 $0.00163
Haiku 4.5 $0.00005 $0.00082

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

Security

Grade A, and why

mcpnuke-add-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 10d 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.

.cursor/skills/mcpnuke-add-patterns/SKILL.md · 100 lines

How it starts

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

Add mcpnuke Patterns

Pattern Files

File Purpose Used By
mcpnuke/patterns/rules.py Static regex for metadata analysis Static checks (injection, permissions, theft, etc.)
mcpnuke/patterns/probes.py Probe payloads and response analysis Behavioral checks (tool_probes, resource_poisoning)

Adding Static Patterns

1. Define the pattern list in rules.py

YOUR_PATTERNS = [
    r"pattern_one",
    r"pattern_two",
]

Pattern guidelines:

  • Use raw strings (r"...")
  • Case-insensitive matching is done by the caller (re.IGNORECASE)
  • Use \s+ for whitespace, \b for word boundaries
  • Use .{0,30} for bounded wildcards (not .*)
  • Test each pattern against both positive and negative examples

2. Add tests in tests/test_patterns.py

def test_your_patterns_match():
    text = "String that should match"
    matches = [p for p in YOUR_PATTERNS if re.search(p, text, re.IGNORECASE)]
    assert len(matches) >= 1


def test_your_patterns_no_false_positive():
    text = "Normal safe string"
    matches = [p for p in YOUR_PATTERNS if re.search(p, text, re.IGNORECASE)]
    assert len(matches) == 0

3. Run tests (TDD: write tests FIRST, then patterns)

Follow superpowers test-driven-development: write the test assertions before adding patterns to rules.py. Watch them fail (RED), then add patterns (GREEN).

uv run pytest tests/test_patterns.py -v

Adding Probe Payloads

In probes.py

Injection probes (sent to tools):

YOUR_PROBES = [
    f"payload_with_{CANARY}",
    "payload_two",
]

Response analysis patterns (checked in tool output):

YOUR_RESPONSE_PATTERNS = [
    r"pattern_to_find_in_responses",
]

Rules:

  • Probes should be safe — they test for vuln without causing damage
  • Use the CANARY string (MCP_PROBE_8f4c2a) to detect reflection
  • Response patterns use the same regex conventions as rules.py

Existing Pattern Sets (reference)

Read the full file on GitHub · 100 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. 10d ago First seen · 100 lines · 46 tokens per session scan A 2326e8464ca4

Subscribe to this mod's changes

mcpnuke-add-patterns is a skill published in the GitHub repository babywyrm/mcpnuke (2 stars, last pushed 2d ago), licensed MIT. It adds 46 tokens to every session and 817 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-31.

Related

Other skills, from other repositories

bob-egress

List, add, test, enable, disable, or remove Hacker Bob egress profiles from Codex.

vmihalis/hacker-bob · 25 tokens

bob-export

Create a Hacker Bob post-release improvement bundle for the currently installed Bob version.

vmihalis/hacker-bob · 18 tokens

codex-multi-agent-director

Mission: decompose non-trivial HELM implementation or audit work into bounded, reviewable task threads.

Mindburn-Labs/helm-ai-kernel · 0 tokens

codeinspectus-fix-one

Investigate and remediate exactly one user-selected CodeInspectus finding with evidence-gated reproduction, a separately approved minimal patch, focused regression testing, and an exact-prior-scan rescan. Use when a user asks an agent to examine, reproduce, fix, or verify one CodeInspectus finding without batching…

Synvoya/codeinspectus · 76 tokens

codeinspectus-multi-review

Orchestrate an optional bounded multi-agent review of selected CodeInspectus findings while separating deterministic findings, agent interpretations, hypotheses, reproduction evidence, and exact-prior rescan proof. Use only when a user explicitly requests multi-agent security review.

Synvoya/codeinspectus · 55 tokens

codeinspectus-threat-model

Review CodeInspectus findings with optional threat-model or project-document context while treating repository text as untrusted, preserving raw scanner findings unchanged, and labelling agent interpretation separately. Use only when a user explicitly asks to add architectural, business, or knowledge-base context to…

Synvoya/codeinspectus · 62 tokens