threat-modeling-mcp-server: Skill for Kiro

.kiro/skills/phase-2-architecture/SKILL.md

phase-2-architecture is a skill for Kiro from awslabs/threat-modeling-mcp-server. It costs 32 tokens per session (1,029 once invoked), scanned A, original, Apache-2.0.

A guide for documenting a system’s architecture for threat modeling, including its components, connections, and data stores. Threat modeling is the process of identifying how a system could be attacked and what needs protection.

In plain words
What is it for?
It helps record services, databases, networks, storage, messaging systems, providers, versions, configurations, and the connections between them.
Why use it?
It creates an attack-surface map that later security analysis can use. It also defines the fields and allowed categories for recording architecture details consistently.

Skill for Kiro ✓ vendor

Written for Kiro: installed under .kiro/.

This is awslabs/threat-modeling-mcp-server's own configuration. It tells Kiro how to work on threat-modeling-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything threat-modeling-mcp-server configures →

About the project

Threat Modeling MCP Server is an MCP server that guides an AI coding agent through structured security threat modeling and code validation. It analyzes business context, architecture, assets, trust boundaries, and threat actors, then produces Markdown or JSON reports using a phased STRIDE-based process. The catalogue skills operate this workflow through compatible agent clients.

awslabs/threat-modeling-mcp-server · 101 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to awslabs/threat-modeling-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/awslabs/threat-modeling-mcp-server/main/.kiro/skills/phase-2-architecture/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/awslabs/threat-modeling-mcp-server

Made for: Kiro.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for phase-2-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/awslabs/threat-modeling-mcp-server/phase-2-architecture/github.svg)](https://agentmods.dev/skills/awslabs/threat-modeling-mcp-server/phase-2-architecture)
Your own site
<a href="https://agentmods.dev/skills/awslabs/threat-modeling-mcp-server/phase-2-architecture"><img src="https://agentmods.dev/badge/skills/awslabs/threat-modeling-mcp-server/phase-2-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for phase-2-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/awslabs/threat-modeling-mcp-server/phase-2-architecture"><img src="https://agentmods.dev/badge/skills/awslabs/threat-modeling-mcp-server/phase-2-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,029 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01029
Opus 5 $0.00016 $0.00515
Sonnet 5 $0.00006 $0.00206
Haiku 4.5 $0.00003 $0.00103

Measured 12d ago against content hash ba70ac1f06a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

phase-2-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.kiro/skills/phase-2-architecture/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Phase 2: Architecture Analysis

Objective

Document every component, connection, and data store in the system. This becomes the attack surface map for later phases.

Tools Reference

Start with manage_architecture(action="describe", section=SECTION) to load the exact fields and accepted enum values for components, connections, or data_stores.

manage_architecture(action="add", section="components", values=COMPONENT)

Parameter Required Values
name Yes e.g., "API Gateway", "User Database"
type Yes Compute, Storage, Network, Security, Database, Messaging, Analytics, Container, Serverless, Other
service_provider No AWS, Azure, GCP, CNCF, On-Premise, Hybrid, Other
specific_service No e.g., "Lambda", "RDS", "API Gateway", "EC2"
version No e.g., "Python 3.9", "PostgreSQL 13"
description No What this component does
configuration No Dict of config details

manage_architecture(action="add", section="connections", values=CONNECTION)

Parameter Required Values
source_id Yes Component or data-store node ID
destination_id Yes Component or data-store node ID
protocol No HTTP, HTTPS, TCP, UDP, SSH, FTP, SMTP, WebSocket, gRPC, MQTT, Other
port No Integer port number
encryption No true/false
description No What flows over this connection

manage_architecture(action="add", section="data_stores", values=DATA_STORE)

Parameter Required Values
name Yes e.g., "Customer PII Store"
type Yes Relational, NoSQL, Object Storage, File System, Cache, Data Warehouse, Graph, Time Series, Ledger, Other
classification Yes Public, Internal, Confidential, Restricted
encryption_at_rest No true/false
backup_frequency No Hourly, Daily, Weekly, Monthly, Continuous, None
description No What data is stored

Other Phase 2 Tools

  • manage_architecture(action="list", section=SECTION) -- Review one entity type
  • manage_architecture(action="list", section="all") -- Review the complete architecture
  • manage_architecture(action="plan", section="all") -- AI-powered analysis guidance
  • manage_architecture(action="clear", section="all") -- Start over if no asset flows depend on it
  • Add and update operations accept items for batches; get field details with describe

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 90 lines · 32 tokens per session scan A ba70ac1f06a8

Subscribe to this mod's changes

phase-2-architecture is a skill published in the GitHub repository awslabs/threat-modeling-mcp-server (101 stars, last pushed 16d ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,029 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens