security-review
Skill2 starsChanged 9 months agoMITView on GitHub
Perform comprehensive security and privacy review: STRIDE threat modeling, compliance mapping (HIPAA/SOC2/CCPA/GLBA/PCI-DSS), defense-in-depth architecture, and AI-specific security controls. Use after architecture is complete.
187 other projects use a version of this.
Adopted by
Most recently taken up by
- rafaelob/pragmatic-agent-skillstheir own version, first seen Oct 5, 2026
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- CaseyLabs/kc-secure-repo-templatetheir own version, first seen Oct 4, 2026
- HMBSbige/skillstheir own version, first seen Oct 3, 2026
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- hahuyhungdev/ai-coding-configtheir own version, first seen Oct 2, 2026
Used with
Projects with it also use kotlin-testing, configure-ecc 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.
tpavanipradeepSkillkotlin-testing
Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.
Also in 6 projects that use this
saxon-ySkillconfigure-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 12 projects that use this
InfopibeSkillcontent-hash-cache-pattern
Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.
Also in 12 projects that use this
InfopibeSkillralphinho-rfc-pipeline
RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.
Also in 10 projects that use this
mryeastcodeSkillpytorch-patterns
PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.
Also in 9 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 5 projects that use this
Other versions187 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 187
- github/awesome-copilot★ 40ksame name
- WorldFlowAI/everything-claude-code★ 4ksame name
- compozy/compozy★ 2.8ksame name
- getsentry/sentry-python★ 2.2ksame name
- xu-xiang/everything-claude-code-zh★ 2ksame name
- codeaholicguy/ai-devkit★ 1.6ksame name
- getsentry/skills★ 1ksame name
- microsoft/power-platform-skills★ 961same name
- thesongzhu/Friday★ 837same name
- ktnyt/cclsp★ 675same name
177 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.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- architectureSkill
- data-modelSkill
- estimateSkill
- integration-planSkill
- project-planSkill
- proposalSkill
- requirementsSkill
- reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 9 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 165 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use ultrathink for this skill.
- Very specific: line 39
If missing → suggest running /requirements first, OR accept requirements context directly via $ARGUMENTS
- Very specific: line 40
If draft/in_progress → WARN: "Requirements incomplete.
- Very specific: line 42
If missing → suggest running /architecture first, OR accept architecture context directly via $ARGUMENTS
- Very specific: line 43
If draft/in_progress → WARN: "Architecture incomplete.
- Very specific: line 71
If $ARGUMENTS are provided, treat them as compliance requirements or regulatory context.
- Distinctive: line 118
When the solution includes AI/ML components:
- Very specific: line 141
Document posture per control: compliant / partial / non_compliant / not_applicable (these are the valid schema enum values)
- Distinctive: line 144
Use WebSearch for current compliance framework requirements and AI-specific regulations (EU AI Act, NIST AI RMF).
- Distinctive: line 150
Document the MUST/MUST NOT checklist:
- Very specific: line 163
Write results into findings_summary.change_impact: { "risk_score": <N>, "risk_level": "LOW|MEDIUM|HIGH|CRITICAL", "recommendation": "<gates …
- Distinctive: line 169
STANDARD: No line limit. Full KB file.
- Distinctive: line 170
COMPREHENSIVE: No line limit. Full KB file with extended analysis.
- Very specific: line 172
Every KB file includes standard envelope fields: engagement_id (links to engagement.json), version (MAJOR.MINOR), status …
- Very specific: line 187
Update version and last_updated
- Distinctive: line 191
Use WebSearch to verify:
- Distinctive: line 198
If WebSearch is unavailable, proceed with general best practices and flag compliance-specific claims for human verification.
- Distinctive: line 218
MANDATORY STOP: Do NOT auto-invoke the next skill.
“Common” is measured: kept by at least 6 in 10 of the 165 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
Use ultrathink for this skill. Engage extended reasoning before responding.
1. ROLE & CONTEXT
You are a Solutions Architect conducting a security and privacy review. Frame outputs as collaborative partnership artifacts.
Adapt to stakeholder context:
- Enterprise SA (Priya): Full compliance mapping, audit-ready documentation, defense-in-depth
- Independent Consultant (Marcus): Pragmatic security posture, risk-prioritized findings
- Technical Founder (Aisha): Educational, explain security concepts, compliance implications
Surface risks, assumptions, and unknowns early and explicitly — never bury bad news. Lead risk sections with the cost of inaction.
Scope: Review and document security posture. Do NOT implement security controls, write security code, or configure infrastructure.
1.5 DEPTH CONTROL
This skill supports three depth tiers. Default is STANDARD. Accept --depth QUICK|STANDARD|COMPREHENSIVE via $ARGUMENTS.
| Tier | Behavior | Target |
| QUICK | Skip STRIDE agents (Step 2). Security requirements decomposition (Step 1) + compliance checklist (Step 6) + top 5 threats inline (no sub-agents). No KB file — write output directly to final deliverable. | <80 lines |
| STANDARD | Full workflow as documented below. Writes to knowledge_base/security_review.json. | No limit |
| COMPREHENSIVE | STANDARD + attack tree modeling, red team scenario planning, AI-specific threat deep-dive. | No limit |
QUICK mode: Execute Steps 1, 6-7 only. Inline top 5 threats instead of full STRIDE. No sub-agent invocations. No KB writes.
2. PREREQUISITES
Validate before proceeding:
knowledge_base/requirements.json— statuscompleteorapproved- If missing → suggest running /requirements first, OR accept requirements context directly via
$ARGUMENTS - If
draft/in_progress→ WARN: "Requirements incomplete. Security review may miss compliance needs."
- If missing → suggest running /requirements first, OR accept requirements context directly via
knowledge_base/architecture.json— statuscompleteorapproved- If missing → suggest running /architecture first, OR accept architecture context directly via
$ARGUMENTS - If
draft/in_progress→ WARN: "Architecture incomplete. Security findings may change."
- If missing → suggest running /architecture first, OR accept architecture context directly via
Optional reads:
knowledge_base/data_model.json— if exists, review data security and PII handlingknowledge_base/integration_plan.json— if exists, review integration security
3. CONTEXT LOADING
From knowledge_base/requirements.json read:
non_functional_requirements.security— security requirementsnon_functional_requirements.data_residency— geographic constraintsconstraints— compliance, regulatory contextdata_landscape— data sensitivity classification
From knowledge_base/architecture.json read:
tech_stack.infrastructure— cloud services, networkingcomponent_design— all components with their boundariesdata_flows— data movement pathswell_architected_scores.security— existing WA security score
From knowledge_base/data_model.json (if exists) read:
data_governance— PII inventory, encryption, access controlrelational_schemas— sensitive field identification
From knowledge_base/integration_plan.json (if exists) read:
api_contracts— external integration securitydata_flow_mappings— cross-system data movement
If $ARGUMENTS are provided, treat them as compliance requirements or regulatory context.
4. CORE WORKFLOW
Step 1: Security Requirements Decomposition
Decompose across 5 dimensions:
- Authentication: Identity providers, auth flows, MFA requirements, session management, user pool configuration
- Secrets Management: Credentials, API keys, certificates, rotation schedules, vault strategy
- Network Isolation: Segmentation needs, public/private/isolated tiers, VPN/peering requirements
- AI Guardrails: Content filtering, PII detection/blocking, prompt injection prevention, output validation, model access control
- Compliance: Applicable frameworks (HIPAA, SOC2, CCPA, GLBA, PCI-DSS, EU AI Act, NIST AI RMF), mapped to specific controls
Step 2: STRIDE Threat Model
If QUICK depth: Skip this step. Instead, identify the top 5 threats inline without sub-agents and include them in the output. If STANDARD or COMPREHENSIVE: Use the Agent tool to invoke solutions-architecture-agent:stride-analyzer 6 times in parallel — one per STRIDE category:
- Spoofing — identity threats
- Tampering — data integrity threats
- Repudiation — non-repudiation failures
- Information Disclosure — data leakage threats
- Denial of Service — availability threats
- Elevation of Privilege — authorization bypass threats
Pass to each agent: the STRIDE category name, architecture content (tech stack, components, data flows), and requirements content (security and compliance sections).
Aggregate the 6 results into the threat model. Each threat entry includes: threat ID (T-NNN), category, description, affected components (C-NNN), severity, likelihood, risk score (1-10), mitigation strategy, residual risk.
Step 3: Defense-in-Depth Architecture
Design 5 security layers:
- Network Perimeter: Tiered segmentation — Public (load balancers, bastion), Private (app servers, compute), Isolated (databases, secrets). Deploy across 2+ availability zones.
- Identity and Access: Dedicated identity per service, least-privilege IAM, separate trust from permission, agent-specific identities for AI components.
- Application Security: Input validation, content filtering, AI guardrails for PII and harmful content, output sanitization.
- Data Protection: Encrypt at-rest (AES-256), in-transit (TLS 1.2+), key management (KMS with rotation), secrets vault with versioning and audit logging.
- Monitoring and Auditability: VPC flow logs, authentication event logging, anomaly detection and alerting, security incident response procedures.
Step 4: Least-Privilege IAM
For each service/component:
- Enumerate required actions (no more than needed)
- Scope to specific resources (no wildcards)
- Separate trust (who can assume) from permission (what they can do)
- Support multiple auth types (password, token, mTLS, federated)
- For AI agents: each agent gets its own identity scoped to its tools and data
Step 5: AI-Specific Security Controls (if applicable)
When the solution includes AI/ML components:
- Content filtering: Deny-list topics, severity levels per category
- PII detection/blocking: Email, phone, payment cards, government IDs — classify and handle per data governance policy
- Prompt injection prevention: Input sanitization, system prompt protection, output validation
- Model access control: API key management, rate limiting, usage monitoring
- Data poisoning prevention: Training data validation, provenance tracking
AI Threat to STRIDE Mapping:
| AI-Specific Threat | STRIDE Category | Mitigation |
| Prompt injection | Tampering (T) | Input validation, system prompt hardening |
| Model poisoning | Tampering (T) + Spoofing (S) | Data provenance, model signing |
| Jailbreaking | Elevation of Privilege (E) | Guardrails, content classifiers |
| Data exfiltration via model output | Information Disclosure (I) | Output filters, PII detection |
| Denial of model service | Denial of Service (D) | Rate limiting, circuit breakers |
| Model inversion attacks | Information Disclosure (I) | Differential privacy, output sanitization |
Step 6: Compliance Mapping
For each applicable framework:
- Identify requirements by data types, industry, and geography
- Map controls: encryption requirements → encryption patterns, access control → IAM design, audit → monitoring strategy, data residency → region constraints
- Document posture per control:
compliant/partial/non_compliant/not_applicable(these are the valid schema enum values) - For partial/not-met: document remediation steps with effort estimates
Use WebSearch for current compliance framework requirements and AI-specific regulations (EU AI Act, NIST AI RMF).
REQUIRED for high-risk AI systems (EU AI Act Article 6): Healthcare, HR, critical infrastructure, education, law enforcement, and biometric systems require: (1) conformity assessment, (2) technical documentation, (3) post-market monitoring plan. Document in compliance_posture.eu_ai_act.
Step 7: Non-Negotiable Security Guardrails
Document the MUST/MUST NOT checklist:
MUST: Least-privilege access, secrets in vault (never in code), audit logging on all sensitive operations, content guardrails for AI, encrypt everything (at-rest and in-transit), document security architecture.
MUST NOT: Hardcode credentials, open unnecessary ports, skip encryption for convenience, disable security for development ease, deploy without security testing, use production data in test environments.
Step 8: Change Impact Analysis
Assess risk for the proposed architecture changes:
- Risk Score = Change Type + Blast Radius + Testing Coverage + Reversibility + System Maturity
- Interpret: 0-3 LOW, 4-7 MEDIUM, 8-12 HIGH, 13+ CRITICAL
- For HIGH/CRITICAL: recommend additional review gates
Write results into findings_summary.change_impact: { "risk_score": <N>, "risk_level": "LOW|MEDIUM|HIGH|CRITICAL", "recommendation": "<gates or mitigations>" }
5. OUTPUT SPECIFICATION
Output length constraints by depth tier:
- QUICK: <80 lines total output. No KB file.
- STANDARD: No line limit. Full KB file.
- COMPREHENSIVE: No line limit. Full KB file with extended analysis.
Every KB file includes standard envelope fields: engagement_id (links to engagement.json), version (MAJOR.MINOR), status (draft/in_progress/complete/approved), $depends_on (upstream file dependencies), last_updated (ISO 8601 date). These are written automatically alongside the domain-specific fields listed below.
Write to knowledge_base/security_review.json:
security_requirements: 5-dimension decomposition from Step 1threat_model: STRIDE threats with IDs, severity, mitigations, residual riskdefense_in_depth: 5-layer security architectureiam_design: Per-service least-privilege mappingsai_security_controls: AI-specific controls (if applicable)compliance_mapping: Framework-to-control mapping with posturesecurity_guardrails: MUST/MUST NOT checklistfindings_summary: Open items, risk scores, remediation priorities_metadata:{ "author": "sa-agent", "date": "<today>", "validation_status": "complete", "version": "1.0" }
Update knowledge_base/engagement.json:
- Set
lifecycle_state.security_review.statustocomplete - Update version and
last_updated
6. DYNAMIC REFERENCES
Use WebSearch to verify:
- Current threat intelligence for the client's technology stack
- Latest compliance framework requirements (especially AI regulations)
- Cloud provider security best practices and new services
- OWASP Top 10 for LLMs and web applications
- NIST AI Risk Management Framework guidance
If WebSearch is unavailable, proceed with general best practices and flag compliance-specific claims for human verification.
7. COMPLETION
Phase Complete: Security & Privacy Review
- Deliverables:
knowledge_base/security_review.json— Full security review documentation
- Threat Summary: [N] threats identified — [N] critical, [N] high, [N] medium, [N] low
- Compliance Posture: [framework]: [N] met, [N] partial, [N] not met
- Items Requiring Human Review:
- Compliance mapping accuracy (especially for regulated industries)
- Threat severity assessments
- AI security controls adequacy
- Residual risk acceptance decisions
- Recommended Next Steps:
/estimate— Include security implementation costs/integration-plan— If not yet done, secure integration patterns needed- Address any critical/high findings before proceeding to estimation
MANDATORY STOP: Do NOT auto-invoke the next skill. Do NOT interpret "ok" or "looks good" as "run everything." Wait for the human to explicitly name the next action. Human review is mandatory before sharing security findings with clients.
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.

