threat-infographic

threat-infographic is a cursor rule for Cursor from davidmatousek/tachi. It costs 43 tokens per session (8,969 once invoked), scanned A, original, Apache-2.0.

A generator that turns structured threat-model findings into specifications for security infographics and, when configured, image files. It supports risk-summary cards and annotated system-architecture diagrams.

In plain words
What is it for?
It is for creating infographic specifications from threat and risk-score files. It can produce baseball-card summaries or architecture diagrams, with image output dependent on the required image-generation key.
Why use it?
It helps communicate security risks visually to people who may not want to read a detailed threat report. The visuals can show severity, affected architecture, and attack-surface information.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is threats: ../../../schemas/output.yaml.

Good fit It is for creating infographic specifications from threat and risk-score files. It can produce baseball-card summaries or architecture diagrams, with image output dependent on the required image-generation key.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/davidmatousek/tachi
agentmods
npx agentmods add rules/davidmatousek/tachi/threat-infographic

Made for: Cursor.

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 threat-infographic

README.md
[![agentmods](https://agentmods.dev/badge/rules/davidmatousek/tachi/threat-infographic.svg)](https://agentmods.dev/rules/davidmatousek/tachi/threat-infographic)
Your own site
<a href="https://agentmods.dev/rules/davidmatousek/tachi/threat-infographic"><img src="https://agentmods.dev/badge/rules/davidmatousek/tachi/threat-infographic.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,969 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.
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.00043 $0.08969
Opus 5 $0.00022 $0.04484
Sonnet 5 $0.00009 $0.01794
Haiku 4.5 $0.00004 $0.00897

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

Security

Grade A, and why

threat-infographic 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 5d 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.

adapters/cursor/rules/threat-infographic.mdc · 731 lines

How it starts

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

Metadata

category: report
input_schemas:
  threats: ../../../schemas/output.yaml
  risk-scores: ../../../schemas/risk-scoring.yaml
output_schema: ../../../schemas/infographic.yaml
data_source_types:
  threats:
    files: [threats.md]
    description: "Qualitative severity-based extraction (standalone)"
  risk-scores:
    files: [risk-scores.md, threats.md]
    description: "Quantitative composite-score extraction (dual-file)"
templates:
  baseball-card: templates/tachi/infographics/infographic-baseball-card.md
  system-architecture: templates/tachi/infographics/infographic-system-architecture.md
aliases:
  corporate-white: baseball-card
output_files:
  - threat-{template-name}-spec.md
  - threat-{template-name}.jpg  # conditional on GEMINI_API_KEY
references:
  schemas:
    input_threats: ../../../schemas/output.yaml
    input_risk_scores: ../../../schemas/risk-scoring.yaml
    output: ../../../schemas/infographic.yaml
    finding: ../../../schemas/finding.yaml

Threat Infographic Agent

Core Mission

You are the tachi threat infographic agent. Your mission is to transform the structured threat model output (threats.md) into visual infographic specifications that communicate security posture to executive audiences — board members, CISOs, and management teams who need to understand risk at a glance without reading a full threat report.

Your input is:

  1. Data source — one of two types:
    • threats.md — produced by the orchestrator's Phase 4 (Assess). Contains 7 sections plus Section 4a (Correlated Findings), conforming to ../../../schemas/output.yaml.
    • risk-scores.md — produced by the risk scorer agent. Contains quantitative composite scores conforming to ../../../schemas/risk-scoring.yaml. Requires a co-located threats.md for structural/spatial data.
  2. Template name — specified by the orchestrator. Determines which design template to load and which output files to produce.

You must not require any other input — you run in a fresh context with only the data source file(s) and a template name.

Read the full file on GitHub · 731 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. 5d ago First seen · 731 lines · 43 tokens per session scan A e9843863d6ad

Subscribe to this mod's changes

threat-infographic is a cursor rule published in the GitHub repository davidmatousek/tachi (90 stars, last pushed 26d ago), licensed Apache-2.0. It adds 43 tokens to every session and 8,969 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-09-03.