security-requirement-extraction

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

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/TavokAI/Tavok --skill security-requirement-extraction-tavokai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-requirement-extraction
Source: https://github.com/TavokAI/Tavok/tree/main/.claude/skills/security-requirement-extraction
Command: npx skills add https://github.com/TavokAI/Tavok --skill security-requirement-extraction-tavokai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of translating high-level threat models and business contexts into specific, actionable security requirements, user stories, and test cases.

Core Features & Use Cases

  • Threat to Requirement Mapping: Automatically generates security requirements based on common threat categories (e.g., STRIDE).
  • User Story Generation: Creates security-focused user stories from identified requirements.
  • Test Case Generation: Develops initial test cases and acceptance criteria for each requirement.
  • Compliance Mapping: Assists in mapping requirements to relevant compliance frameworks like PCI DSS, HIPAA, and GDPR.
  • Use Case: After a threat modeling session identifies a "Tampering" threat against user data, this Skill can generate requirements like "Validate all input to the user data module" and "Implement integrity checks for user data," along with corresponding user stories and test cases.

Quick Start

Use the security-requirement-extraction skill to generate security requirements from a list of threats.

Frequently Asked Questions about security-requirement-extraction

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

FAQPage Schema
How do I translate threat modeling results into actionable security requirements?

You can translate threat modeling results into actionable security requirements by mapping threat categories like STRIDE to specific controls, generating verifiable requirements, user stories, and test cases from the identified threats and business context.

What is the best way to generate security user stories and test cases from identified threats?

Generating security user stories and test cases from identified threats involves deriving acceptance criteria and validation steps directly from mapped security requirements, ensuring each threat like data tampering has corresponding integrity checks and input validation tests.

Can I map security requirements to compliance frameworks like PCI DSS, HIPAA, and GDPR?

Yes, you can map security requirements to compliance frameworks like PCI DSS, HIPAA, and GDPR. The process aligns derived security controls and architecture documentation with specific regulatory obligations to facilitate risk mitigation and compliance tracking.

How do I automate security requirement extraction for STRIDE threat categories?

Automating security requirement extraction for STRIDE threat categories uses Python templates and mappings to process abstract threats, automatically outputting concrete security controls, user stories, and initial test cases without manual formatting.

Do I need to manually write test cases for security requirements derived from threat models?

No, you do not need to manually write test cases for security requirements derived from threat models. The automation process develops initial test cases and acceptance criteria directly from the generated security requirements and business context.

What security architecture documentation is needed to generate verifiable security controls?

To generate verifiable security controls, you need threat models and business context documentation. This input allows the extraction process to map abstract threats into concrete security requirements, user stories, and test cases for architecture validation.