security

security is a skill for Claude Code from darylmcd/Roslyn-Backed-MCP. It costs 52 tokens per session (1,635 once invoked), scanned A, original, MIT.

A security-audit skill for C# solutions that checks code, dependency vulnerabilities, and security configuration.

In plain words
What is it for?
Reviewing OWASP-style risks, NuGet package CVEs, reflection, dependency-injection setup, and security diagnostics.
Why use it?
It helps identify common security weaknesses and missing analysis tools before they reach production.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the roslyn-mcp plugin — 44 skills, 5 agents, 2 hooks, 2 MCP servers shipped together

Good fit Reviewing OWASP-style risks, NuGet package CVEs, reflection, dependency-injection setup, and security diagnostics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darylmcd/roslyn-backed-mcp/security
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 darylmcd/Roslyn-Backed-MCP --skill security
Clone the repo
git clone --depth 1 https://github.com/darylmcd/Roslyn-Backed-MCP

Made for: Claude Code.

Or install roslyn-mcp, the plugin that ships this one along with the rest of its 44 skills, 5 agents, 2 hooks, 2 MCP servers.

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/skills/darylmcd/roslyn-backed-mcp/security/github.svg)](https://agentmods.dev/skills/darylmcd/roslyn-backed-mcp/security)
Your own site
<a href="https://agentmods.dev/skills/darylmcd/roslyn-backed-mcp/security"><img src="https://agentmods.dev/badge/skills/darylmcd/roslyn-backed-mcp/security/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/darylmcd/roslyn-backed-mcp/security"><img src="https://agentmods.dev/badge/skills/darylmcd/roslyn-backed-mcp/security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,635 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.00052 $0.01635
Opus 5 $0.00026 $0.00817
Sonnet 5 $0.00010 $0.00327
Haiku 4.5 $0.00005 $0.00163

Measured 8d ago against content hash 511ecf415642, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 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.

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.

skills/security/SKILL.md · 157 lines

How it starts

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

Security Audit

You are a C# security specialist. Your job is to perform a comprehensive security audit of a C# solution using Roslyn's semantic analysis tools and NuGet vulnerability databases.

Input

$ARGUMENTS is an optional project name to scope the audit. If omitted, audit the entire loaded workspace. If no workspace is loaded, ask for a solution path.

Server discovery

Use discover_capabilities (security / all) or roslyn://server/catalog. MCP prompt security_review pulls analyzer status, findings, and (when available) vulnerability scan context.

Workflow

Step 1: Setup

  1. Ensure a workspace is loaded.
  2. Call workspace_status to confirm health.
  3. Note the target framework(s) — some security issues are framework-specific.

Step 2: Analyzer Coverage

  1. Call security_analyzer_status to check which security analyzers are installed.
  2. If recommended analyzers are missing, note them as a finding:
    • Microsoft.CodeAnalysis.NetAnalyzers (CA rules)
    • Microsoft.CodeAnalysis.BannedApiAnalyzers
    • SecurityCodeScan or equivalent
  3. Report the coverage gap and recommend adding missing analyzers.

Step 3: Security Diagnostics

  1. Call security_diagnostics with the optional project filter.
  2. Group findings by OWASP category:
    • A01: Broken Access Control
    • A02: Cryptographic Failures
    • A03: Injection (SQL, command, LDAP, XSS)
    • A04: Insecure Design
    • A05: Security Misconfiguration
    • A06: Vulnerable Components (covered in Step 4)
    • A07: Authentication Failures
    • A08: Data Integrity Failures (deserialization)
    • A09: Logging & Monitoring Failures
    • A10: SSRF
  3. For each finding, provide: severity, file:line, diagnostic ID, description, and remediation guidance.

Step 4: NuGet Vulnerability Scan

  1. Call nuget_vulnerability_scan with includeTransitive: true.
  2. For each vulnerable package, report:
    • Package name and version
    • CVE identifier(s)
    • Severity (Critical, High, Medium, Low)
    • Advisory link
    • Which projects are affected
    • Recommended upgrade version

Read the full file on GitHub · 157 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 · 157 lines · 52 tokens per session scan A 511ecf415642

Subscribe to this mod's changes

security is a skill published in the GitHub repository darylmcd/Roslyn-Backed-MCP (1 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,635 once invoked, about $0.0003 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens