security-guard

security-guard is an agent for Claude Code from mtvrkan/senior-dev-kit. It costs 64 tokens per session (1,692 once invoked), scanned A, original, MIT.

A read-only security-review agent for examining authentication, permissions, payments, secrets, input handling, dependencies, and related risks.

In plain words
What is it for?
Use it for security reviews covering login, authorization, tokens, billing, validation, injection, rate limits, secret exposure, and security scans.
Why use it?
It helps identify security problems before code changes are made and requires a written review plan before implementation is considered.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Good fit Use it for security reviews covering login, authorization, tokens, billing, validation, injection, rate limits, secret exposure, and security scans.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mtvrkan/senior-dev-kit/security-guard
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.

Clone the repo
git clone --depth 1 https://github.com/mtvrkan/senior-dev-kit

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-guard

README.md
[![agentmods](https://agentmods.dev/badge/agents/mtvrkan/senior-dev-kit/security-guard/github.svg)](https://agentmods.dev/agents/mtvrkan/senior-dev-kit/security-guard)
Your own site
<a href="https://agentmods.dev/agents/mtvrkan/senior-dev-kit/security-guard"><img src="https://agentmods.dev/badge/agents/mtvrkan/senior-dev-kit/security-guard/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-guard

Your own site · 80×15
<a href="https://agentmods.dev/agents/mtvrkan/senior-dev-kit/security-guard"><img src="https://agentmods.dev/badge/agents/mtvrkan/senior-dev-kit/security-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,692 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.00064 $0.01692
Opus 5.5 $0.00026 $0.00677
Sonnet 5.5 $0.00013 $0.00338
Haiku 4.5 $0.00006 $0.00169

Measured today against content hash 09817dbd908e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-guard 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 today.

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.

antigravity/agents/security-guard.md · 151 lines

How it starts

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

READ-ONLY AGENT — you never edit, create or delete files. You return a written plan or findings and stop. Your procedures are the kit skills /security-review, /security-scan — open the matching one and follow it instead of improvising.

Reference docs (lazy-load when needed)

KIT_ROOT/agent_docs/security-protocols.md — detailed checklists for OAuth flows, JWT rotation, RLS policies, Supabase auth KIT_ROOT/agent_docs/architecture.md — module boundary rules and dependency direction (for auth middleware placement)


HARD CONSTRAINTS — read first, apply always

Never print secrets, tokens, API keys, passwords, or PII values in output — not even partially. Never implement security changes without first producing a written security review plan. Never approve a security fix that trades one vulnerability for another. Never dismiss a finding because "it's unlikely to be exploited" — likelihood is not a security control. This agent is READ-ONLY by default. After plan approval, the plan is routed to senior-engineer for implementation. Bash is for read-only inspection (git log, EXPLAIN, --dry-run, plan, audits): never a command that writes files, migrates, applies, deploys or installs. permissionMode: plan is ignored when the parent session runs in auto, acceptEdits or bypass mode, and a plugin install strips it entirely — this line is what keeps the guard read-only.


Core principles

Assume breach. Review code as if an attacker already knows the system design, has an account, and is looking for ways to escalate privilege, exfiltrate data, or disrupt service. The question is not "could an attacker find this?" but "what's the impact when they do?"

Fail secure. Every default should be the safe choice. Unknown role → deny. Ambiguous permission → deny. Error in auth check → deny. Code that "usually works" but has an unsafe edge case is a vulnerability.

Defense in depth. No single control is sufficient. Auth check in the controller AND the service. Input validation at the API boundary AND before the DB query. Security controls should stack, not replace each other.

Read the full file on GitHub · 151 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. today Changed · -3 lines 09817dbd908e
  2. 1mo ago Changed d601cb8b890e
  3. 1mo ago Changed c12a514ae6ca
  4. 2mo ago Changed · -4 lines 2aea24726f4f
  5. 3mo ago First seen · 158 lines · 64 tokens per session scan A 0ae93c280fd5

Subscribe to this mod's changes

security-guard is an agent published in the GitHub repository mtvrkan/senior-dev-kit (11 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 1,692 once invoked, about $0.0003 per session on Opus 5.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

security-guard compared with agents from other repositories

security-guard next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-guardmtvrkan/senior-dev-kitAgent11yesterdayMITA64Claude Code
code-reviewerroundpilot/superpowers-antigravityAgent1045d agoMITA44Claude Code
final-reviewerroundpilot/superpowers-antigravityAgent1045d agoMITA55Claude Code
re-reviewerroundpilot/superpowers-antigravityAgent1045d agoMITA48Claude Code
spec-reviewerroundpilot/superpowers-antigravityAgent1045d agoMITA42Claude Code
sophie-code-reviewermagic5644/Graph-It-LiveAgent64yesterdayMITA64Claude Code
julien-spec-devilmagic5644/Graph-It-LiveAgent64yesterdayMITA59Claude Code