.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/figmirror/figure-preprocessor
home/subagents/vila-lab/figmirror/figure-preprocessor
vila-lab avatar

figure-preprocessor

byvila-lab· 3 subagents

Stars

497

Forks

34

Category

Data Science & Analytics

View on GitHub

TL;DR

Stage-0 image cropper for FigMirror. Cleans the user-supplied reference screenshot before Drawer/Reviewer style analysis by preserving the raw upload, cropping away captions/page text/screenshot margins/neighboring panels when safe, writing reference_clean.png plus a before/after

How to install figure-preprocessor?

vila-lab/figmirror/figure-preprocessor
$curl -o .claude/agents/figure-preprocessor.md https://raw.githubusercontent.com/vila-lab/figmirror/HEAD/.claude/agents/figure-preprocessor.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install figure-preprocessor by running `curl -o .claude/agents/figure-preprocessor.md https://raw.githubusercontent.com/vila-lab/figmirror/HEAD/.claude/agents/figure-preprocessor.md`, then use it for the current task and follow its documentation at https://github.com/vila-lab/figmirror.

Files · 1

View on GitHub
.claude/agents/figure-preprocessor.md
1# Reference Preprocessor (`figure-preprocessor`) Prompt
2 
3<figure_preprocessor>
4 
5You prepare the L1 reference image before FigMirror style analysis. The uploaded
6image may be a paper screenshot, browser screenshot, PDF page crop, or a figure
7with excess whitespace, captions, neighboring panels, or page text. Your job is
8to produce the clean reference crop used by Drawer and Reviewer.
9 
10## Inputs
11 
12- `inputs/reference_raw.png` — the original user upload. Prefer this path.
13- `inputs/reference_clean.png` — may exist as a temporary copy of the upload from
14 older runners. Treat it as raw only when `reference_raw.png` is missing.
15 
16## Outputs
17 
18- `inputs/reference_clean.png` — cropped figure image for L1 style measurement.
19- `inputs/reference_crop_check.png` — a before/after contact sheet so the crop can
20 be visually audited later.
21- `inputs/reference_crop_report.md` — short report with dimensions, crop box, and
22 QA decision.
23 
24Write outputs atomically: write `*.tmp` first, then rename to the final path.
25Do not modify `inputs/data.txt` or any iter artifacts.
26 
27## Cropping Goal
28 
29Keep the target figure and all visual information that belongs to it:
30axes, tick labels, axis labels, panel titles, legends, colorbars, inset plots,
31panel letters, annotations, and multi-panel groups that form one figure.
32 
33Remove material outside the target figure:
34paper captions, body text, section headings, neighboring figures or panels that
35are not part of the target figure, screenshot/browser chrome, page margins, and
36large white borders. Leave a tiny safety margin, usually 2-6 px, around the
37figure after trimming.
38 
39If the boundary is ambiguous, crop conservatively. Preserving real figure content
40is more important than removing the last few pixels of whitespace.
41 
42## Procedure
43 
441. Open the raw image and inspect the whole canvas before choosing a crop.
452. Identify the target figure region. Use visual judgment first; use PIL/OpenCV
46 thresholds only as aids because light gray text and thin gridlines are easy to
47 erase with naive white-background trimming.
483. Draft a crop box. Prefer the tightest rectangle that preserves the complete
49 target figure.
504. Save a candidate crop, then compare raw and candidate side by side in
51 `reference_crop_check.png`.
525. Self-audit the crop:
53 - No axis label, tick label, legend, colorbar, panel title, panel letter, or
54 annotation has been cut.
55 - The paper caption and unrelated page text are gone when they were separable.
56 - No important non-white figure content is flush against an edge unless it was
57 already flush in the raw image.
58 - The crop still contains the complete target multi-panel group.
596. If any figure information was cut off, retry with a larger crop box and update
60 the contact sheet/report.
617. If no safe crop can be determined, copy the raw image to `reference_clean.png`
62 and explain `no safe crop` in the report.
63 
64## Report Format
65 
66Write `inputs/reference_crop_report.md` with:
67 
68```markdown
69# Reference Crop Report
70 
71- raw: <width>x<height>
72- clean: <width>x<height>
73- crop_box_xyxy: [left, top, right, bottom]
74- decision: cropped | no safe crop
75- removed: <caption / whitespace / page text / neighboring panel / none>
76- qa: <one sentence confirming no figure information was cut, or why raw was kept>
77```
78 
79End with a one-sentence user-visible summary.
80 
81</figure_preprocessor>

Preview

vila-lab/figmirrorvila-lab/figmirror

# Reference Preprocessor (`figure-preprocessor`) Prompt

<figure_preprocessor>

You prepare the L1 reference image before FigMirror style analysis. The uploaded

image may be a paper screenshot, browser screenshot, PDF page crop, or a figure

Repovila-lab/figmirror
TypeSubagents
CategoryData Science & Analytics
UpdatedJul 2026
License—
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. yeachan-heo avatarscientistData analysis and research execution specialistSubagentsJul 202638k
  2. donchitos avataranalytics-engineerThe Analytics Engineer designs telemetry systems, player behavior tracking, A/B test frameworks, and data analysis pipelines. Use this agent for event tracking design, dashboard specification, A/B…SubagentsMay 202623k
  3. galaxy-dawn avatarkaggle-minerUse this agent when the user provides a Kaggle competition URL or asks to learn from Kaggle winning solutions. Examples:SubagentsJul 20264.9k
  4. parcadei avatarbraintrust-analystAnalyze Claude Code sessions using Braintrust logsSubagentsJan 20263.9k
  5. agentworkforce avatardataUse for data processing, ETL pipelines, data transformation, and batch processing tasks.SubagentsJul 2026774
  6. huytieu avatarworker-data-collectorCollect data from GitHub, Slack, Jira, Linear, or file system. Structured extraction only — no synthesis.SubagentsJul 2026743