security-requirement-extraction

Derive security requirements, user stories, and test cases from threat models.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/tense-i/tslink --skill security-requirement-extraction-tense-i
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-requirement-extraction
Source: https://github.com/tense-i/tslink/tree/main/skills/security-requirement-extraction
Command: npx skills add https://github.com/tense-i/tslink --skill security-requirement-extraction-tense-i

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill transforms complex threat models and business contexts into clear, actionable security requirements, user stories, and test cases, bridging the gap between security analysis and development.

Core Features & Use Cases

  • Requirement Derivation: Automatically generates security requirements from identified threats using STRIDE categories.
  • User Story & Test Case Generation: Creates security-focused user stories and test specifications for each requirement.
  • Compliance Mapping: Maps security requirements to various compliance frameworks like PCI DSS, HIPAA, GDPR, and OWASP.
  • Use Case: After a threat modeling session identifies a "Tampering" threat against the user authentication module, this Skill can generate requirements like "Validate all input to the authentication module" and "Implement integrity checks for user session data," along with corresponding user stories and test cases.

Quick Start

Use the security-requirement-extraction skill to derive security requirements from the provided threat model document.

Frequently Asked Questions about security-requirement-extraction

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

FAQPage Schema
How do I generate security requirements from a STRIDE threat model?

To generate security requirements from a STRIDE threat model, you input the identified threats and business context to automatically derive actionable security requirements, user stories, and test cases. This bridges the gap between threat analysis and development.

What is the best way to map security requirements to compliance frameworks like PCI DSS and HIPAA?

The best way to map security requirements to compliance frameworks like PCI DSS, HIPAA, and GDPR is to use an automated derivation tool that aligns generated requirements and test cases with these standards based on your threat model and business context.

Can I create security-focused user stories and test cases from identified threats?

Yes, you can create security-focused user stories and test specifications directly from identified threats. By processing threat models using STRIDE categories, the system generates corresponding user stories and test cases for each derived security requirement.

Does this approach support OWASP threat categories and security domains?

Yes, this approach supports OWASP standards and various security domains. It processes threat models to derive security requirements, utilizing structured data management to handle STRIDE threat categories and map them to OWASP and other compliance frameworks.

What business context do I need to provide to derive actionable security requirements?

You need to provide business context alongside your threat models, specifically detailing system architecture and identified threats like tampering against authentication modules. This context allows the system to generate specific requirements such as input validation and session data integrity checks.

How are derived security requirements structured for development teams?

Derived security requirements are structured using Python dataclasses and enums for structured requirement management. This ensures the generated security requirements, user stories, and test cases are well-organized and easily integrated into development workflows.