Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

threat-model — Codex skill: what it does, how to install

Builds repository threat models, maps trust boundaries, and outputs threatmodel.md in Codex.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill threat-model -a codex
Open on GitHub

What threat-model does

The skill triggers during the security threat-modeling phase or via the explicit $threat-model invocation. It maps project architecture, examines attacker capabilities, and locates trust boundaries. The resulting analysis is produced as a Markdown document named threatmodel.md.

The workflow checks Git revisions and snapshot digests against an existing cache. When cached results match the current repository version, the skill reuses the stored model instead of generating a new one. It also takes context from existing AGENTS.md or SECURITY.md guidelines when available.

Do not invoke this skill as the main trigger for full branch, commit, or PR scans, since standard Codex scans run threat modeling internally. Install it if you need a standalone threat model artifact or want manual control over security updates.

What it helps with

  • generate a standalone threat model for a repository
  • identify trust boundaries and security failure modes
  • update cached security documentation across Git revisions
  • incorporate AGENTS.md or SECURITY.md into architectural risk checks

Example prompts for the agent

  • $threat-model
  • Create a threat model for this repository and save it to threatmodel.md
  • Update the repository threat model for the latest commit

How to install threat-model

1Skills CLI (Vercel)

npx skills add openai/plugins --skill threat-model -a codex

2Manually: put the files in place

.agents/skills/threat-model/SKILL.md

For all projects use ~/.agents/skills/

From the same set201

The whole set →
supabase official supabase Guides the agent through database configuration and strict RLS policies in Supabase. CX Codex GP ChatGPT 8installs remotion-render official Remotion Exports videos and static stills from Remotion projects using CLI commands. CX Codex GP ChatGPT 3installs figma-create-new-file official Figma Creates blank Figma, FigJam, or Slides files inside draft folders. It resolves planKey and editor types before invoking Figma MCP tools. CX Codex GP ChatGPT 6installs swiftui-performance-audit official OpenAI Pinpoints SwiftUI runtime issues like frame drops, unresponsive taps, and excessive view body computations. Works code-first and guides Instruments profiling. CX Codex GP ChatGPT 109installs swiftui-liquid-glass official OpenAI This skill helps build and review SwiftUI Liquid Glass interfaces for iOS 26+. Use it when adopting the API or checking fallbacks, interaction, and design fit. CX Codex GP ChatGPT 121installs swiftui-ui-patterns official OpenAI This skill helps build and refactor SwiftUI interfaces, from navigation and state to layouts and controls. Use it for new screens or changes to an existing project. CX Codex GP ChatGPT 114installs swiftui-view-refactor official OpenAI Refactors SwiftUI view files into clean, testable structures with dedicated subview types and proper Observation ownership. CX Codex GP ChatGPT 113installs ios-memgraph-leaks official OpenAI Captures and inspects iOS leaks from a simulator process or .memgraph. Useful for tracing retained objects and checking a fix with before-and-after evidence. CX Codex GP ChatGPT 1,054installs

Similar

Questions about threat-model

How to install threat-model in Codex?

Run npx skills add openai/plugins --skill threat-model -a codex or add the configuration to .agents/skills/threat-model/SKILL.md.

What does threat-model do?

It evaluates repository architecture, outlines attacker capabilities, maps trust boundaries, and outputs the assessment to threatmodel.md.

Can threat-model replace a full PR security scan?

No. Standard Codex scans handle PRs and branches internally, while this skill focuses specifically on generating and updating threat models.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor