rafter-secure-design

Guides security design reviews for features touching auth, data, APIs, ingestion, and deployment.

27|13|Updated Jul 25, 2025
One-click install
npx skills add https://github.com/Raftersecurity/rafter-cli --skill rafter-secure-design-raftersecurity
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: rafter-secure-design
Source: https://github.com/Raftersecurity/rafter-cli/tree/main/python/rafter_cli/resources/skills/rafter-secure-design
Command: npx skills add https://github.com/Raftersecurity/rafter-cli --skill rafter-secure-design-raftersecurity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Security flaws are cheapest to fix at the whiteboard stage, yet most teams only catch them in code review or after a breach. This Skill walks your proposed design through the structured questions a security engineer would ask at kickoff, so auth bypasses, token leakage, and cross-tenant bugs are caught before any code is written. ## Core Features & Use Cases - Domain-specific design walkthroughs: Eight focused sub-docs covering authentication/authorization, data storage, API design, ingestion, deployment, dependencies, threat modeling, and standards selection. - STRIDE threat modeling capstone: Applies STRIDE per trust boundary to your specific design, plus abuse-case twins and negative-space questions. - Refuse-lists and exit criteria: Each sub-doc names patterns to reject outright and defines what "done" looks like before implementation starts. - Use Case: Before building a new file-upload endpoint, walk the ingestion sub-doc to decide content sniffing, storage naming, size limits, and serving origin, then record the decisions in your design doc. ## Quick Start Ask the AI to run the rafter-secure-design walkthrough on your proposed feature design and record the answers in the design doc before writing code.

Frequently Asked Questions about rafter-secure-design

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

FAQPage Schema
How do I threat model a new feature before writing code?▼

Draw a data-flow diagram with trust boundaries, then apply STRIDE per boundary crossing rather than globally. Add abuse-case twins for each primary use case and record residual risks explicitly in the design doc.

When should I use a secure design review skill?▼

Use it whenever a feature touches auth, tokens, sessions, file uploads, user input, deserialization, network endpoints, or data deletion. Pure research or local-only computation over trusted data can skip the full walk after a quick surface check.

What questions should I ask when designing API authentication?▼

Decide between server-side sessions and self-contained tokens like JWT, pin the signing algorithm, plan revocation via short TTLs or rotating refresh tokens, and choose an authZ model such as RBAC, ABAC, or ReBAC enforced at the domain layer.

Does this skill write the design document for me?▼

No. It walks your existing draft through structured questions and expects you to record answers inline in your architecture doc, RFC, or PR description. Unanswered questions are treated as design gaps to resolve before implementation.

How does this differ from automated security scanning?▼

This skill is a designer's walkthrough applied before code exists, not a scanner. It pairs with rafter-code-review during the PR stage and the rafter CLI for automated detection of issues that slip through implementation.