security-engineer

security-engineer is an agent for Claude Code from bybren-llc/a-safe-pulse. It costs 16 tokens per session (1,556 once invoked), scanned A, a copy of security-engineer, MIT.

An agent role for checking application security, including database row-level security, vulnerability scans, and audits. Row-level security limits which database records each user can access.

In plain words
What is it for?
Use it to review access rules, scan for vulnerabilities, check data retention and privacy procedures, and validate production database migration plans.
Why use it?
It helps verify that user data is isolated, security checks pass, and privacy or compliance procedures are followed before changes reach production.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to review access rules, scan for vulnerabilities, check data retention and privacy procedures, and validate production database migration plans.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bybren-llc/a-safe-pulse/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/bybren-llc/a-safe-pulse

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/bybren-llc/a-safe-pulse/security-engineer/github.svg)](https://agentmods.dev/agents/bybren-llc/a-safe-pulse/security-engineer)
Your own site
<a href="https://agentmods.dev/agents/bybren-llc/a-safe-pulse/security-engineer"><img src="https://agentmods.dev/badge/agents/bybren-llc/a-safe-pulse/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/bybren-llc/a-safe-pulse/security-engineer"><img src="https://agentmods.dev/badge/agents/bybren-llc/a-safe-pulse/security-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 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,556 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 89% copy Near-identical to another mod 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.00016 $0.01556
Opus 5 $0.00008 $0.00778
Sonnet 5 $0.00003 $0.00311
Haiku 4.5 $0.00002 $0.00156

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

Origin

This is a copy

89% identical to security-engineer — 26 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/security-engineer.md · 247 lines

How it starts

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

Security Engineer (SecEng)

Role Overview

Validates security implementation using patterns from patterns_library/security/. Focus on RLS enforcement, vulnerability scanning, and security audits.

NEW (ASP-314): RLS & Compliance Owner

  • Validate RLS policies for new tables (see ../../docs/database/RLS_POLICY_CATALOG.md)
  • Audit data access patterns (user isolation verification)
  • Validate GDPR/compliance procedures (data retention, deletion, export)
  • Review data retention policies (see DATA_GOVERNANCE_POLICY.md)
  • Security review of PROD migration plans (MANDATORY before execution)

🚀 Quick Start

Your workflow in 4 steps:

  1. Read speccat specs/ASP-XXX-{feature}-spec.md
  2. Find pattern → Check spec for security pattern reference
  3. Copy & validate → Follow pattern's security validation guide
  4. Audit → Run npm audit && npx tsc --noEmit && RLS validation

That's it! BSA defined the security requirements. You just validate.

Success Validation Command

# Full security validation
cat scripts/rls-phase4-final-validation.sql | docker exec -i a-safe-pulse-postgres-1 psql -U {{PROJECT}}_app_user -d {{PROJECT}}_dev && npm audit --audit-level=high && npx tsc --noEmit && echo "SECURITY SUCCESS" || echo "SECURITY FAILED"

Pattern Execution Workflow

Step 1: Read Your Spec

# Get your assignment
cat specs/ASP-XXX-{feature}-spec.md

# Find the security requirements (BSA included this)
grep -A 5 "Security:" specs/ASP-XXX-{feature}-spec.md

Step 2: Load the Security Pattern

# BSA tells you which security validation to run
cat patterns_library/security/{pattern-name}.md

# Available security patterns:
ls patterns_library/security/
# - rls-validation.md (RLS enforcement check)
# - api-security-audit.md (API security review)
# - vulnerability-scan.md (dependency audit)

Step 3: Execute Security Validation

For RLS Validation (rls-validation.md):

# Automated RLS check
cat scripts/rls-phase4-final-validation.sql | docker exec -i a-safe-pulse-postgres-1 psql -U {{PROJECT}}_app_user -d {{PROJECT}}_dev

# Expected output:
# ✓ User isolation enforced
# ✓ Admin access controlled
# ✓ System context functional

Read the full file on GitHub · 247 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. 4d ago First seen · 247 lines · 16 tokens per session scan A d1fa9a4d046e

Subscribe to this mod's changes

security-engineer is an agent published in the GitHub repository bybren-llc/a-safe-pulse (9 stars, last pushed 5mo ago), licensed MIT. It adds 16 tokens to every session and 1,556 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to security-engineer, differing in 26 lines, and is treated as a copy.

Related

Other agents, from other repositories

MS-SQL Database Administrator

Work with Microsoft SQL Server databases using the MS SQL extension.

github/awesome-copilot · 18 tokens

core-data-auditor

Use this agent when the user mentions Core Data review, schema migration, production crashes, or data safety checking. Automatically scans Core Data code for the 5 most critical safety violations - schema migration risks, thread-confinement errors, N+1 query patterns, production data loss risks, and performance issues…

CharlesWiltgen/Axiom · 261 tokens

lens

Turns raw data into actionable decisions — dashboards, metric definitions, SQL analytics, funnel and cohort analysis across BI platforms. Use when designing a dashboard, defining KPIs, or running funnel analysis. Trigger with "design a dashboard", "analyze our funnel".

jeremylongshore/tons-of-skills-marketplace · 53 tokens

ecto-schema-designer

Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.

oliver-kriska/claude-elixir-phoenix · 30 tokens

django-migrations-specialist

Database specialist for Django, runs in the "database" extra phase after development. Finalizes model field types and Meta indexes/constraints, runs makemigrations, reviews generated SQL with sqlmigrate, runs migrate, verifies with migrate --check. Do NOT use for: application logic (django-architect), tests…

AratKruglik/claude-sdlc · 85 tokens

sql-expert

Usa este agente para cualquier tarea relacionada con base de datos en FacturaScripts: diseñar esquemas de tabla XML, optimizar consultas con DbQuery y Where, crear índices y constraints, escribir migraciones SQL, analizar rendimiento de queries, usar transacciones, trabajar con DataBaseWhere/DataBase/DbQuery, diseñar…

FacturaScripts/fs-claude-plugin · 102 tokens