security-threat-model

Generate Markdown threat models from repository code analysis.

41|8|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/fimoklei/pm-ai-playbook --skill security-threat-model-fimoklei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-threat-model
Source: https://github.com/fimoklei/pm-ai-playbook/tree/main/skills/security-skills/security-threat-model
Command: npx skills add https://github.com/fimoklei/pm-ai-playbook --skill security-threat-model-fimoklei

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of identifying and mitigating security vulnerabilities in codebases by performing thorough, repository-grounded threat modeling.

Core Features & Use Cases

  • Repository-Grounded Analysis: Anchors all security claims to specific evidence within the codebase.
  • Comprehensive Threat Enumeration: Identifies trust boundaries, assets, attacker capabilities, abuse paths, and mitigations.
  • Use Case: A development team is about to release a new feature. They can use this Skill to generate a detailed threat model of the relevant code paths, ensuring potential security risks are identified and addressed before deployment.

Quick Start

Use the security-threat-model skill to threat model the codebase in the current directory.

Frequently Asked Questions about security-threat-model

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

FAQPage Schema
How do I perform threat modeling on a codebase before deployment?

To perform threat modeling on a codebase, this Skill analyzes repository code to enumerate trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, generating a concise Markdown threat model.

What is repository-grounded threat modeling in application security?

Repository-grounded threat modeling anchors all security claims and vulnerability analysis to specific evidence within the codebase, ensuring identified abuse paths and mitigations are accurately traced to actual code.

How do I identify abuse paths and attacker capabilities in my source code?

You can identify abuse paths and attacker capabilities by running this Skill against your current directory, which automatically enumerates security vulnerabilities and trust boundaries from the repository code.

Can I use this proactive AppSec analysis for an existing codebase directory?

Yes, you can use this proactive AppSec analysis for an existing codebase by triggering it with an explicit request for codebase threat modeling in your current directory.

What is the best way to document security vulnerabilities and mitigations during code review?

The best way to document security vulnerabilities and mitigations during code review is to generate a concise Markdown threat model that explicitly maps identified abuse paths to their corresponding security mitigations.

What are the limitations of automated vulnerability analysis for trust boundaries?

A limitation of this automated vulnerability analysis is that it requires explicit user requests to trigger codebase threat modeling, and it focuses solely on enumerating trust boundaries and abuse paths rather than patching code.