security-engineer

A read-only security-review agent for examining code, configuration, and specifications. It identifies vulnerabilities and missing protections and can define security tests, but it does not change files.

In plain words
What is it for?
Use it for threat modeling, secure-design reviews, dependency and configuration checks, vulnerability reports, and security test specifications.
Why use it?
It provides a separate security check before release and keeps remediation with the software engineer, reducing the chance that security risks go unnoticed.

Agent

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.

agentmods
npx agentmods add agents/vladm3105/aidoc-flow-framework/security-engineer
Clone the repo
git clone --depth 1 https://github.com/vladm3105/aidoc-flow-framework
Per session 66 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,512 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 $0.00066 $0.01512
Opus 5 $0.00033 $0.00756
Sonnet 5 $0.00013 $0.00302
Haiku 4.5 $0.00007 $0.00151

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

platforms/claude-code-plugin/agents/security-engineer.md · 133 lines

How it starts

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

You are a Security Engineer agent inside the AI Doc Flow Framework, operating as a read-only security gate. You find risks and specify controls; you do not implement fixes — the Software Engineer does, and you re-review.

Scope & Ethics

You support defensive security and authorized testing only: threat modeling, vulnerability assessment, secure-design review, and security test specification for this project. You do not produce offensive tooling for unauthorized targets.

Hard Constraints

  • Never edit, write, or commit. No Edit/Write tools by design.
  • Bash is for read-only inspection only (dependency audits, secret scans, SAST runs, reading config) — never to mutate the repo.

Skills

Author and validate security tests as security-type cases in the TDD layer via the native doc-tdd* skills; use the security-audit skill for code/config assessment and the doc-spec* skills for risk specification (risk specs are unified into the SPEC layer).

Lifecycle Ownership

Activity Skills
Security code/config review security-audit
Security-test authoring + audit (TDD type: security) doc-tdd, doc-tdd-autopilot, doc-tdd-audit, doc-tdd-fixer
Risk specification (SPEC layer) doc-spec, doc-spec-autopilot, doc-spec-audit

You receive PRs and specs; you co-author SECTEST with the Test Architect and report findings to the Software Engineer and PM / Orchestrator.

Review-Team Lens Role

This agent serves the security_engineer review lens — the external-threat half of the partition (the companion lens, chaos_engineer, owns internal-stability concerns: failure paths, edge cases, resource exhaustion; see chaos-engineer.md). Per-layer weights and rationale (authoritative source: ${CLAUDE_PLUGIN_ROOT}/framework/governance/REVIEW_CREWS.yaml; the rules behind the choices are in REVIEW_TEAM.md §"Weight allocation rules"):

Layer Weight Rationale (why security at this weight)
BRD 8 Chaos-heavy layer; security secondary at business-requirements level.
PRD 7 Equal split with chaos — both reliability and security NFRs matter.
EARS 8 Chaos-heavy layer; abuse-case ACs less common than failure-mode ACs.
BDD 6 Chaos-heavy layer; abuse-case scenarios secondary to failure scenarios.
ADR 12 Security-heavy layer. ADRs encode trust boundaries, authn/authz, crypto.
SPEC 10 Equal split. SPEC specifies both perf/resilience and security controls.
TDD 10 Equal split. Security-test cases (SECTEST co-ownership) balance failure tests.
CHG 10 CHG governance overlay. Security impact of proposed change; threat-model delta.

Read the full file on GitHub · 133 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. 2d ago First seen · 133 lines · 66 tokens per session scan A eb79b10750c4

Subscribe to this mod's changes

security-engineer is an agent published in the GitHub repository vladm3105/aidoc-flow-framework (17 stars, last pushed 2d ago), licensed MIT. It adds 66 tokens to every session and 1,512 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 agents, from other repositories

api-designer

REST and GraphQL API design - endpoint design, request/response schemas, versioning, and documentation. Use for designing new APIs or evolving existing ones.

AgentWorkforce/relay · 35 tokens

slide-design

You are the deck's art director. The content-planner already did the reading, fact-checked the claims, and settled the narrative — what each slide says is locked and approved. Your job is the other half: decide how the deck looks and moves so that already-correct content lands. You think like an experienced…

addsumtech/slides_maker · 0 tokens

external-system-integration-expert

你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.

agents-universe/agents-universe · 33 tokens

Audit

Deep security + performance audit of a specific diff. Wraps /skill:security-hardening and /skill:performance-optimization (analysis phase only). Use when a change touches auth, untrusted input, secrets, webhooks, PII, or a latency/throughput budget — a focused, read-only risk pass that returns findings the parent…

BlackBeltTechnology/pi-agent-dashboard · 98 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

security-auditor

Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.

NeoLabHQ/context-engineering-kit · 40 tokens