pytm

pytm is a skill for Claude Code, Codex from rohunj/claude-build-workflow. It costs 125 tokens per session (4,054 once invoked), scanned A, original, no licence file.

A Python-based way to model security threats with the pytm library. It supports STRIDE analysis, which checks common categories of security threats, and can generate data-flow diagrams.

In plain words
What is it for?
Use it to create programmatic threat models, generate data-flow diagrams, and identify STRIDE threats automatically.
Why use it?
It helps make security risks visible while designing a system, before implementation decisions are difficult to change.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to create programmatic threat models, generate data-flow diagrams, and identify STRIDE threats automatically.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rohunj/claude-build-workflow/pytm
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rohunj/claude-build-workflow --skill pytm
Clone the repo
git clone --depth 1 https://github.com/rohunj/claude-build-workflow

Made for: Claude Code, Codex.

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 pytm

README.md
[![agentmods](https://agentmods.dev/badge/skills/rohunj/claude-build-workflow/pytm.svg)](https://agentmods.dev/skills/rohunj/claude-build-workflow/pytm)
Your own site
<a href="https://agentmods.dev/skills/rohunj/claude-build-workflow/pytm"><img src="https://agentmods.dev/badge/skills/rohunj/claude-build-workflow/pytm.svg" alt="Measured on agentmods" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,054 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00125 $0.04054
Opus 5 $0.00063 $0.02027
Sonnet 5 $0.00025 $0.00811
Haiku 4.5 $0.00013 $0.00405

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

Security

Grade A, and why

pytm scanned grade A with 1 finding 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 8d 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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install -y graphviz

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/security/pytm/SKILL.md · 575 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 8d ago First seen · 575 lines · 125 tokens per session scan A f148ac5a58ec

Subscribe to this mod's changes

pytm is a skill published in the GitHub repository rohunj/claude-build-workflow (231 stars, last pushed 7mo ago), with no licence file. It adds 125 tokens to every session and 4,054 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). 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

pytm

Python-based threat modeling using pytm library for programmatic STRIDE analysis, data flow diagram generation, and automated security threat identification. Use when: (1) Creating threat models programmatically using Python code, (2) Generating data flow diagrams (DFDs) with automatic STRIDE threat identification…

AgentSecOps/SecOpsAgentKit · 125 tokens

performing-threat-modeling-with-owasp-threat-dragon

Use OWASP Threat Dragon to create data flow diagrams, identify threats using STRIDE and LINDDUN methodologies, and generate threat model reports for secure design review.

xalgorix/xalgorix · 46 tokens

threat-modeling

Threat modeling workflow for software systems: scope, data flow diagrams, STRIDE analysis, risk scoring, and turning mitigations into backlog and tests. Use when designing new features, reviewing architecture changes, handling sensitive data, or hardening auth/payment/multi-tenant flows.

bobmatnyc/claude-mpm-skills · 59 tokens

Mixed-Language Monorepos

This skill should be used when the user is auditing a "polyglot monorepo", "multi-language codebase", "microservices with different languages", "Go + Python + TypeScript", or any codebase with services written in different programming languages. Provides strategies for cross-service security analysis and unified…

allsmog/vuln-scout · 71 tokens

OWASP API Security Top 10

This skill should be used when the user asks about "API security", "OWASP API Top 10", "BOLA", "broken object level authorization", "API authentication", "mass assignment", "GraphQL security", "gRPC security", "rate limiting", "API abuse", "REST API vulnerabilities", or needs to identify API-specific security issues…

allsmog/vuln-scout · 85 tokens

Cache Poisoning

This skill should be used when the user asks about "cache poisoning", "web cache deception", "CDN cache", "proxy cache", "nginx cache", "varnish", "cache key manipulation", "response caching", or needs to find cache-related vulnerabilities during whitebox security review.

allsmog/vuln-scout · 64 tokens