security-requirement-extraction

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

Updated May 28, 2026
One-click install
npx skills add https://github.com/changfengpro/agent-skills --skill security-requirement-extraction-changfengpro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-requirement-extraction
Source: https://github.com/changfengpro/agent-skills/tree/main/skills/security-requirement-extraction
Command: npx skills add https://github.com/changfengpro/agent-skills --skill security-requirement-extraction-changfengpro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Translating threat analysis into concrete, testable security requirements is often vague and inconsistent, leaving teams with unverifiable statements like "be secure" instead of actionable engineering work. ## Core Features & Use Cases - Threat-to-Requirement Extraction: Map STRIDE threat categories to security domains and generate prioritized functional requirements with rationale and threat traceability. - Security User Stories & Test Cases: Generate user stories with acceptance criteria, definition of done, and security test cases for each requirement. - Compliance Mapping: Map requirements to PCI DSS, HIPAA, GDPR, and OWASP controls, generate compliance matrices, and run gap analysis. - Use Case: After completing a STRIDE threat model for a payment API, feed the threats in and receive a prioritized requirement set with user stories, test specifications, and a PCI DSS traceability matrix. ## Quick Start Convert my STRIDE threat model for the checkout service into prioritized security requirements with user stories and acceptance criteria.

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's STRIDE category to security domains like authentication or data protection, then generate requirements with priority, rationale, and acceptance criteria. The extractor template automates this by applying predefined patterns per STRIDE category.

How to write security user stories with acceptance criteria?

Structure each story as 'As a [role], I want [security capability], so that [protection goal]' and attach testable acceptance criteria plus a definition of done. The user story generator template produces this format from a requirement's domain and attributes.

Can security requirements be mapped to PCI DSS or HIPAA controls?

Yes, requirements are mapped by security domain to specific controls in PCI DSS, HIPAA, GDPR, and OWASP. The compliance mapper generates traceability matrices and identifies missing or weakly covered controls through gap analysis.

How is security requirement priority calculated from threats?

Priority is derived by multiplying impact and likelihood scores from the threat assessment. Combined scores of 12 or more yield Critical priority, 6 or more High, 3 or more Medium, and lower scores Low.

What are the limitations of template-based requirement extraction?

Template-based extraction relies on predefined STRIDE patterns, so novel or domain-specific threats may produce generic requirements. Review and refine generated requirements with stakeholders to ensure they fit your architecture and risk context.