mcpField
A
Academic Figure Architecture Extractor & Analyzer

Academic Figure Architecture Extractor & Analyzer

github.com/azhi-ssDesign & UI17885 installsUpdated 3w ago
Repository

About Academic Figure Architecture Extractor & Analyzer

A skill that extracts or reviews academic paper figures and produces a structured analysis for redraw handoff. It is for researchers working from PDFs or existing architecture images; local extraction uses helper tools, while image classification remains heuristic and judgment-based.

Key features

  1. 01Extracts figures from PDFs locally
  2. 02Inventories and filters candidate figures
  3. 03Analyzes components, hierarchy, and flow
  4. 04Recommends named palettes
  5. 05Provides redraw parameters

Use cases

  1. 01Reviewing architecture figures in a paper PDF
  2. 02Analyzing supplied architecture images
  3. 03Preparing figure details for a redraw prompt

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/azhi-ss/academic-figure-skills --skill academic-figure-architecture-extractor-&-analyzer

After installing, type/academic-figure-architecture-extractor-&-analyzerin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
missing-info-policy.md
palettes.md
scripts/
extract_pdf_figures.py

Details

From the project README

Academic Figure Architecture Extractor & Analyzer

Turn paper PDFs or existing architecture images into a structured 架构图分析结果 that handoffs cleanly to color-expert and prompt skills.

Palettes: → references/palettes.md (names only)
Missing info: → references/missing-info-policy.md
Extractor: → scripts/extract_pdf_figures.py

Honest scope

  • Prefer user-supplied figure images when available.
  • PDF extraction is a real local helper (pdfimages / PyMuPDF / optional pdftoppm), not a trained detector.
  • Size filter is heuristic only; architecture vs photo/table is agent judgment.
  • Palette: recommend names from references/palettes.md; hex via color-expert when needed.

Input Contract

  • Prefer: PDF path(s), figure images, domain, venue
  • Minimum: one PDF or one architecture image
  • Missing: analyze what exists; list blocked steps

Output Contract — 架构图分析结果

  • inventory (path/page, size, keep/drop reason)
  • per-kept-figure structure (components, hierarchy, flow, type)
  • recommended palette names
  • redraw parameters for academic-figure-prompt

Steps

Step 1: Obtain images

Images given → index paths.

PDF given → run the helper (from skill dir or repo root):

python3 academic-figure-architecture-extractor/scripts/extract_pdf_figures.py \
  /path/to/paper.pdf -o /tmp/arch-extract/paper

Useful flags:

flagmeaning
--backend auto|pdfimages|pymupdfembedded-image backend
--min-side 300drop tiny icons (default)
--min-pixels 90000drop low-res crops
--pages 4 or --pages 1-3 or --pages allalso rasterize pages via pdftoppm
--dpi 150raster DPI

Read extract-report.json in the out dir (kept / dropped / tools).

If both backends missing → ask user for exported figures; do not invent paths.

Done when: each candidate has a path or page reference, or a clear tool blocker is stated.

Step 2: Filter to architecture-like figures

Start from kept (size-ok). Agent reclassifies:

keep cuesdrop cues
boxes + arrows, layered blockspure photos, scatter-only, dense tables
structured edges / modulestiny icons already size-dropped

Unsure → keep + 待确认.

Done when: each image is keep / drop / uncertain with a one-line reason.

Step 3: Structure analysis

For each kept figure:

  1. components (core vs auxiliary)
  2. hierarchy / dataflow
  3. type: Overall Framework / Network Architecture / Module Detail / Comparison
  4. domain notes

Done when: every kept figure has type + component list + flow summary.

Step 4: Palette suggestion + redraw handoff

Map via references/palettes.md (e.g. ≥4-module framework → Nature Blue; module detail → Blue Monochrome; comparison → ML TopConf Deep).

图类型: ...
核心组件: ...
配色方案名: ...
布局建议: 16:9 | 3:2 | 4:3
风格: white fill, colored borders, flat vector
标注要求: ...

Done when: each kept figure has redraw params + palette names (no hex tables).

Stop

Stop when the report is delivered, extraction is blocked pending user images, or the user only wanted inventory.

Comments

Markdown supported