tachi: Command for Claude Code

.claude/commands/tachi.infographic.md

tachi.infographic is a command for Claude Code from davidmatousek/tachi. It costs 44 tokens per session (3,178 once invoked), scanned A, original, Apache-2.0.

A command that creates visual specifications and images explaining threats from a threat model, which documents possible security problems in a system. It can choose the richest available input and apply different visual templates.

In plain words
What is it for?
Use it to generate threat infographics from compensating controls, risk scores, or threat files, with selectable layouts such as architecture, funnel, heatmap, and baseball-card formats.
Why use it?
It turns technical threat information into diagrams and executive-friendly visuals without manually designing each one.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

This is davidmatousek/tachi's own configuration. It tells Claude Code how to work on tachi 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 tachi configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/extract-infographic-data.py \.

Reuse

Borrowing it

Nothing to install: this file belongs to davidmatousek/tachi. 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/davidmatousek/tachi/main/.claude/commands/tachi.infographic.md
Clone the repo
git clone --depth 1 https://github.com/davidmatousek/tachi

Made for: Claude Code.

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 tachi.infographic

README.md
[![agentmods](https://agentmods.dev/badge/commands/davidmatousek/tachi/tachi.infographic/github.svg)](https://agentmods.dev/commands/davidmatousek/tachi/tachi.infographic)
Your own site
<a href="https://agentmods.dev/commands/davidmatousek/tachi/tachi.infographic"><img src="https://agentmods.dev/badge/commands/davidmatousek/tachi/tachi.infographic/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 tachi.infographic

Your own site · 80×15
<a href="https://agentmods.dev/commands/davidmatousek/tachi/tachi.infographic"><img src="https://agentmods.dev/badge/commands/davidmatousek/tachi/tachi.infographic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,178 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.00044 $0.03178
Opus 5 $0.00022 $0.01589
Sonnet 5 $0.00009 $0.00636
Haiku 4.5 $0.00004 $0.00318

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

Security

Grade A, and why

tachi.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 9d 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.

.claude/commands/tachi.infographic.md · 268 lines

How it starts

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

User Input

$ARGUMENTS

Consider user input before proceeding (if not empty).

Step 0: Parse Arguments

  1. If $ARGUMENTS contains --template <value>:

    • Set template to the specified value
    • Valid values: baseball-card, system-architecture, risk-funnel, maestro-stack, maestro-heatmap, executive-architecture, all, maestro, corporate-white, exec
    • If value is corporate-white: resolve alias to baseball-card
    • If value is exec: resolve alias to executive-architecture
    • If value is maestro: expand shorthand to ["maestro-stack", "maestro-heatmap"] — generate both sequentially
    • If value is not in the valid list, display:
      INVALID TEMPLATE: {value}
      Valid templates: baseball-card, system-architecture, risk-funnel, maestro-stack, maestro-heatmap, executive-architecture, all, maestro
      Aliases: corporate-white → baseball-card, exec → executive-architecture, maestro → maestro-stack + maestro-heatmap
      
    • Halt if invalid.
    • Strip --template <value> from $ARGUMENTS (trim extra whitespace)
  2. Default: template = "all"

  3. If $ARGUMENTS contains --output-dir <path>:

    • Set output_dir to the specified path
    • Strip --output-dir <path> from $ARGUMENTS (trim extra whitespace)
  4. Default: output_dir = null (resolved in Step 1 based on data source location)

  5. Remaining $ARGUMENTS is treated as the explicit data source path.

  6. Default: data_source_path = null (auto-detect in Step 1)

Overview

Single-command entry point for tachi threat infographic generation — the visual layer in the pipeline: /threat-model -> /risk-score -> /infographic. Auto-detects the richest available data source, invokes the infographic agent in a fresh context, and produces specification files with optional Gemini-generated images.

Flow: Parse -> Validate -> Generate -> Report

Output suite (per template):

  • threat-{template-name}-spec.md — structured infographic specification (6 sections per schemas/infographic.yaml)
  • threat-{template-name}.jpg — presentation-ready image (only when GEMINI_API_KEY available and API succeeds)

Read the full file on GitHub · 268 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. 9d ago First seen · 268 lines · 44 tokens per session scan A 06ebc1db2f6a

Subscribe to this mod's changes

tachi.infographic is a command published in the GitHub repository davidmatousek/tachi (91 stars, last pushed 27d ago), licensed Apache-2.0. It adds 44 tokens to every session and 3,178 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.