How to add Threat Modeling Expert to Claude Code
Threat Modeling Expert is defined in the publisher’s Security Scanning plugin. Start from an owned system’s data-flow sketch and its intended access rules.
- Open the publisher definition and save the Markdown file in the project’s .claude/agents/ directory. Preserve its name field, threat-modeling-expert.
- From that checkout, ask Claude Code to delegate a defensive architecture or access-control review of your own design to threat-modeling-expert. Check the agent name in the response or delegation event.
Try a first task
Review the design of an internal expense approval service and trace which roles can read drafts, approve expenses and download reports. Capture each trust boundary and add an acceptance check for the policy it depends on.
What to know before you start
Start with a data-flow description and identify where roles or systems cross a trust boundary. Use the resulting threat categories to choose practical requirements and defensive acceptance checks for the design.