Figmirrorのロゴ

Figmirror

組織
VILA-Lab
figmirror

FigMirror mirrors the visual style of a top-conference paper figure (NeurIPS / ICML / ICLR / Nature family) onto the user's own data. Takes dirty data plus a reference figure screenshot (cropped or uncropped), preprocesses the reference crop, runs a Drawer/Reviewer loop, and outputs a camera-ready PDF plus a self-contained matplotlib script with an inline DATA SECTOR.

概要

公開者VILA-Lab
リポジトリFigMirror
スキル名figmirror
スター
547
フォーク
40
同梱ファイル
25
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 25個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    VILA-LabがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルFigmirrorをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/VILA-Lab/FigMirror/tree/main/.claude/skills/figmirror
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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/skills/figmirror .claude/skills/figmirror
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFigmirrorを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にFigmirrorを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Figmirrorは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

FigMirror (figmirror)

Use this skill when the user wants to:

  • Transfer the visual style of a top-conference paper figure to their own data.
  • Produce a camera-ready matplotlib figure matching a reference screenshot in style, not in data.
  • Mirror 3D paper-figure references such as surfaces, scatter, trajectories, bars, layered waterfalls, or plane projections when the reference or data is actually 3D.
  • Receive a self-contained .py script with editable inline data plus PNG/PDF outputs.

Required Inputs

  • A reference figure screenshot (PNG/JPG). It may include margins, captions, neighboring panels, or page text; Stage 0 preprocesses it.
  • The user's data in any parseable form: pasted table, CSV, TSV, markdown table, or dirty terminal text.
  • A working directory for iteration artifacts.

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

  • Python runner owns UI lifecycle, cancellation, optional data-gen, and launching the main claude process.
  • The top-level claude process is Orchestrator only. It owns iteration state, role dispatch, artifact checks, Reviewer audit-view staging, deterministic review-gate invocation, stop decisions, and final selection.
  • Drawer runs as the named figmirror-drawer custom subagent through the Task tool with subagent_type="figmirror-drawer" and run_in_background=false. It writes each iteration's matplotlib script, render, notes, and floor self-check in the staged workdir.
  • Reviewer runs as the named figmirror-reviewer custom subagent through the Task tool with subagent_type="figmirror-reviewer" and run_in_background=false. It sees only the staged audit view: the far-view composite, full-resolution reference/draft near views, the Reviewer prompt, the aesthetic library, fixed diagnostics, and optional fixed 3D audit material. It returns strict JSON including boxes; figannot.py review-decision validates and records the result before any Drawer or finalization decision. The Task tool carries a single text prompt and has no attachment channel, so the Orchestrator gives the Reviewer an ordered list of absolute image paths and the Reviewer opens each one with Read, once, in that order.
  • 3D flow uses the standard Orchestrator plus named Drawer/Reviewer subagents, and optional candidate-scoring path for strict reproduction.

Workflow

  1. Read these bundled references from this skill directory:
    • references/preprocessor.md for Stage-0 reference crop cleanup.
    • references/orchestrator-claude.md for loop wiring and stop conditions. references/orchestrator-codex.md ships alongside it as the diff baseline for the port and must not be followed at runtime.
    • references/drawer.md for the Drawer instructions.
    • references/reviewer.md for the Reviewer instructions.
    • references/aesthetic-library.md for the L2 convention library.
    • references/three-d-prompting.md only when the 3D insert gate is enabled.
  2. Preserve the uploaded reference as inputs/reference_raw.png, then run the reference preprocessor to write inputs/reference_clean.png, inputs/reference_crop_check.png, and inputs/reference_crop_report.md. It is dispatched as a general-purpose subagent — there is no named preprocessor role — per the Stage 0 section of references/orchestrator-claude.md. Skip it only when the runner already staged those three files.
  3. Echo the parsed data structure before drawing. If the user explicitly asked you to make up data or proceed without confirmation, record that in data_echo.md and continue; otherwise ask for confirmation.
  4. When the 3D insert gate is enabled, stage references/three-d-prompting.md plus references/three-d/ beside the normal prompts. 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 scripts/score_3d_candidates.py; do not use that scorer for ordinary style transfer. 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. Always stage scripts/figannot.py; it is the deterministic operator for building audit composites and drawing Reviewer boxes.
  5. The top-level agent follows references/orchestrator-claude.md and dispatches figmirror-drawer for each iter. Every Drawer prompt includes the exact trace line Iter: <N> with the current non-negative decimal iteration. The Drawer writes figure_iter<N>.py, img_iter<N>.png, notes_iter<N>.md, and floor_selfcheck_iter<N>.txt; the Orchestrator verifies those files before any Reviewer handoff.
  6. Stage audit_view_<N>, run scripts/figannot.py compose to create composite.png and review_prompt.txt, fit the staged near views with scripts/fit_images.py, and dispatch figmirror-reviewer as described in references/orchestrator-claude.md. List composite.png, reference_clean.png, and draft_fullres.png as an ordered set of absolute paths for the Reviewer to Read exactly once each; append the optional strict-3D accepted control as a fourth entry when present. The Reviewer sees only those images plus the aesthetic library, fixed diagnostics, and optional 3D insert, then returns strict JSON without re-reading an image it has already opened, and without reading review/Drawer history.
  7. Run scripts/figannot.py review-decision after every Reviewer result. A clean result before the run reaches min_reviews total valid Reviewer calls starts another Reviewer on the same immutable draft with no Drawer in between. Actionable feedback permits scripts/figannot.py draw --max-iters <max_iters> and another Drawer when below the hard max_iters cap. The helper must succeed before spawning that Drawer. A missing, malformed, empty, or inconsistent Reviewer result returns retry_reviewer: it does not count, never triggers Drawer, and starts one fresh Reviewer on the same immutable draft. A second consecutive invalid result fails closed. Pass both --min-reviews and --max-iters to every review-decision invocation, plus --strict-3d when the router selected three-d/strict-reproduction.md.
  8. Stop when the deterministic gate returns ship: the quality floor passed, the verdict is clean, and at least min_reviews valid Reviewer calls have completed across the run. Default max_iters=5; it is always a hard Drawer cap. If the gate returns stop_at_cap, do not draw again: select under the existing hard-cap policy and finalize an existing iteration.
  9. Write final figure.py, figure.png, figure.pdf, output.png, floor_selfcheck_final.txt, selection.md, process.md, and status.json. output.png is the evaluator-facing PNG and may be identical to figure.png.

