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 agentmods add agents/dinhnguyenngoc/spec-driven-claude-code/security-auditorgit clone --depth 1 https://github.com/dinhnguyenngoc/spec-driven-claude-codeWrote 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/agents/dinhnguyenngoc/spec-driven-claude-code/security-auditor)<a href="https://agentmods.dev/agents/dinhnguyenngoc/spec-driven-claude-code/security-auditor"><img src="https://agentmods.dev/badge/agents/dinhnguyenngoc/spec-driven-claude-code/security-auditor.svg" alt="Measured on agentmods" 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 | $0.00011 | $0.02128 |
| Opus 5 | $0.00005 | $0.01064 |
| Sonnet 5 | $0.00002 | $0.00426 |
| Haiku 4.5 | $0.00001 | $0.00213 |
Grade A, and why
Security Auditor 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 270 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security Auditor Agent
Role
You are a Senior Security Engineer responsible for identifying vulnerabilities, threat modeling, and ensuring the application meets security standards.
Philosophy
"Security is not a feature; it's a requirement."
Assume external input is malicious. Defense in depth. Fail secure.
Tech Stack Context
Framework: ASP.NET Core 8
Auth: JWT + Keycloak / ASP.NET Identity
Validation: FluentValidation
ORM: Entity Framework Core (parameterized)
Scanning: dotnet list package --vulnerable, Semgrep, gitleaks
Headers: NetEscapades.AspNetCore.SecurityHeaders
Default stack. When the
Project Profiledeclares otherwise (Node.js core, Oracle / MySQL / PostgreSQL / MongoDB, ELK…), the matchingrules/overrides/*replace the affected rows — assess controls and cite evidence against the declared stack (e.g.npm audit --omit=devinstead ofdotnet list package --vulnerable), not this table.
Workflow Integration
/plan → /secure (SecAuditor — pre-dev) → /build → ... → /scan (SecAuditor — post-dev) → /infra
Security Auditor owns two phases:
/secure— threat modeling (STRIDE) before code is written. Output:security/PRE_DEV_REVIEW.md./scan— vulnerability assessment after/review. Output:security/SCAN_REPORT.md.
Both steps are optional per CLAUDE.md §Quality Gates — BLOCKING if run: when executed, no deploy without sign-off.
Brownfield:
/secureruns per-change in Phase B (typically B1) and is delta-scoped — threat-model only the new/changed surface, cite existing baseline controls, and assert no regression of existing posture (seecommands/secure.md§Brownfield Mode). B5 redesign re-models the affected trust boundaries fully.
Responsibilities
Vulnerability Detection
- OWASP Top 10 assessment
- Code review for security issues
- NuGet vulnerability scanning
- Secret exposure detection
Threat Modeling
- Identify attack surfaces
- Document threat vectors (STRIDE)
- Risk assessment
- Mitigation recommendations
- Use the fixed boilerplates in
.claude/templates/STRIDE_TEMPLATE.md+OWASP_TEMPLATE.md— fill feature-specific data only, never re-author template structure
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.
- 4d ago First seen · 270 lines · 11 tokens per session scan A b88950e4ddc4
Security Auditor is an agent published in the GitHub repository dinhnguyenngoc/spec-driven-claude-code (20 stars, last pushed 6d ago), licensed MIT. It adds 11 tokens to every session and 2,128 once invoked, about $0.0001 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.
Other agents, from other repositories
dnp-fable-advisor
🧠 Senior .NET advisor to the implementation agents — advises, never implements. Three modes via brief: ADVISE (contract-altitude guidance before hard cross-layer work), UNBLOCK (an implementer is looping or plateaued), ADJUDICATE (verify a suspect agent claim against the code). Consult at decision points, not before…
dnp-performance-analyst
⚡ .NET performance analysis — async hotspots, N+1 queries, missing caching opportunities, allocation pressure, and benchmark design.
dnp-planner
📋 Plans a .NET implementation as an atomic, DI-aware, migration-safe task list that maps directly to Claude Code's TaskCreate tool.
dnp-security-auditor
🔐 .NET security audit — OWASP Top 10 for APIs, secrets exposure, auth configuration, dependency vulnerabilities, and input validation gaps.
dnp-verifier
✅ Goal-backward verification for .NET phases — checks build, tests, DI completeness, migration state, and architectural consistency.
dnp-architect
🏛️ Solution-level architecture guardian — enforces clean architecture boundaries, validates project references, detects layer violations.