Logo Figmirror

Figmirror

Tổ chức
VILA-Lab
figmirror

This FigMirror skill should be used when the user asks to "mirror this figure's style", "copy this figure's style", "make a chart that looks like this paper", "reproduce this figure with my data", "match this paper's aesthetic", "I want a NeurIPS-quality version of this", or any variant where they hand over a cropped or uncropped reference figure AND their own data and want their data rendered in the same visual register. ALSO triggers when the user attaches a paper-figure screenshot plus tabular data and asks for matplotlib output. Does NOT trigger on generic matplotlib chart requests with no reference image — that's a basic matplotlib task, not style transfer.

Tổng quan

Nhà phát hànhVILA-Lab
Kho mãFigMirror
Tên kỹ năngfigmirror
Sao
547
Bản fork
40
Tệp đi kèm
18
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 18 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được VILA-Lab công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Figmirror trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/VILA-Lab/FigMirror/tree/main/.claude/retired-figmirror-20260817/skills-figmirror
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VILA-Lab/FigMirror.git /tmp/FigMirror
mkdir -p .claude/skills
cp -r /tmp/FigMirror/.claude/retired-figmirror-20260817/skills-figmirror .claude/skills/figmirror
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Figmirror trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Figmirror ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Figmirror không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

FigMirror (figmirror)

Transfer the visual style of a top-conference paper figure (NeurIPS / ICML / ICLR / Nature / Science) onto user data via an iterative Drawer / Reviewer loop. Output is a self-contained matplotlib script + PNG + type-42 PDF that matches the reference's STYLE — not its data.

When to use

Trigger when the user provides all three:

  • A reference paper-figure screenshot.
  • Their own data in any parseable form (pasted table, CSV, TSV, markdown table, or dirty terminal text).
  • An expectation that the output should look like the reference — even via casual phrasing ("make this chart but with my numbers", "redo this in matplotlib"). This includes 3D references when the reference or data is actually 3D.

Do not trigger on plain matplotlib chart requests with no reference image.

Required inputs

  • Reference image (PNG / JPG), cropped or uncropped. It may include margins, captions, neighboring panels, or page text; Stage 0 preprocesses it.
  • User data (any parseable form).
  • Optional working directory. Default: <cwd>/figmirror-runs/<run-id>/.

3D Insert Gate

Enable references/three-d-prompting.md only when the user asks for a 3D figure, the reference is visibly 3D, or the parsed data requires a 3D encoding such as x/y/z, surfaces, trajectories, layered profiles, closed objects, 3D small multiples, 3D bars, or plane projections. Do not use this insert to turn an ordinary 2D task into 3D.

Architecture

Three bundled subagents drive the loop; the caller orchestrates from the main thread:

  • figure-preprocessor — Preprocessor. Stage 0: preserves the raw upload, crops away margins/captions/page text/neighboring panels when safe, and writes inputs/reference_clean.png plus a crop check/report.
  • figure-illustrator — Drawer. Per iter: reads reference + data + L2 library, produces figure_iter<N>.py, img_iter<N>.png, notes_iter<N>.md, floor_selfcheck_iter<N>.txt. Self-checks the layout floor before returning.
  • figure-critic — Reviewer. Per iter: vision-only audit on a fresh-context view (reference + draft + L2 library + optional 3D insert + prior audit only). Returns ONE strict JSON object per the review schema.

Subagents are stateless across dispatch; iter-to-iter state flows through workdir files.

Prefer subagent_type: figure-preprocessor / figure-illustrator / figure-critic. Fallback path when those names don't resolve: see references/iter-loop-spec.md § "Subagent dispatch fallback".

Workflow

