security-design

Codify security boundaries, threat models, and controls per architectural layer.

1|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/yknothing/prodcraft --skill security-design-yknothing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-design
Source: https://github.com/yknothing/prodcraft/tree/main/skills/02-architecture/security-design
Command: npx skills add https://github.com/yknothing/prodcraft --skill security-design-yknothing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Security design identifies what must be protected, who might abuse the system, and which controls must exist at each boundary. It sits upstream of security audit: the goal here is to design the defenses, not just inspect the code later.

Core Features & Use Cases

  • Define assets, trust boundaries, and abuse paths to preempt data leakage and unauthorized access.
  • Enumerate concrete controls per boundary, including authentication, authorization, secret handling, and logging.
  • Use during architecture-reviewed security integrations for brownfield or new systems to ensure auditable decisions.

Quick Start

Define and record the system's security boundaries and threat model before you code.

Frequently Asked Questions about security-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is security design in system architecture?

Security design codifies trust boundaries, threat models, and required controls at each architectural layer. It defines assets, abuse paths, and concrete controls including authentication, authorization, secret handling, and logging before code implementation.

How do I create a threat model for my system design?

Create a threat model by defining assets, trust boundaries, and abuse paths to preempt data leakage. Enumerate concrete controls per boundary including authentication, authorization, secret handling, and logging to enable auditable security design decisions.

When do I need to define trust boundaries in architecture review?

Define trust boundaries during architecture-reviewed security integrations for brownfield or new systems. It is required when systems have sensitive data paths or brownfield coexistence to guide architecture decisions and enable auditable security reviews.

Does security design work for brownfield system integration?

Yes, security design applies to systems with brownfield coexistence. Use it during architecture-reviewed security integrations to define trust boundaries, enumerate controls, and ensure auditable security decisions for existing systems.

What inputs do I need for architecture security review?

Architecture security review requires architecture-doc and api-contract as inputs. The prerequisite is an existing system-design, and the process outputs a threat-model along with governance signals like quality_gate and roles for auditable decisions.

Why define security boundaries before coding?

Defining security boundaries before coding preempts data leakage and unauthorized access. Security design sits upstream of audit, ensuring defenses are architected into the system rather than inspecting code later, enabling auditable architecture decisions.