security-requirement-extraction

Convert threat models into traceable security requirements, user stories, and test cases.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill security-requirement-extraction-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-requirement-extraction
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/security-requirement-extraction
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill security-requirement-extraction-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Translating threat analysis into concrete, testable security requirements is often ad hoc and inconsistent, leaving gaps between identified threats and implemented controls. This Skill provides structured templates to derive requirements from STRIDE threats, map them to compliance frameworks, and generate user stories and test cases. ## Core Features & Use Cases - Threat-to-Requirement Extraction: Convert STRIDE-categorized threats into prioritized security requirements with acceptance criteria and test cases. - Compliance Mapping: Map requirements to PCI DSS, HIPAA, GDPR, and OWASP controls, and run gap analysis to find missing coverage. - Security User Stories: Generate agile-ready user stories and epics with definition-of-done checklists and traceability to threats. - Use Case: After completing a threat model for a payment API, feed the identified threats into the extractor to produce a prioritized requirement set with a threat-to-requirement traceability matrix and compliance gap report. ## Quick Start Analyze my threat model for the checkout service and generate prioritized security requirements with acceptance criteria and OWASP compliance mapping.

Frequently Asked Questions about security-requirement-extraction

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

FAQPage Schema
How do I convert a threat model into security requirements?

Map each threat to its STRIDE category, then apply category-specific requirement patterns covering authentication, authorization, data protection, and audit logging. The extractor generates requirements with acceptance criteria, test cases, and priority based on impact and likelihood.

How to map security requirements to compliance frameworks?

Assign each requirement a security domain such as authentication or data protection, then map domains to framework controls for PCI DSS, HIPAA, GDPR, or OWASP. A compliance matrix links controls to requirement IDs, and gap analysis flags missing or weak coverage.

What makes a good security requirement?

A good security requirement is specific, testable, and traceable to a threat or compliance control. It includes acceptance criteria, a priority derived from risk, and a rationale explaining why it matters, avoiding vague statements like 'be secure'.

How is requirement priority calculated from threats?

Priority is calculated by multiplying impact and likelihood scores, each rated low through critical. Combined scores of 12 or more yield critical priority, 6 or more high, 3 or more medium, and lower scores map to low priority.

What are the limitations of STRIDE-based requirement extraction?

STRIDE-based extraction relies on predefined patterns per category, so it may miss domain-specific or novel threats outside the six categories. Generated requirements are starting points that still need stakeholder review and tailoring to the system's architecture.