diagram_master_agent

diagram_master_agent is an agent for Claude Code from Masqiller/ARG-RESEARCHER-V4.1. It costs 35 tokens per session (4,529 once invoked), scanned A, original, MIT.

An academic diagram agent that finds places where a paper would benefit from a diagram and writes TikZ or Mermaid code for it. TikZ is a LaTeX language for precise diagrams, while Mermaid creates text-based flowcharts and sequences.

In plain words
What is it for?
Use it to design conceptual, structural, process, hierarchy, causal, and explanatory diagrams for academic papers, excluding numerical data charts.
Why use it?
It helps explain structures, processes, relationships, and concepts that are difficult to follow in paragraphs alone. It also checks that the diagram code and references are consistent.

Agent for Claude Code

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

Part of the ARG-Researcher plugin — 4 skills, 11 commands, 34 agents, 1 hook shipped together

Good fit Use it to design conceptual, structural, process, hierarchy, causal, and explanatory diagrams for academic papers, excluding numerical data charts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/masqiller/arg-researcher-v4.1/diagram_master_agent
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.

Clone the repo
git clone --depth 1 https://github.com/Masqiller/ARG-RESEARCHER-V4.1

Made for: Claude Code.

Or install ARG-Researcher, the plugin that ships this one along with the rest of its 4 skills, 11 commands, 34 agents, 1 hook.

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 diagram_master_agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/masqiller/arg-researcher-v4.1/diagram_master_agent/github.svg)](https://agentmods.dev/agents/masqiller/arg-researcher-v4.1/diagram_master_agent)
Your own site
<a href="https://agentmods.dev/agents/masqiller/arg-researcher-v4.1/diagram_master_agent"><img src="https://agentmods.dev/badge/agents/masqiller/arg-researcher-v4.1/diagram_master_agent/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 diagram_master_agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/masqiller/arg-researcher-v4.1/diagram_master_agent"><img src="https://agentmods.dev/badge/agents/masqiller/arg-researcher-v4.1/diagram_master_agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,529 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.00035 $0.04529
Opus 5 $0.00017 $0.02264
Sonnet 5 $0.00007 $0.00906
Haiku 4.5 $0.00003 $0.00453

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

Security

Grade A, and why

diagram_master_agent 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 12d 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.

academic-paper/agents/diagram_master_agent.md · 393 lines

How it starts

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

Diagram Master Agent — Structural & Conceptual Diagram Generation

Role Definition

You are Dr. Atlas, the Diagram Master Agent. You identify where structural, conceptual, and explanatory diagrams would strengthen an academic paper, then generate publication-quality diagram code in TikZ (primary) or Mermaid (secondary, flowcharts/sequences only). You handle everything that is NOT a quantitative data chart — those belong to Dr. Meera (visualization_agent).

Persona

  • Name: Dr. Atlas
  • Specialty: Scientific illustration, information architecture, visual communication for academic publication
  • Philosophy: "A well-placed diagram replaces a thousand words of prose — but only if it encodes information that prose cannot efficiently convey."

Core Principles

  1. Necessity over decoration — Every diagram must convey information that prose alone cannot efficiently communicate; suppress decorative diagrams
  2. Compilable-first — All generated TikZ code must be syntactically valid and compile without modification; Mermaid code must render without errors
  3. Semantic clarity — Diagrams encode relationships (hierarchy, sequence, causality, containment) that are immediately parseable by a domain reader
  4. Typographic harmony — Use \footnotesize\sffamily for node labels and \scriptsize\sffamily for annotations to match typical academic document fonts
  5. Minimal complexity — Use the simplest diagram type that conveys the point; never over-engineer
  6. Standard packages only — TikZ code uses only packages known to exist on CTAN (tikz, tikz-cd, forest, pgfplots, automata, mindmap); never hallucinate non-existent packages
  7. Preamble-aware — Track which \usepackage{} and \usetikzlibrary{} lines are required and inject them into the LaTeX preamble section of the output

Activation Context

  • Phase 2D: Planner sub-role — activated after structure_architect_agent produces the paper outline (runs parallel with argument_builder_agent)
  • Phase 4: Generator sub-role — activated during drafting alongside draft_writer_agent
  • Phase 5c: Validator sub-role — activated after drafting, parallel with citation and abstract phases
  • Standalone /arg-diagram mode: All three sub-roles active on demand, outside full pipeline

Read the full file on GitHub · 393 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. 12d ago First seen · 393 lines · 35 tokens per session scan A 2533b10d6d23

Subscribe to this mod's changes

diagram_master_agent is an agent published in the GitHub repository Masqiller/ARG-RESEARCHER-V4.1 (6 stars, last pushed 3mo ago), licensed MIT. It adds 35 tokens to every session and 4,529 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-31.

Related

Other agents, from other repositories

doc-author

Drafts and edits executable Stencila documents (.smd, .myst, .qmd). Use when the user asks to write, draft, extend or restructure a Stencila document, add executable code chunks, figures, tables or parameters to one, or turn an analysis into a reproducible document. Verifies its work by executing before reporting done.

stencila/stencila · 76 tokens

fatal-error-check

Fast pre-review check for fatal errors in LaTeX papers. Launch BEFORE full review agents (paper-critic, domain-reviewer, referee2-reviewer). Binary PASS/FAIL verdict in 15-30 seconds. Checks compilation, placeholders, broken references, number contradictions, and section completeness. Examples: Example 1: user: "Quick…

flonat/flonat-research · 180 tokens

visualization-agent

Parses paper data and statistical results to generate publication-quality figure code in Python (matplotlib/seaborn) or R (ggplot2) formatted to APA 7.0 standards, producing accessible, colorblind-safe visualizations with captions, labels, and LaTeX inclusion code.

AlterLab-IEU/AlterLab-Academic-Skills · 62 tokens

latex-engineer

LaTeX and scientific document specialist — venue templates, figures, tables, bibliographies, TikZ diagrams.

cdeust/zetetic-team-subagents · 25 tokens

latex-implementation-agent

Implement LaTeX documents following implementation plans.

benbrastmckie/nvim · 13 tokens

document-gen-worker

Generates a single synthetic clinical document (clinical note, imaging report, pathology report, or NGS report) for one event in a patient's timeline. Uses the masked-text approach with full patient event context. Spawned by the generate-synthetic-data skill -- do not invoke directly.

kenlkehl/onc-data-wrangler-plugin · 61 tokens