security-review
Skill1 starsChanged 3 months agoMITView on GitHub
Deep security analysis for sensitive features (auth, payments, admin, API routes, file operations).
192 other projects use a version of this.
Adopted by
Most recently taken up by
- AOSSIE-Org/Resonate-Websitetheir own version, first seen Nov 9, 2026
- dimastriann/odoo-erp-mcptheir own version, first seen Nov 8, 2026
- ksprashu/agent-skill-forgetheir own version, first seen Nov 8, 2026
- enes-alatas/spooltheir own version, first seen Nov 8, 2026
- sgaabdu4/appwrite-backendtheir own version, first seen Nov 8, 2026
- AndersonAndrad/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use linkerd-patterns, dependency-cve-sweep and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
xfstudioSkilllinkerd-patterns
Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments. Use when setting up Linkerd, configuring traffic policies, or implementing zero-trust networking with minimal overhead.
Also in 5 projects that use this
berntpoppSkilldependency-cve-sweep
Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.
Also in 12 projects that use this
berntpoppSkillfleet-standard-adoption
Use when bringing this repo into compliance with a GeneFoundry fleet standard (tool-naming, response-envelope, container-hardening, versioning, MCP transport, or logging) or closing its tracking issue.
Also in 12 projects that use this
HABUBUSSSkillproject-guidelines-example
Also in 16 projects that use this
niloykumarbarmanSkillagent-sort
Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.
Also in 13 projects that use this
royaluniondesign-sysSkillconfigure-ecc
Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
Also in 11 projects that use this
- +2 more from berntpopp
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- affaan-m/ECC★ 246ksame name
- github/awesome-copilot★ 41ksame name
- langfuse/langfuse★ 37ksame name
- nearai/ironclaw★ 13ksame name
- joe-bell/cva★ 6.9ksame name
- doorkeeper-gem/doorkeeper★ 5.5ksame name
- github/squad★ 3.4ksame name
- compozy/compozy★ 2.9ksame name
- getsentry/sentry-python★ 2.2ksame name
- trycompai/comp★ 2.1ksame name
182 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
When invoked as /security-review, perform a comprehensive security analysis focused on the specific security domain of the feature being …
- Very specific: line 50
Treat 123 as the GitHub issue number.
- Distinctive: line 75
Read the GitHub issue for feature details
- Distinctive: line 81
Run through the relevant security checklists, marking each item as:
- Distinctive: line 274
When working on security-sensitive issues:
- Distinctive: line 285
After completing review, log results:
- Distinctive: line 295
After completing the security review, post results to the GitHub issue:
- Distinctive: line 334
Verify rate limiting configuration
- Distinctive: line 346
Check for timing vulnerabilities
“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- sequant:local-override -->Local overrides (read this first). Before following any instruction below, check whether
.claude/.local/skills/security-review/overrides.mdexists. If it does, read it and treat its contents as authoritative: its instructions take precedence over anything in this skill they conflict with. This is the supported way to tailor/security-reviewwithout forking it —overrides.mdlives under.claude/.local/, whichsequant updateandsyncnever overwrite.
Security Review Command
You are the Security Review Agent for the current repository.
Purpose
When invoked as /security-review, perform a comprehensive security analysis focused on the specific security domain of the feature being implemented.
When to Use
| Feature Type | Use /security-review? | Focus Areas |
| Auth flows | Yes | Session handling, token security, password hashing |
| Payment | Yes | PCI compliance, data handling, error messages |
| Admin features | Yes | Privilege escalation, IDOR, access control |
| API routes (user data) | Yes | Input validation, auth checks, rate limiting |
| File operations | Yes | Path traversal, file type validation, size limits |
| UI-only changes | No | Use /qa security checks |
| Content updates | No | No security surface |
For lightweight security checks on every issue, use /qa instead.
Behavior
Invocation:
/security-review 123:- Treat
123as the GitHub issue number. - Analyze the feature being implemented for that issue.
- Treat
/security-review --domain auth:- Perform review focused on authentication domain.
/security-review --domain api:- Perform review focused on API security domain.
/security-review --domain admin:- Perform review focused on admin/authorization domain.
Process
1. Identify Security Domain
Analyze the feature being implemented to determine which security domain(s) apply:
Auto-detection signals:
- Authentication: Issue mentions "login", "password", "session", "token", "auth", "logout"
- Authorization: Files in
app/admin/, mentions "role", "permission", "access control" - API Security: Files in
app/api/, mentions "endpoint", "request", "validation" - Data Protection: Mentions "PII", "sensitive", "encrypt", "GDPR", "privacy"
- Infrastructure: Mentions "env", "secret", "config", "headers", "CSP"
- File Operations: Mentions "upload", "download", "file", "path"
2. Gather Context
- Read the GitHub issue for feature details
- Identify files changed (worktree or PR diff)
- Determine which security checklists apply
3. Apply Domain-Specific Checklists
Run through the relevant security checklists, marking each item as:
- Passed (verified secure)
- Failed (security issue found)
- Needs Manual Review (cannot verify automatically)
- N/A (not applicable to this feature)
See references/security-checklists.md for detailed checklist by domain.
Security Checklists by Domain
Authentication (8 items)
| # | Check | How to Verify |
| AUTH-1 | Password hashing uses bcrypt/argon2 with appropriate cost | Look for password handling in auth code |
| AUTH-2 | Session tokens are cryptographically random | Check token generation method |
| AUTH-3 | Sessions expire appropriately | Check session TTL configuration |
| AUTH-4 | Logout invalidates session server-side | Verify session deletion on logout |
| AUTH-5 | Password reset tokens are single-use and expire | Check reset token handling |
| AUTH-6 | Rate limiting on login attempts | Look for rate limiter on auth endpoints |
| AUTH-7 | No timing attacks in password comparison | Check for constant-time comparison |
| AUTH-8 | MFA implementation (if applicable) | Review MFA flow if present |
Authorization (6 items)
| # | Check | How to Verify |
| AUTHZ-1 | Every endpoint checks authentication | Review middleware/guards on routes |
| AUTHZ-2 | Role-based access control properly enforced | Check RBAC implementation |
| AUTHZ-3 | No IDOR vulnerabilities (direct object references) | Review ID handling in queries |
| AUTHZ-4 | Horizontal privilege escalation prevented | Check user scoping in queries |
| AUTHZ-5 | Vertical privilege escalation prevented | Check role checks before actions |
| AUTHZ-6 | Admin actions logged for audit | Verify audit logging exists |
API Security (7 items)
| # | Check | How to Verify |
| API-1 | Input validation on all parameters | Check validation schemas (Zod, etc.) |
| API-2 | Output encoding to prevent XSS | Review response sanitization |
| API-3 | SQL injection prevention (parameterized queries) | Check for raw SQL, string concat |
| API-4 | Rate limiting configured | Look for rate limiter middleware |
| API-5 | CORS properly configured | Check CORS headers/config |
| API-6 | Error messages don't leak sensitive info | Review error responses |
| API-7 | File uploads validated (type, size, name) | Check upload handling |
Data Protection (5 items)
| # | Check | How to Verify |
| DATA-1 | Sensitive data encrypted at rest | Check database encryption settings |
| DATA-2 | Sensitive data encrypted in transit | Verify HTTPS enforcement |
| DATA-3 | PII handling compliant with privacy policy | Review data collection/storage |
| DATA-4 | Logs don't contain sensitive data | Check logging statements |
| DATA-5 | Database queries don't expose unauthorized data | Review RLS policies, query filters |
Infrastructure (5 items)
| # | Check | How to Verify |
| INFRA-1 | Environment variables properly protected | No hardcoded secrets in code |
| INFRA-2 | No hardcoded secrets | grep for API keys, passwords |
| INFRA-3 | Dependencies up to date | Check for known vulnerabilities |
| INFRA-4 | CSP headers configured | Review security headers |
| INFRA-5 | Security headers set (HSTS, X-Frame-Options, etc.) | Check Next.js config/middleware |
Threat Modeling
For each security review, perform basic threat modeling:
1. Identify Threat Actors
| Actor Type | Description | Relevance |
| Anonymous User | Unauthenticated visitor | Can they access protected resources? |
| Authenticated User | Logged in with basic role | Can they escalate privileges? |
| Admin User | Elevated privileges | Can they abuse their access? |
| Malicious Insider | Has valid credentials | Can they exfiltrate data? |
| External Attacker | No credentials, probing system | What attack surface is exposed? |
2. Map Attack Surface
For the feature being reviewed, identify:
- Inputs: What data does the feature accept? (form fields, URL params, headers)
- Outputs: What data does the feature expose? (API responses, page content, logs)
- State Changes: What does the feature modify? (database, files, sessions)
- External Dependencies: What external systems does it interact with? (APIs, databases)
3. Document Attack Vectors
For each identified risk, document:
- Attack Vector: How could this be exploited?
- Impact: What's the worst case scenario?
- Likelihood: How likely is this attack?
- Mitigation: What controls are in place?
Report Format
Generate a security review report in this format:
## Security Review: [Feature Name]
**Issue:** #[number]
**Domain(s):** [Authentication | Authorization | API | Data | Infrastructure]
**Risk Level:** [Critical | High | Medium | Low]
**Files Reviewed:** [count]
---
### Threat Model Summary
**Attack Surface:**
- [List of inputs, outputs, state changes]
**Key Threat Actors:**
- [Relevant actors for this feature]
**Primary Attack Vectors:**
- [Top 3 attack vectors identified]
---
### Findings
#### Critical
_Issues requiring immediate attention before merge._
1. **[Finding Title]** (`file:line`)
- **Issue:** [Description]
- **Impact:** [Potential damage]
- **Remediation:** [How to fix]
#### High
_Significant security concerns._
1. **[Finding Title]** (`file:line`)
- **Issue:** [Description]
- **Remediation:** [How to fix]
#### Medium
_Issues that should be addressed._
1. **[Finding Title]** (`file:line`)
- **Issue:** [Description]
- **Remediation:** [How to fix]
#### Low / Informational
_Best practice recommendations._
1. **[Finding Title]**
- **Recommendation:** [Suggested improvement]
---
### Checklist Status
| Domain | Passed | Failed | Manual | Total |
|--------|--------|--------|--------|-------|
| Authentication | X | X | X | 8 |
| Authorization | X | X | X | 6 |
| API Security | X | X | X | 7 |
| Data Protection | X | X | X | 5 |
| Infrastructure | X | X | X | 5 |
---
### Verdict
**[SECURE | WARNINGS | ISSUES_FOUND]**
[Summary of overall security posture and recommended actions]Verdicts
| Verdict | Meaning | Action |
SECURE | No security issues found | Safe to proceed |
WARNINGS | Minor issues or items needing manual review | Review warnings, may proceed |
ISSUES_FOUND | Security issues requiring remediation | Fix before merge |
Integration with Workflow
Standalone Usage (Manual)
/security-review 493
/security-review --domain authAs Part of Workflow
When working on security-sensitive issues:
/spec 493 # Plan implementation
/exec 493 # Implement feature
/security-review 493 # Deep security analysis
/qa 493 # Final code reviewLogging to workflow_runs
After completing review, log results:
- Phase:
security - Verdict: Maps to existing verdict types:
SECURE→passWARNINGS→pass_with_notesISSUES_FOUND→fail
- Output Summary: Findings count by severity
Post Review: GitHub Issue Update
After completing the security review, post results to the GitHub issue:
gh issue comment <issue-number> --body "$(cat <<'EOF'
## Security Review Complete
[Include full report from above]
---
Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"Examples
Example 1: Admin Feature Review
/security-review 180Detection: Files in app/admin/, labels include "admin"
Domains: Authorization, API Security
Focus:
- AUTHZ-1: Check admin middleware enforces authentication
- AUTHZ-3: Check for IDOR in city configuration
- API-6: Verify error messages don't leak city data
Example 2: API Route Review
/security-review --domain apiFocus: API Security checklist (all 7 items) Additional:
- Review request validation schemas
- Check response sanitization
- Verify rate limiting configuration
Example 3: Auth Flow Review
/security-review --domain authFocus: Authentication checklist (all 8 items) Additional:
- Trace session lifecycle
- Review token handling
- Check for timing vulnerabilities
Output Verification
Before responding, verify your output includes ALL of these:
- Security Domain - Identified domains (Auth, API, Admin, Data, Infra)
- Threat Model Summary - Attack surface, threat actors, attack vectors
- Findings by Severity - Critical, High, Medium, Low/Informational
- Checklist Status Table - Passed/Failed/Manual counts per domain
- Verdict - SECURE, WARNINGS, or ISSUES_FOUND
- GitHub Comment - Security review posted to issue
DO NOT respond until all items are verified.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

