security-threat-model

Generate a repository-grounded threat model with trust boundaries, assets, and mitigations.

2|Updated Jul 9, 2026
One-click install
npx skills add https://github.com/koki3141/codex-global-skills --skill security-threat-model-koki3141
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-threat-model
Source: https://github.com/koki3141/codex-global-skills/tree/main/security-threat-model
Command: npx skills add https://github.com/koki3141/codex-global-skills --skill security-threat-model-koki3141

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a detailed, actionable threat model for a codebase, identifying trust boundaries, assets, attacker capabilities, abuse paths, and mitigations.

Core Features & Use Cases

  • Threat Modeling: Enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations.
  • Repository-Grounded: Delivers a model specific to the repository or a project path, not a generic checklist.
  • AppSec-Grade: Prioritizes realistic attacker goals and concrete impacts over generic checklists.

Quick Start

Run the security-threat-model skill with the path to your codebase to generate a threat model.

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 a threat model for my codebase?

To generate a threat model for your codebase, you run the skill with the path to your repository. It analyzes the code to identify trust boundaries, assets, attacker capabilities, abuse paths, and mitigations specific to your project.

What is repository-grounded threat modeling?

Repository-grounded threat modeling analyzes your actual source code to deliver a security assessment specific to your project, rather than applying a generic checklist. It identifies concrete abuse paths and prioritized mitigations based on the code's real trust boundaries.

How do I perform an AppSec risk assessment on source code?

You perform an AppSec risk assessment by running this skill against your codebase path. It evaluates attacker capabilities and prioritizes realistic attacker goals to produce an AppSec-grade threat model with concrete impacts and mitigations.

Does this threat modeling approach use generic security checklists?

No, this threat modeling approach does not use generic security checklists. It is repository-grounded, meaning it prioritizes realistic attacker goals and concrete impacts by analyzing the specific trust boundaries and assets within your codebase.

Can I assess codebase security for a specific project directory?

Yes, you can assess codebase security for a specific project directory by providing its path to the skill. The tool generates a detailed threat model focusing on the trust boundaries and assets found within that specific repository location.