security-threat-model

Generate repository-grounded AppSec threat models with prioritized risks and mitigations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically produces a repository-grounded AppSec threat model anchored to evidence within the codebase, surfacing concrete abuse paths, assets, and trust boundaries for focused security reviews.

Core Features & Use Cases

  • Repo-grounded threat modeling that ties claims to specific repo paths and files
  • Prioritized abuse-path analysis with mitigations and detection ideas
  • Structured reports suitable for security reviews and risk discussions

Quick Start

Analyze a codebase by requesting a repo-specific threat model for a given path or the entire repository.

Frequently Asked Questions about security-threat-model

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

FAQPage Schema
How do I generate an AppSec threat model from my source code repository?

To generate an AppSec threat model, the Skill analyzes your repository's entry points, trust boundaries, and assets, anchoring identified risks to specific codebase paths. It produces a structured report with prioritized abuse paths and mitigations.

What is repo-grounded threat modeling and how does it tie risks to evidence?

Repo-grounded threat modeling links security risks to specific repository files and paths. This approach surfaces concrete abuse paths and trust boundaries using evidence anchors, ensuring claims are verifiable within the codebase for focused security reviews.

How do I identify trust boundaries and attacker capabilities for application security?

Identifying trust boundaries and attacker capabilities involves analyzing repository entry points and assets. The Skill maps these surface areas to concrete abuse paths, explicitly stating assumptions and highlighting questions to resolve security gaps.

Does this threat modeling approach work for analyzing any application repository?

Yes, this approach works for any application repository by analyzing its specific threat model surface areas. It requires no external dependencies and generates a final report detailing risk prioritization, mitigations, and repo-relative focus paths.

What is the best way to document application security risks and mitigations?

The best way to document application security risks is using a structured threat model report. The Skill generates this output following a prompt template, prioritizing risks, suggesting mitigations, and providing repo-relative focus paths for tracking.

Can I resolve security gaps and assumptions during automated threat modeling?

Yes, automated threat modeling can resolve security gaps by explicitly stating assumptions and generating questions for unresolved issues. The Skill outputs a report highlighting these gaps alongside prioritized abuse paths and repo-relative focus paths.