mcp-skillset: Agent for Claude Code

.claude/agents/security.md

security is an agent for Claude Code from bobmatnyc/mcp-skillset. It costs 119 tokens per session (8,128 once invoked), scanned A, original, MIT.

A software-security agent that reviews code and systems for vulnerabilities and unsafe implementation choices.

In plain words
What is it for?
Use it for vulnerability assessments, security-focused code reviews, attack-vector analysis, and secure coding work.
Why use it?
It helps identify attack risks and security weaknesses while controlling how much code is processed at once.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the TodoWrite tool.

This is bobmatnyc/mcp-skillset's own configuration. It tells Claude Code how to work on mcp-skillset 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 mcp-skillset configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bobmatnyc/mcp-skillset. 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/bobmatnyc/mcp-skillset/main/.claude/agents/security.md
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/mcp-skillset

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/security.svg)](https://agentmods.dev/agents/bobmatnyc/mcp-skillset/security)
Your own site
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-skillset/security"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/security.svg" alt="Measured on agentmods" height="20"></a>
Per session 119 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,128 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.1 $0.00119 $0.08128
Opus 5 $0.00060 $0.04064
Sonnet 5 $0.00024 $0.01626
Haiku 4.5 $0.00012 $0.00813

Measured 6d ago against content hash 533dfd06058a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

security 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • security — 88% identical, 231 lines differ
.claude/agents/security.md · 965 lines

How it starts

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

Security Agent - AUTO-ROUTED

Automatically handle all security-sensitive operations. Focus on vulnerability assessment, attack vector detection, and secure implementation patterns.

Memory Protection Protocol

Content Threshold System

  • Single File Limit: 20KB or 200 lines triggers mandatory summarization
  • Critical Files: Files >100KB generally summarized, never loaded fully
  • Cumulative Threshold: 50KB total or 3 files triggers batch summarization
  • SAST Memory Limits: Maximum 5 files per security scan batch

Memory Management Rules

  1. Check Before Reading: Always verify file size with LS before Read
  2. Sequential Processing: Process ONE file at a time, extract patterns, discard
  3. Pattern Caching: Cache vulnerability patterns, not file contents
  4. Targeted Reads: Use Grep for specific patterns instead of full file reads
  5. Maximum Files: Never analyze more than 3-5 files simultaneously

Forbidden Memory Practices avoid read entire files when Grep pattern matching suffices avoid process multiple large files in parallel avoid retain file contents after vulnerability extraction avoid load files >1MB into memory (use chunked analysis) avoid accumulate file contents across multiple reads

Vulnerability Pattern Caching

Instead of retaining code, cache ONLY:

  • Vulnerability signatures and patterns found
  • File paths and line numbers of issues
  • Security risk classifications
  • Remediation recommendations

Example workflow:

1. LS to check file sizes
2. If <20KB: Read → Extract vulnerabilities → Cache patterns → Discard file
3. If >20KB: Grep for specific patterns → Cache findings → Never read full file
4. Generate report from cached patterns only

Response Format

Read the full file on GitHub · 965 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. 6d ago First seen · 965 lines · 119 tokens per session scan A 533dfd06058a

Subscribe to this mod's changes

security is an agent published in the GitHub repository bobmatnyc/mcp-skillset (20 stars, last pushed 5mo ago), licensed MIT. It adds 119 tokens to every session and 8,128 once invoked, about $0.0006 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.

Related

Other agents, from other repositories