Design, implement, revise, and validate publication-quality scientific figures from references, existing plotting code, and real project data. Trace every figure to source code and inputs; deconstruct reference figures; plan the scientific story and multi-panel structure; build complex model architecture and statistical panels; enforce a consistent visual system; and render-verify PDF/SVG/PNG outputs. Use for 科研配图, 论文配图, 找图的源代码, 参考图复刻与改造, 模型框架图, 多面板主图, figure redesign, or standardizing a research-figure process.
Create scientifically faithful, publication-quality figures through a repeatable process from evidence inventory to final render QA.
This skill governs the research-figure process only. It does not include anonymization, data perturbation, synthetic replacement, identifier removal, or privacy guarantees. If the user separately requests those operations, treat them as an additional workflow with an explicit data-release contract; do not silently mix them into ordinary scientific plotting.
Read the following references before acting:
references/research-figure-process.md for the phase-by-phase workflow.references/reference-deconstruction.md before imitating or adapting a
reference figure.references/architecture-and-multipanel-design.md for model diagrams or
compound figures.references/scientific-visual-qa.md before final generation and delivery.Use the PDF skill whenever a PDF is read, created, or reviewed. Use the spreadsheets skill when the main source is an XLSX workbook requiring inspection or transformation.
Use this skill when the user asks to:
Do not use it for generic illustration, ordinary photo editing, UI design, or privacy/anonymization as the primary objective.
Discover these from the project before asking the user:
Ask only when a missing choice materially changes the scientific story, such as which result is primary or whether a panel is schematic versus measured.
Run:
python scripts/inspect_figure_project.py --root "<project-root>" --output "<work-dir>/source-map.md"Manually verify important mappings. Filename similarity is only a candidate;
imports, data reads, savefig paths, and visual comparison are stronger
evidence.
Create or update a figure manifest based on
assets/figure_manifest.example.json. Every requested figure records:
For tabular medical sources that match the FigMirror clinical-cbc contract,
run figmirror.py render-data-study before candidate finalization. Treat its
data_profile.json, analysis_summary.csv, and data_binding.json as derived
evidence, not replacements for the read-only source workbook. Never infer
units, reference intervals, clinical thresholds, or repeated-person identity
when the workbook does not provide them.
Follow references/reference-deconstruction.md.
For each reference, document:
Do not copy labels, biological content, or decorative forms that do not serve the project's claim.
Before coding, define:
If the figure cannot be explained as a short evidence chain, simplify or reorder it before adding detail.
Reuse and refactor existing plotting code rather than retyping calculations. Read model source code when drawing architecture. Use the actual project data unless the user explicitly asks for a schematic prototype.
Preserve:
Never substitute arbitrary random data in a final scientific result figure. Random data is acceptable only for a clearly labeled layout prototype.
Follow references/architecture-and-multipanel-design.md.
The primary architecture panel must expose the real computation. For a Transformer, show token/input construction, positional information, LayerNorm, multi-head attention, residual Add/Norm, feed-forward layers, repeat count, shapes when known, and output heads. For other models, show the equivalent actual modules rather than forcing a Transformer template.
Tie architecture contributions to measured evidence when appropriate:
Use one typography system, one panel-letter convention, stable margins,
consistent entity colors, and a controlled palette. Keep measured data plots
vector-native through Matplotlib/SVG/PDF. For new schematics, use the current
FigMirror default img2ppt_hybrid: audit the AI source before conversion,
rebuild scientific text, arrows, frames, and rule-based nodes as native
PowerPoint objects, replace declared complex objects with real text-free image
assets, then run post-conversion scientific and visual review. Choose
high_resolution_raster when a raster-first image is the explicit delivery
fit, and direct_vector when the venue or collaboration contract requires live
vector objects. These routes change the editable medium, not the scientific
story or the obligation to inspect final pixels.
Retain real names and units when scientifically relevant. Do not remove or generalize them merely for visual tidiness.
Follow references/scientific-visual-qa.md.
Run:
python scripts/validate_research_figures.py `
--pdf "<output.pdf>" `
--render-dir "<work-dir>/rendered" `
--expected-pages <n> `
--report "<output-dir>/FIGURE_QA.json"Visually inspect every page or figure. Inspect the densest architecture figure and at least one data-heavy figure at full resolution.
Revise until there are no clipped labels, overlapping legends, inconsistent units, missing panel letters, empty groups, misleading scales, unreadable references, or rasterization defects.
Provide the artifacts appropriate to the request:
high_resolution_raster was explicitly selected;direct_vector was explicitly selected;Keep earlier variants unless the user explicitly asks to replace them.
The task is complete only when:
f7e3dab
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.