security-engineer

security-engineer is an agent for Claude Code from altmemy/claude-code-templates. It costs 45 tokens per session (1,333 once invoked), scanned A, original, no licence file.

A coding agent focused on protecting frontend applications and their users. It covers common web risks such as XSS, where untrusted content runs as code, and CSRF, where an unwanted request is made through a user's session.

In plain words
What is it for?
Use it for XSS prevention, security headers, CSRF protection, authentication-token handling, input cleaning, dependency checks, and security audits.
Why use it?
It helps find and reduce security weaknesses in browser code, requests, authentication, and application configuration.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the frontend-plugin plugin — 5 skills, 7 agents, 5 hooks shipped together

Good fit Use it for XSS prevention, security headers, CSRF protection, authentication-token handling, input cleaning, dependency checks, and security audits.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/altmemy/claude-code-templates/security-engineer
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/altmemy/claude-code-templates

Made for: Claude Code.

Or install frontend-plugin, the plugin that ships this one along with the rest of its 5 skills, 7 agents, 5 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/altmemy/claude-code-templates/security-engineer/github.svg)](https://agentmods.dev/agents/altmemy/claude-code-templates/security-engineer)
Your own site
<a href="https://agentmods.dev/agents/altmemy/claude-code-templates/security-engineer"><img src="https://agentmods.dev/badge/agents/altmemy/claude-code-templates/security-engineer/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-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/altmemy/claude-code-templates/security-engineer"><img src="https://agentmods.dev/badge/agents/altmemy/claude-code-templates/security-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 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,333 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 unknown 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.00045 $0.01333
Opus 5.5 $0.00018 $0.00533
Sonnet 5.5 $0.00009 $0.00267
Haiku 4.5 $0.00005 $0.00133

Measured 1mo ago against content hash 218a9a166070, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-engineer 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 1mo 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.

claude-ai-frontend/.claude/agents/security-engineer.md · 167 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 1mo ago First seen · 167 lines · 45 tokens per session scan A 218a9a166070

Subscribe to this mod's changes

security-engineer is an agent published in the GitHub repository altmemy/claude-code-templates (25 stars, last pushed 6mo ago), with no licence file. It adds 45 tokens to every session and 1,333 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

solution-diagrammer

Draws one evidence-grounded architecture diagram as an editable draw.io file plus a rendered image, from an evidence bundle supplied by the caller. Use to produce a system context, container, component, deployment, data flow, sequence, state, or ERD diagram; spawn one per diagram for a batch.

HoangNguyen0403/agent-skills-standard · 66 tokens

system-architect

Runs one bounded deep dive on a single risky component of a system design and returns options, failure modes, and a justified recommendation. Use during a design session when a component needs expert depth beyond the main thread's budget.

HoangNguyen0403/agent-skills-standard · 48 tokens

tdd-implementer

Strict quality-first TDD specialist. Selects the smallest honest test layer, proves distinct regression risk, and records bounded RED-GREEN-REFACTOR evidence for one AC.

HoangNguyen0403/agent-skills-standard · 41 tokens

aspm-correlator

Application Security Posture Management persona. Correlates findings from SAST, DAST, and SCA tools, deduplicates noise, maps vulnerabilities to specific code commits, and generates targeted remediation PRs.

HoangNguyen0403/agent-skills-standard · 48 tokens

security-reviewer

High-density security audit persona. Enforces OWASP Top 10, Vibe Security, trust gating, and runtime hardening for code and agentic review flows.

HoangNguyen0403/agent-skills-standard · 37 tokens

testid-inserter

Inserts stable test ids into production components for each selector gap named by a test plan, following the per-framework insertion policy and never renaming existing ids. Use when a test plan or page object lists selector gaps that block E2E generation.

HoangNguyen0403/agent-skills-standard · 55 tokens