Artifact Layout

text
<workdir>/
  inputs/
    reference_raw.png
    reference_clean.png
    reference_crop_check.png
    reference_crop_report.md
    data.txt
    aesthetic-library.md
  prompts/
    preprocessor.md
    drawer.md
    reviewer.md
    orchestrator-claude.md
    aesthetic-library.md
    three-d-prompting.md  # router, only for 3D runs
    three-d/              # mode files and routed 3D modules, only for 3D runs
  tools/
    figannot.py
    fit_images.py
    score_3d_candidates.py  # optional for strict 3D candidate diagnosis
  figure_iter0.py
  img_iter0.png
  notes_iter0.md
  floor_selfcheck_iter0.txt
  review_attempts/
    attempt_000.json
    attempt_001.json
  audit_view_0/
    reference_clean.png
    draft_fullres.png
    composite.png
    composite_meta.json
    review_prompt.txt
    aesthetic-library.md
    three-d-prompting.md  # router, only for 3D runs
    three-d/              # mode files and routed 3D modules, only for 3D runs
  review_feedback_0/
    review.json
    annotated.png
    notes.md
  audit_iter0.json
  image_fit_0.json
  audit_iter0.stderr
  ...
  figure.py
  figure.png
  figure.pdf
  output.png
  floor_selfcheck_final.txt
  selection.md
  process.md
  status.json

Non-Negotiables

  • The reference is a style anchor, not a layout-number anchor — but the chart type and signature motifs ARE style, not layout numbers. Reproduce them.
  • Preserve the source's signature visual motifs — chart type, colorbars, shaded/error bands, error bars, streamline fields, stacked/offset construction, insets. Dropping or flattening one is a fidelity failure, not a simplification. Only the data values and labels change to match data.txt.
  • inputs/reference_raw.png is the preserved upload; inputs/reference_clean.png is the Stage-0 crop used for L1 measurement.
  • Every visual choice must be grounded in L1 (reference image) or L2 (references/aesthetic-library.md); L3 opinion is disallowed.
  • Do not modify a property on the Reviewer preserve list outside its L1/L2 class.
  • Do not expose data.txt or source code to the Reviewer audit view.
  • Keep the final script self-contained and set plt.rcParams["pdf.fonttype"] = 42.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Figmirror」では何ができますか?

FigMirror mirrors the visual style of a top-conference paper figure (NeurIPS / ICML / ICLR / Nature family) onto the user's own data. Takes dirty data plus a reference figure screenshot (cropped or uncropped), preprocesses the reference crop, runs a Drawer/Reviewer loop, and outputs a camera-ready PDF plus a self-contained matplotlib script with an inline DATA SECTOR.

TypingMindでFigmirrorを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Figmirrorはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFigmirrorをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/VILA-Lab/FigMirror/tree/main/.claude/skills/figmirrorを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Figmirrorを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Figmirrorは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFigmirrorを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Figmirror」は無料ですか?

VILA-LabがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