security-threat-model

Create repository-grounded threat models with Mermaid diagrams.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Mercurykz/Barretao- --skill security-threat-model-mercurykz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-threat-model
Source: https://github.com/Mercurykz/Barretao-/tree/main/.cursor/skills/security-threat-model
Command: npx skills add https://github.com/Mercurykz/Barretao- --skill security-threat-model-mercurykz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Threat modeling at the repository level is time-consuming and error-prone; this Skill provides a structured, evidence-grounded process to produce an actionable threat model anchored to repository paths and artifacts.

Core Features & Use Cases

  • Anchored threat modeling: catalogs assets, trust boundaries, attacker capabilities, and abuse paths with evidence from the repo.
  • Evidence-backed outputs: generates a compact threat model document with a Mermaid diagram and a mapped set of risks.
  • Repository-focused workflow: ties analyses to exact repo paths and CI/build contexts to enable targeted reviews.

Quick Start

Generate a repo-specific threat model for the target repository using the provided threat-model prompt template.

Frequently Asked Questions about security-threat-model

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

FAQPage Schema
How do I create a threat model for a specific code repository?

To create a threat model for a repository, you need a structured process that catalogs assets, trust boundaries, and abuse paths. This Skill generates an evidence-backed threat model anchored to exact repo paths and CI/build contexts.

What is evidence-based threat modeling in application security?

Evidence-based threat modeling in application security grounds risk assessment in actual codebase artifacts. It ties attacker capabilities and abuse paths to exact repository paths and CI contexts to produce an actionable, targeted review document.

How do I generate a Mermaid diagram for trust boundaries and abuse paths?

To generate a Mermaid diagram for trust boundaries and abuse paths, analyze the repository's architecture and map data flows. This Skill outputs a compact Markdown threat model document that includes a visual Mermaid diagram of these security boundaries.

Can I use repository analysis for AppSec risk prioritization?

Yes, you can use repository analysis for AppSec risk prioritization by mapping identified abuse paths to exact code locations. This approach yields a mapped set of risks tailored to the codebase, enabling targeted security reviews and remediation.

Does this threat modeling approach work without external dependencies?

This threat modeling approach works without external dependencies, requiring only access to the target codebase. It uses a provided prompt template to analyze repo paths and CI build contexts, producing a standalone Markdown threat model.

What is the best way to document security mitigations for a codebase?

The best way to document security mitigations is through a structured Markdown threat model that maps risks to specific repository paths. This Skill produces an evidence-backed document with a Mermaid diagram detailing assets, abuse paths, and mitigations.