02-asset-extractor

02-asset-extractor is an agent for coding agents from RehgLab/ArcDeck. It costs 0 tokens per session (1,034 once invoked), scanned A, original, MIT.

A paper-processing agent that extracts figures, tables, and cited references from a research-paper PDF. It saves images and records details such as captions, page numbers, paths, and dimensions for later presentation work.

In plain words
What is it for?
Use it to prepare research papers for figure matching, image filtering, presentation construction, and slide rendering.
Why use it?
It turns scattered visual and reference information in a PDF into structured data that other agents can use.

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.

agentmods
npx agentmods add agents/rehglab/arcdeck/02-asset-extractor
Clone the repo
git clone --depth 1 https://github.com/RehgLab/ArcDeck

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 02-asset-extractor

README.md
[![agentmods](https://agentmods.dev/badge/agents/rehglab/arcdeck/02-asset-extractor.svg)](https://agentmods.dev/agents/rehglab/arcdeck/02-asset-extractor)
Your own site
<a href="https://agentmods.dev/agents/rehglab/arcdeck/02-asset-extractor"><img src="https://agentmods.dev/badge/agents/rehglab/arcdeck/02-asset-extractor.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,034 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01034
Opus 5 $0.00000 $0.00517
Sonnet 5 $0.00000 $0.00207
Haiku 4.5 $0.00000 $0.00103

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

Security

Grade A, and why

02-asset-extractor 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 4d 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.

arcdeck-skill/agents/02-asset-extractor.md · 122 lines

How it starts

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

Agent 2: Asset Extractor

Role

Extracts visual assets (figures, tables) and bibliographic references from the PDF paper. Produces structured metadata that downstream agents use for figure matching and PPTX rendering.

Position in Pipeline

  • Phase: 1 (Preprocessing)
  • Depends on: A1 output (markdown.md), original PDF
  • Produces for: A9 (Image Filter), A10 (Figure Matcher), A11 (Constructor), A13 (Renderer)
  • LLM Required: No

Inputs

Input Source Format
PDF file User input File path
Paper markdown workspace/markdown.md Plain text

Execution Steps

Step 1: Extract Figures

  1. Extract all figure images from the PDF
  2. Save each as workspace/figures/image_{N}.png (numbered from 1)
  3. For each image, record metadata:
    • caption: Figure caption text (from PDF or nearby text)
    • page_no: Page number where figure appears
    • image_path: Relative path to saved image file
    • width, height: Image dimensions in pixels
    • figure_aspect: width / height ratio

Step 2: Extract Tables

  1. Identify all tables in the PDF
  2. For each table, save a rendered image: workspace/figures/table_{N}.png
  3. Record metadata:
    • caption: Table caption text
    • page_no: Page number
    • table_path: Relative path to saved table image
    • width, height: Dimensions

Step 3: Extract References

  1. Find the "References" section in workspace/markdown.md
  2. Parse into two dictionaries:
    • numbered: Maps reference numbers to full citation text
      {"1": "Smith et al., Deep Learning...", "2": "Jones, 2023..."}
      
    • citations: Maps "Author et al., Year" patterns to full text
      {"Smith et al., 2022": "Smith et al., Deep Learning..."}
      

Output Schema

workspace/images.json

{
  "image_1": {
    "caption": "Figure 1: System overview...",
    "page_no": 3,
    "image_path": "workspace/figures/image_1.png",
    "width": 800,
    "height": 600,
    "figure_aspect": 1.33
  }
}

Read the full file on GitHub · 122 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. 4d ago First seen · 122 lines · 0 tokens per session scan A b7048fe7c426

Subscribe to this mod's changes

02-asset-extractor is an agent published in the GitHub repository RehgLab/ArcDeck (49 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,034 tokens. 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.