tm-init

Analyze architecture documentation to generate asset inventories, data flows, trust boundaries, and attack surface mappings.

8|1|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/josemlopez/threat-modeling-toolkit --skill tm-init
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tm-init
Source: https://github.com/josemlopez/threat-modeling-toolkit/tree/main/skills/tm-init
Command: npx skills add https://github.com/josemlopez/threat-modeling-toolkit --skill tm-init

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams start threat modeling by analyzing architecture documentation and generating a structured threat model scaffold that captures assets, data flows, trust boundaries, and attack surface.

Core Features & Use Cases

  • Discover and inventory assets across systems (clients, services, data stores, integrations)
  • Map data flows and trust boundaries to clarify privilege changes and data in transit
  • Catalogue attack surface entries and generate stakeholder-ready diagrams

Quick Start

Run the /tm-init command with an architecture docs path, for example: /tm-init --docs ./docs

Frequently Asked Questions about tm-init

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

FAQPage Schema
How do I generate an asset inventory and threat model from architecture documentation?

To generate an asset inventory from architecture documentation, run an initialization command pointing to your docs path. The tool discovers assets, maps data flows, identifies trust boundaries, and catalogs the attack surface into a structured threat model scaffold.

What is a trust boundary and how is it identified in a threat model?

A trust boundary in a threat model identifies where privilege levels or data transit security changes. It is identified by mapping data flows across systems like web apps, services, and databases to clarify where data crosses security perimeters.

Can I use threat modeling initialization for existing services and database integrations?

Yes, threat modeling initialization supports existing services and database integrations. It performs documentation discovery across systems to classify assets, map data flows, and catalogue attack surface entries for new projects or security assessments.

How do I map data flows and attack surfaces for a web application architecture?

Map data flows and attack surfaces by analyzing architecture documentation to trace data transit between clients, services, and data stores. This process catalogs attack surface entries and generates stakeholder-ready diagrams automatically.

What is the best way to start threat modeling when I only have scattered architecture docs?

The best way to start threat modeling with scattered architecture docs is to consolidate them into a docs path and run an initialization command. This discovers assets, maps data flows, and outputs a structured scaffold with state files and diagrams.

Do I need a specific architecture format to map data flows and trust boundaries?

No specific architecture format is required to map data flows and trust boundaries. The tool performs documentation discovery on standard text-based architecture docs to inventory assets and generate threat model state files and diagrams.