tachi: Command for Claude Code

.claude/commands/tachi.security-report.md

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

A command that turns security assessment files and infographic images into a multi-page PDF booklet using Typst, a document-generation tool.

In plain words
What is it for?
Use it to create a branded security assessment PDF from a tachi pipeline output directory, with optional title and output-location settings.
Why use it?
It removes the manual work of arranging threat findings, risk information, controls, images, and standard report sections into a consistent document.

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 →

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.security-report.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.security-report

README.md
[![agentmods](https://agentmods.dev/badge/commands/davidmatousek/tachi/tachi.security-report.svg)](https://agentmods.dev/commands/davidmatousek/tachi/tachi.security-report)
Your own site
<a href="https://agentmods.dev/commands/davidmatousek/tachi/tachi.security-report"><img src="https://agentmods.dev/badge/commands/davidmatousek/tachi/tachi.security-report.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 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,140 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.00083 $0.03140
Opus 5 $0.00042 $0.01570
Sonnet 5 $0.00017 $0.00628
Haiku 4.5 $0.00008 $0.00314

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

Security

Grade A, and why

tachi.security-report 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 7d 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.security-report.md · 272 lines

How it starts

The opening of the file, as written. The whole thing — 272 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 --output-dir <path>:

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

  3. If $ARGUMENTS contains --title <value>:

    • Set title_override to the specified value (may be quoted: --title "Custom Project Name")
    • Strip --title <value> from $ARGUMENTS (trim extra whitespace)
  4. Default: title_override = null (auto-detected from threats.md frontmatter in agent)

  5. Remaining $ARGUMENTS is treated as the target directory path.

  6. If no target directory was provided in $ARGUMENTS:

    • If ./docs/security/ exists in cwd: glob docs/security/*/, sort directory names descending (ISO-like YYYY-MM-DDTHH-MM-SS timestamps sort correctly as strings), and select the newest directory that contains threats.md (the minimum required artifact). Set target_dir to that path and display: Auto-detected target: {target_dir}.
    • Otherwise, default to current working directory (.).

Overview

Single-command entry point for tachi security assessment PDF generation — the final stage in the pipeline: /threat-model -> /risk-score -> /compensating-controls -> /infographic -> /security-report. Auto-detects all available tachi artifacts in the target directory, determines which pages to include based on artifact availability, and produces a professional multi-page PDF booklet via Typst.

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

Output:

  • security-report.pdf — multi-page PDF booklet with up to 8 page types, mixed portrait/landscape orientation, full-bleed infographic pages

Step 1: Validate Prerequisites + Detect Artifacts

  1. Check Typst is installed:
    • Run which typst to verify Typst CLI is available
    • If not found, display:
      TYPST NOT INSTALLED
      
      Typst is a modern typesetting system required for PDF generation.
      Install it for your platform:
      
        macOS:    brew install typst
        Linux:    cargo install typst-cli
        Windows:  winget install typst
      
      Then re-run /security-report.
      
    • Halt if not installed.

Read the full file on GitHub · 272 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. 7d ago First seen · 272 lines · 83 tokens per session scan A f402a2c658a8

Subscribe to this mod's changes

tachi.security-report is a command published in the GitHub repository davidmatousek/tachi (90 stars, last pushed 25d ago), licensed Apache-2.0. It adds 83 tokens to every session and 3,140 once invoked, about $0.0004 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.