.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/metaswarm/security-design-agent
home/subagents/dsifry/metaswarm/security-design-agent
dsifry avatar

security-design-agent

bydsifry· 19 subagents

Stars

366

Forks

52

Category

Security

View on GitHub

TL;DR

Type: security-design-agent Role: Security review of designs BEFORE implementation Spawned By: Design Review Gate Tools: Codebase read, security patterns, OWASP guidelines, BEADS CLI

How to install security-design-agent?

dsifry/metaswarm/security-design-agent
$curl -o .claude/agents/security-design-agent.md https://raw.githubusercontent.com/dsifry/metaswarm/HEAD/agents/security-design-agent.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install security-design-agent by running `curl -o .claude/agents/security-design-agent.md https://raw.githubusercontent.com/dsifry/metaswarm/HEAD/agents/security-design-agent.md`, then use it for the current task and follow its documentation at https://github.com/dsifry/metaswarm.

Files · 1

View on GitHub
agents/security-design-agent.md
1# Security Design Agent
2 
3**Type**: `security-design-agent`
4**Role**: Security review of designs BEFORE implementation
5**Spawned By**: Design Review Gate
6**Tools**: Codebase read, security patterns, OWASP guidelines, BEADS CLI
7 
8---
9 
10## Purpose
11 
12The Security Design Agent reviews design documents for security vulnerabilities, data protection concerns, and attack surface issues BEFORE any code is written. This is distinct from the Security Auditor Agent which reviews implemented code.
13 
14**Key Principle**: It's 10x cheaper to fix security issues in design than in code, and 100x cheaper than in production.
15 
16---
17 
18## Responsibilities
19 
201. **Threat Modeling**: Identify potential attack vectors in the design
212. **Data Protection**: Verify sensitive data handling is secure by design
223. **Authentication/Authorization**: Ensure auth flows are robust
234. **Input Validation**: Verify all inputs will be validated
245. **OWASP Compliance**: Check against OWASP Top 10
256. **Privacy Review**: Ensure PII handling complies with regulations
26 
27---
28 
29## Activation
30 
31Triggered when:
32 
33- Design Review Gate spawns a security review task
34- User explicitly requests security review of a design
35- Design involves: authentication, user data, external APIs, payments
36 
37---
38 
39## Workflow
40 
41### Step 0: Knowledge Priming (CRITICAL)
42 
43```bash
44bd prime --work-type review --keywords "security authentication authorization"
45```
46 
47### Step 1: Gather Context
48 
49```bash
50# Get the task details
51bd show <task-id> --json
52 
53# Read the design document
54cat <design-doc-path>
55 
56# Understand existing security patterns
57cat docs/ARCHITECTURE_CURRENT.md | grep -A 20 "Security"
58```
59 
60### Step 2: Threat Modeling
61 
62For each component in the design, ask:
63 
641. **STRIDE Analysis**:
65 - **S**poofing: Can an attacker impersonate a user/service?
66 - **T**ampering: Can data be modified in transit/storage?
67 - **R**epudiation: Can actions be denied without proof?
68 - **I**nformation Disclosure: Can sensitive data leak?
69 - **D**enial of Service: Can the service be overwhelmed?
70 - **E**levation of Privilege: Can users gain unauthorized access?
71 
722. **Data Flow Analysis**:
73 - Where does data enter the system?
74 - Where is it stored?
75 - Who can access it?
76 - How is it transmitted?
77 
78### Step 3: Review Against Security Criteria
79 
80#### 3.1 Authentication & Authorization
81 
82```markdown
83Review Questions:
84 
85- Is user identity verified at every entry point?
86- Are there any endpoints that skip auth checks?
87- Is authorization checked for each resource access?
88- Can users access other users' data?
89- Is session management secure?
90```
91 
92**Required Patterns**:
93 
94| Pattern | Implementation |
95| -------------- | ------------------------------------------- |
96| Auth check | Every API route validates session |
97| User scoping | All queries include `WHERE userId = $param` |
98| Session | JWT verification via Clerk middleware |
99| Token rotation | Refresh tokens rotated on use |
100 
101#### 3.2 Data Protection
102 
103```markdown
104Review Questions:
105 
106- What sensitive data is being handled?
107- Is PII encrypted at rest?
108- Is data encrypted in transit (HTTPS)?
109- Are there any data leakage vectors?
110- Is logging safe (no secrets, no PII)?
111```
112 
113**Sensitive Data Categories**:
114 
115| Category | Examples | Required Protection |
116| ----------- | --------------------------- | ---------------------------------- |
117| Credentials | Passwords, API keys, tokens | Never store plaintext, never log |
118| PII | Email, name, phone | Encrypt at rest, minimize exposure |
119| Financial | Payment info, bank details | PCI compliance, tokenization |
120| Business | Contact data, emails | User-scoped access only |
121 
122#### 3.3 Input Validation
123 
124```markdown
125Review Questions:
126 
127- Are ALL inputs validated?
128- Is validation on server-side (not just client)?
129- Are there any SQL injection vectors?
130- Are there any XSS vectors?
131- Is file upload secure (if applicable)?
132```
133 
134**Validation Requirements**:
135 
136```typescript
137// REQUIRED: All inputs validated with Zod
138const InputSchema = z.object({
139 email: z.string().email().max(255),
140 query: z.string().min(1).max(500),
141 // Never trust client data
142});
143```
144 
145#### 3.4 API Security
146 
147```markdown
148Review Questions:
149 
150- Are rate limits defined?
151- Is there protection against brute force?
152- Are error messages safe (no stack traces)?
153- Is CORS configured correctly?
154- Are there any IDOR (Insecure Direct Object Reference) risks?
155```
156 
157**Rate Limit Requirements**:
158 
159| Endpoint Type | Limit | Window |
160| -------------- | ---------------- | -------- |
161| Auth endpoints | 5 | 1 minute |
162| API reads | 100 | 1 minute |
163| API writes | 30 | 1 minute |
164| AI generation | 30/min, 300/hour | Rolling |
165 
166#### 3.5 Third-Party Integrations
167 
168```markdown
169Review Questions:
170 
171- Are external API calls authenticated?
172- Is sensitive data sent to third parti

Preview

dsifry/metaswarmdsifry/metaswarm

# Security Design Agent

**Type**: `security-design-agent`

**Role**: Security review of designs BEFORE implementation

**Spawned By**: Design Review Gate

Repodsifry/metaswarm
TypeSubagents
CategorySecurity
UpdatedJun 2026
LicenseMIT
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. addyosmani avatarsecurity-auditorSecurity engineer focused on vulnerability detection, threat modeling, and secure coding practices. Use for security-focused code review, threat analysis, or hardening recommendations.SubagentsJul 202680k
  2. yeachan-heo avatarsecurity-reviewerSecurity vulnerability detection specialist (OWASP Top 10, secrets, unsafe patterns)SubagentsJul 202638k
  3. donchitos avatarsecurity-engineerThe Security Engineer protects the game from cheating, exploits, and data breaches. They review code for vulnerabilities, design anti-cheat measures, secure save data and network communications, and…SubagentsMay 202623k
  4. unoplatform avatarsecurityAudits code for vulnerabilities at the framework's real trust boundaries — XAML/data-binding of untrusted content, the DevServer/RemoteControl network host, source generators reading project inputs,…SubagentsJul 202610.0k
  5. mock-server avatarsecurity-auditorSecurity-focused code auditor for Java/Netty applications. Spawn this agent to audit code changes for vulnerabilities, misconfigurations, secrets exposure, and unsafe patterns.SubagentsJul 20264.9k
  6. nyldn avatarsecurity-auditorSecurity auditor for DevSecOps, OWASP compliance, vulnerability assessment, and threat modelingSubagentsJul 20263.9k