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.
git clone --depth 1 https://github.com/TobiasBlask/open-paper-machineWrote 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.
[](https://agentmods.dev/commands/tobiasblask/open-paper-machine/generate-figure)<a href="https://agentmods.dev/commands/tobiasblask/open-paper-machine/generate-figure"><img src="https://agentmods.dev/badge/commands/tobiasblask/open-paper-machine/generate-figure.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.00311 |
| Opus 5 | $0.00015 | $0.00156 |
| Sonnet 5 | $0.00006 | $0.00062 |
| Haiku 4.5 | $0.00003 | $0.00031 |
Grade B, and why
generate-figure scanned grade B 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
PB_SCRIPT="$(find ~/.claude/plugins -name paperbanana_direct.py -path '*/open-academic-paper-machine/*' 2>/dev/null | head -1)" && \ What it actually says
Generate Figure: $ARGUMENTS
Read the figure-engine skill first.
Steps
- Parse
$ARGUMENTS— extract the source text or file reference and optional caption - If a file path is given, read it. If inline text, use it directly.
- Write the source context to
/tmp/pb_source_context.txtif it's long - PRIMARY: Use the direct Python API via
paperbanana_direct.pyscript:PB_SCRIPT="$(find ~/.claude/plugins -name paperbanana_direct.py -path '*/open-academic-paper-machine/*' 2>/dev/null | head -1)" && \ python3 "$PB_SCRIPT" diagram \ --source-context "$(cat /tmp/pb_source_context.txt)" \ --caption "Figure N: Caption" \ --output-dir figures/ \ --filename "fig_section_name.png" \ --iterations 3 - If the script is not found, FALLBACK: generate using Python (matplotlib + graphviz/networkx)
- Save output PNG to
figures/in the workspace - Provide the LaTeX
\begin{figure}snippet ready for inclusion - Show the user the generated figure using the Read tool on the PNG path
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.
- 8d ago First seen · 27 lines · 30 tokens per session scan B 1932e360dcac
generate-figure is a command published in the GitHub repository TobiasBlask/open-paper-machine (18 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 311 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
openehr-explain
One-stop router that explains or looks up any openEHR thing — auto-detects an archetype, a template, an RM/AM/BASE type, an RM structural concept, an ADL idiom, an AQL query or keyword, or a terminology code (replaces /archetype-explain, /template-explain, /type-spec, /rm-structure, /adl-idiom, /terminology).
create-scene
Create a single animated scene for mathematical visualization.
ars-lit-review
ARS academic-paper lit-review mode — annotated bibliography in paper format.
ars-citation-check
ARS academic-paper citation-check mode — citation error report.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.