For each run:

  1. Stage workdir. Pre-create every directory the loop will write into (subagents Write into existing dirs only — workspace permission quirk). Stage the uploaded reference image to inputs/reference_raw.png and also to inputs/reference_clean.png as a temporary first-paint copy; stage parsed data to inputs/data.txt, and the L2 library to inputs/aesthetic-library.md; stage the 3D router plus references/three-d/ only when the 3D insert gate is enabled. The router selects exactly one mode file: three-d/style-transfer.md for ordinary user-data figures, or three-d/strict-reproduction.md for reproduction, comparison, or candidate/control replacement. For strict 3D reproduction runs that need quantitative candidate diagnosis, also stage the optional candidate scorer. The top-level Orchestrator owns final selection and must run the selected mode's rendered-image gates before copying any candidate to the final figure.
  2. Preprocess reference. Dispatch figure-preprocessor before data-gen, Drawer, or Reviewer. It writes the clean L1 anchor to inputs/reference_clean.png and records the before/after crop check.
  3. Echo data parse to user (Decision-7). Show parsed shape (rows × cols, columns, NaN cells, sample row); proceed when confirmed, or skip if the user pre-authorized. Either way, persist the echo to data_echo.md.
  4. Iterate with the caller-provided max_iters; default to 6 when the caller gives no explicit limit. If the caller enables auto-until-shipped, ignore max_iters and continue until ship or a real blocker. Each iter:
    • Dispatch the Drawer.
    • Stage the Reviewer's audit view (reference + new draft + L2 library + optional 3D insert + prior audit only — NEVER data.txt or drawer notes).
    • Dispatch the Reviewer.
    • Parse the audit JSON.
    • Apply the decision rule: floor.passed && verdict == "ship" → ship and break; else N == max_iters - 1 and not auto → break (fall through to select-best); else continue.
  5. Select-best fallback (only if ship never fires). Pick the lowest-drift iter among floor.passed && verdict == "close" candidates. Document the choice in selection.md.
  6. Write canonical artifacts. Copy the chosen-iter script + PNG to figure.py / figure.png. Re-render figure.pdf with pdf.fonttype = 42.
  7. Surface the result to the user. Render figure.png inline, list paths to figure.py / figure.pdf, give a 1-2 sentence trajectory summary. Do not show audit JSONs or per-iter scripts unless asked.

The full per-step spec (bash commands for staging, dispatch brief templates, audit JSON parsing snippets, drift calculation, fallback selection) lives in references/iter-loop-spec.md. Read it before running the loop.

Non-negotiables

  • The reference is a STYLE anchor, not a layout-number anchor. The Drawer must NOT copy wspace, hspace, figsize, ylim from the reference's data — those recompute from OUR data's shape.
  • inputs/reference_raw.png is the preserved upload; inputs/reference_clean.png is the Stage-0 crop used for L1 measurement.
  • Every visual choice traces to L1 (reference image) or L2 (references/aesthetic-library.md). L3 ("I think it would look better") is banned.
  • The Reviewer's audit view contains ONLY reference + draft + L2 library + optional 3D insert + prior audit. NEVER stage data.txt or drawer notes into it. Vision-only audit preserves reviewer independence.
  • Pre-create all directories before dispatching subagents; subagents only Write into existing dirs.
  • Iter N>0 Drawer must edit the prior iter's .py incrementally (copy → edit copy), not rewrite from scratch. All prior iters' artifacts must remain intact in workdir.
  • Final script is self-contained (inline DATA SECTOR) with matplotlib.rcParams['pdf.fonttype'] = 42.

Bundled resources

  • references/aesthetic-library.md — L2 convention library (~900 lines). Read by both Drawer and Reviewer per iter. Versioned independently of the agent prompts because the library iterates faster.
  • references/three-d-prompting.md — conditional 3D L2 insert router. Stage and pass it only when the reference is visibly 3D or the data requires 3D encoding.
  • references/three-d/ — 3D mode files plus routed modules for core gates, surfaces, marks/panels, strict scorecards, and repair feedback.
  • scripts/score_3d_candidates.py — optional 3D strict-reproduction helper for diagnosing rendered camera/aspect/layout candidates against the L1 reference.
  • references/iter-loop-spec.md — full per-step orchestration spec (staging commands, dispatch briefs, JSON parsing, drift calc, fallback).

Bundled subagents

  • figure-preprocessor — Stage-0 reference crop role.
  • figure-illustrator — Drawer role.
  • figure-critic — Reviewer role.

Source: .claude/agents/figure-{preprocessor,illustrator,critic}.md (project-level) or ~/.claude/agents/figure-{preprocessor,illustrator,critic}.md (user-level after scripts/install_claude_skill.py).

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Figmirror làm được gì?

This FigMirror skill should be used when the user asks to "mirror this figure's style", "copy this figure's style", "make a chart that looks like this paper", "reproduce this figure with my data", "match this paper's aesthetic", "I want a NeurIPS-quality version of this", or any variant where they hand over a cropped or uncropped reference figure AND their own data and want their data rendered in the same visual register. ALSO triggers when the user attaches a paper-figure screenshot plus tabular data and asks for matplotlib output. Does NOT trigger on generic matplotlib chart requests with...

Vì sao nên dùng Figmirror trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Figmirror là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Figmirror trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/VILA-Lab/FigMirror/tree/main/.claude/retired-figmirror-20260817/skills-figmirror. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Figmirror?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Figmirror với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Figmirror với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Figmirror có miễn phí không?

Kỹ năng này được VILA-Lab phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