architecting-security
Design comprehensive security architectures using defense-in-depth, zero trust principles, threat modeling (STRIDE, PASTA), and control frameworks (NIST CSF, CIS Controls, ISO 27001). Use when designing security for new systems, auditing existing architectures, or establishing security governance programs.
What this skill does
# Security Architecture Design and implement comprehensive security architectures that protect systems, data, and users through layered defense strategies, zero trust principles, and risk-based security controls. ## Purpose Security architecture provides the strategic foundation for building resilient, compliant, and trustworthy systems. This skill guides the design of defense-in-depth layers, zero trust implementations, threat modeling methodologies, and mapping to control frameworks (NIST CSF, CIS Controls, ISO 27001). Unlike tactical security skills (configuring firewalls, implementing authentication, scanning vulnerabilities), security architecture focuses on strategic planning, comprehensive defense strategies, and governance frameworks. ## When to Use This Skill Use security architecture when: - Designing security for greenfield systems (new applications, cloud migrations) - Conducting security audits or risk assessments of existing systems - Implementing zero trust architecture across enterprise environments - Establishing security governance programs and compliance frameworks - Threat modeling applications, APIs, or microservices architectures - Selecting and mapping security controls to regulatory requirements (SOC 2, HIPAA, PCI DSS) - Designing cloud security architectures (AWS, GCP, Azure multi-account strategies) - Addressing supply chain security (SLSA framework, SBOM implementation) ## Core Security Architecture Principles ### 1. Defense in Depth Implement multiple independent layers of security controls so that if one layer fails, others continue to protect critical assets. **9 Defense Layers (2025 Model):** 1. **Physical Security:** Data center access, environmental controls, hardware security modules (HSMs) 2. **Network Perimeter:** Next-gen firewalls (NGFW), DDoS protection, web application firewalls (WAF) 3. **Network Segmentation:** VLANs, VPCs, security groups, micro-segmentation 4. **Endpoint Protection:** EDR, antivirus, device encryption, patch management 5. **Application Layer:** Secure coding, WAF, API security, SAST/DAST scanning 6. **Data Layer:** Encryption (at-rest, in-transit, in-use), DLP, backup/recovery 7. **Identity & Access Management:** MFA, SSO, RBAC/ABAC, privileged access management (PAM) 8. **Behavioral Analytics:** UEBA, ML-based anomaly detection, threat intelligence 9. **Security Operations:** SIEM, SOAR, incident response, continuous monitoring **Key Principle:** Each layer provides independent protection. Failure of one layer does not compromise the entire system. For detailed layer-by-layer implementation patterns, see `references/defense-in-depth.md`. ### 2. Zero Trust Architecture Implement "never trust, always verify" principles where every access request is authenticated, authorized, and continuously validated. **Core Zero Trust Principles:** 1. **Continuous Verification:** Authenticate and authorize every access request (no implicit trust) 2. **Least Privilege Access:** Grant minimal permissions required, use just-in-time (JIT) access 3. **Assume Breach:** Design systems expecting compromise, limit blast radius 4. **Explicit Verification:** Verify user identity (MFA), device health, application integrity, context (location, time, behavior) 5. **Micro-Segmentation:** Divide networks into small isolated zones, control east-west traffic **Zero Trust Architecture Components:** - **Policy Engine:** Centralized authorization decision point (allow/deny) - **Identity Provider (IdP):** User/machine identity verification (Azure AD, Okta) - **Device Posture Service:** Device health checks (MDM, EDR integration) - **Context/Risk Engine:** Behavioral analytics, location, time, threat intelligence - **Policy Enforcement Points:** Gateways enforcing decisions (ZTNA, API gateways) For zero trust implementation roadmap and reference architecture, see `references/zero-trust-architecture.md`. ### 3. Threat Modeling Systematically identify, prioritize, and mitigate security threats through structured methodologies. **Primary Methodologies:** | Methodology | Purpose | Complexity | Best For | |-------------|---------|------------|----------| | **STRIDE** | Threat identification | Low | Development teams, quick threat analysis | | **PASTA** | Risk-centric analysis | High | Enterprise risk management | | **DREAD** | Risk scoring | Low | Prioritizing existing threats | | **Attack Trees** | Visual threat analysis | Medium | Security architecture reviews | **STRIDE Threat Categories:** - **S**poofing: Attacker impersonates another user/system (Mitigation: MFA, certificate validation) - **T**ampering: Unauthorized data modification (Mitigation: Encryption, digital signatures) - **R**epudiation: User denies action without proof (Mitigation: Audit logs, non-repudiation) - **I**nformation Disclosure: Confidential data exposure (Mitigation: Encryption, access controls, DLP) - **D**enial of Service: System unavailability (Mitigation: Rate limiting, DDoS protection, redundancy) - **E**levation of Privilege: Gaining higher privileges (Mitigation: Least privilege, input validation, patching) **STRIDE Application Process:** 1. Model the system using data flow diagrams (DFDs) 2. Identify threats by applying STRIDE to each component/data flow 3. Document threats with STRIDE categories 4. Prioritize threats using DREAD scoring or business impact 5. Design mitigation controls For detailed threat modeling methodologies, PASTA process, DREAD scoring, and attack trees, see `references/threat-modeling.md`. For threat modeling examples, see `examples/threat-models/`. ## Security Control Frameworks Map security controls to industry frameworks to ensure comprehensive coverage and compliance. ### NIST Cybersecurity Framework (CSF) 2.0 **6 Core Functions:** 1. **GOVERN (GV):** Risk management strategy, policies, supply chain risk management 2. **IDENTIFY (ID):** Asset inventory, risk assessment, continuous improvement 3. **PROTECT (PR):** Access control, data security, platform security, infrastructure resilience 4. **DETECT (DE):** Continuous monitoring, anomaly detection, security event analysis 5. **RESPOND (RS):** Incident management, analysis, communication, mitigation 6. **RECOVER (RC):** Recovery planning, execution, post-incident improvement **Usage:** Map security controls to NIST CSF categories to ensure coverage of all security functions. Provides risk-based, flexible framework for security programs. For detailed NIST CSF category mapping and subcategories, see `references/nist-csf-mapping.md`. ### CIS Critical Security Controls v8 **18 Controls organized in 3 Implementation Groups:** - **IG1 (Basic):** 56 safeguards for small organizations (asset inventory, access control, logging, backups) - **IG2 (Intermediate):** +74 safeguards for mid-sized organizations with IT security staff - **IG3 (Advanced):** +23 safeguards for large enterprises with dedicated security teams **Top Priority Controls (IG1):** 1. Inventory and Control of Enterprise Assets 2. Inventory and Control of Software Assets 3. Data Protection 4. Secure Configuration of Enterprise Assets 5. Account Management 6. Access Control Management 7. Continuous Vulnerability Management 8. Audit Log Management **Usage:** CIS Controls provide prescriptive, measurable security baseline. Start with IG1, progress to IG2/IG3 as security maturity increases. For detailed CIS Controls implementation guidance, see `references/cis-controls.md`. ### OWASP Top 10 Risk Mitigation Map OWASP Top 10 application security risks to architectural controls: | OWASP Risk | Primary Control | Framework Mapping | |------------|-----------------|-------------------| | **Injection** | Parameterized queries, input validation | NIST PR.DS, CIS 16 | | **Broken Authentication** | MFA, secure session management | NIST PR.AC, CIS 5, 6 | | **Sensitive Data Exposure** | Encryption, key management | NIST PR.DS, CIS 3 | | **XXE** | Disable external entities, use JSON | NI
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.