typst-report

typst-report is a skill for Claude Code from braininahat/brains-in-a-hat. It costs 68 tokens per session (1,362 once invoked), scanned A, original, MIT.

A set of instructions for creating research reports in Typst, a markup-based document and PDF system. It combines architecture diagrams and TikZ drawings, then produces one numbered, cross-referenced PDF.

In plain words
What is it for?
Use it to write Typst research reports, create publication-style PDFs, add numbered figures, and refer to figures from the text.
Why use it?
It provides a repeatable document structure for reports that contain different kinds of diagrams, figures, and references.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the archer plugin — 5 skills, 2 commands, 2 agents shipped together

Good fit Use it to write Typst research reports, create publication-style PDFs, add numbered figures, and refer to figures from the text.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/braininahat/brains-in-a-hat/typst-report
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 braininahat/brains-in-a-hat --skill typst-report
Clone the repo
git clone --depth 1 https://github.com/braininahat/brains-in-a-hat

Made for: Claude Code.

Or install archer, the plugin that ships this one along with the rest of its 5 skills, 2 commands, 2 agents.

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 typst-report

README.md
[![agentmods](https://agentmods.dev/badge/skills/braininahat/brains-in-a-hat/typst-report/github.svg)](https://agentmods.dev/skills/braininahat/brains-in-a-hat/typst-report)
Your own site
<a href="https://agentmods.dev/skills/braininahat/brains-in-a-hat/typst-report"><img src="https://agentmods.dev/badge/skills/braininahat/brains-in-a-hat/typst-report/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 typst-report

Your own site · 80×15
<a href="https://agentmods.dev/skills/braininahat/brains-in-a-hat/typst-report"><img src="https://agentmods.dev/badge/skills/braininahat/brains-in-a-hat/typst-report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,362 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.00068 $0.01362
Opus 5 $0.00034 $0.00681
Sonnet 5 $0.00014 $0.00272
Haiku 4.5 $0.00007 $0.00136

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

Security

Grade A, and why

typst-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 11d 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.

archer/skills/typst-report/SKILL.md · 168 lines

How it starts

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

Typst Research Report

Create full Typst documents that mix fletcher architecture diagrams (via @local/diagrams:0.1.0) with TikZ-rendered SVGs (via #image()). Output is a single PDF with numbered figures, cross-references, and publication-ready typography.

Standard Preamble

Every report begins with this template:

#import "@local/diagrams:0.1.0": *

#set page(
  paper: "a4",
  margin: (x: 25mm, y: 30mm),
)
#set text(font: "New Computer Modern", size: 10pt, lang: "en")
#set heading(numbering: "1.1")
#set figure(supplement: [Fig.])
#set figure.caption(separator: [. ])
#show figure: set block(breakable: false)
#show ref: it => {
  let el = it.element
  if el != none and el.func() == figure { [Fig. #it] } else { it }
}

#show heading.where(level: 1): it => {
  v(1em)
  text(weight: "bold", size: 12pt, it)
  v(0.3em)
}

Title Block

#align(center)[
  #text(size: 14pt, weight: "bold")[Report Title]
  #v(0.3em)
  #text(size: 10pt, fill: gray)[Author · Date · Version]
]
#v(1em)
#line(length: 100%, stroke: 0.5pt + gray)
#v(1em)

Figure Numbering and Cross-References

All figures are numbered automatically. Reference them with @label:

#figure(
  ml-diagram(
    data-in((0,0), [Input]),
    edge("-|>"),
    encoder((1,0), [Encoder]),
  ),
  caption: [CTC pipeline overview. Input poses are encoded before CTC decoding.],
) <fig:pipeline>

As shown in @fig:pipeline, the encoder receives raw pose sequences.

Mixed Diagram Pattern: fletcher + TikZ SVG

The core pattern for combining both diagram types in one report:

// Fletcher diagram (inline — uses @local/diagrams)
#figure(
  ml-diagram(
    data-in((0,0), [Poses\ #dim[(T, 22)]]),
    edge("-|>"),
    encoder((1,0), [BiGRU\ #dim[(T, 256)]]),
    edge("-|>"),
    ctc-head((2,0), [CTC\ #dim[46]]),
    edge("-|>"),
    data-out((3,0), [Phonemes]),
  ),
  caption: [Recognition pipeline (fletcher).],
) <fig:arch>

// TikZ SVG (pre-rendered, import as image)
#figure(
  image("figures/bigru-internals.svg", width: 80%),
  caption: [BiGRU cell internals (TikZ).],
) <fig:bigru>

Read the full file on GitHub · 168 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. 11d ago First seen · 168 lines · 68 tokens per session scan A 4a87cdaa56ad

Subscribe to this mod's changes

typst-report is a skill published in the GitHub repository braininahat/brains-in-a-hat (4 stars, last pushed 2mo ago), licensed MIT. It adds 68 tokens to every session and 1,362 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

pydicom

Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 56 tokens

pptx-posters

Create and audit editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Use when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.

K-Dense-AI/scientific-agent-skills · 59 tokens

extracting-lab-tables

Detects and extracts tabular laboratory panels from PDFs, scans, and images into structured rows ready for OpenMed and FHIR. Use when the user has a CBC, CMP, lipid panel, or other lab report as a scanned image / PDF / spreadsheet and needs the test name, value, unit, reference range, and abnormal flag as clean rows.…

maziyarpanahi/openmed · 210 tokens

paper-spine

Build, rewrite, audit, submit, revise, or transfer scholarly papers end to end, producing verified LaTeX/PDF/Word and target-specific publication packages.

WUBING2023/PaperSpine · 37 tokens

paper-compile

A build workflow that turns LaTeX source files into a PDF and checks whether the paper compiles correctly. LaTeX is a text-based system commonly used for academic papers.

wanshuiyin/Auto-claude-code-research-in-sleep · 53 tokens

nsfc-budget

A tool that creates an editable LaTeX budget justification and renders it as a PDF for an NSFC research-funding application. NSFC is China’s National Natural Science Foundation, and a budget justification explains why proposed costs are needed.

huangwb8/ChineseResearchLaTeX · 138 tokens