CommunityImagengithub.com

paper-figure

学术插图:为期刊论文、学位论文、开题报告、中期报告、答辩幻灯片规划并绘制方法示意图、流程图、架构图、技术路线图、状态图、场景示意图与统计图。中英文均适用。采用检索—规划—风格—出图—检查五步:从本领域参考图库检索范例,写出图面描述,论文与其他严谨内容用 matplotlib、MATLAB、Origin 出数据图,用 TikZ 或 PowerPoint 原生形状出流程图与示意图;幻灯片等展示性材料的概念图与场景图可调用生图模型自动出图(图中不带字),论文图中的设备图标在出版社与学校允许时也可由其生成,再对照原文逐轮检查。也负责建设与维护参考图库。当用户要求画图、改图、出数据图或流程图、重画或美化已有的图、出概念图、检查图、整理参考图库时使用;凡要写画图脚本或改图,先调用本技能。

¿Qué es paper-figure?

paper-figure is a Claude Code agent skill that 学术插图:为期刊论文、学位论文、开题报告、中期报告、答辩幻灯片规划并绘制方法示意图、流程图、架构图、技术路线图、状态图、场景示意图与统计图。中英文均适用。采用检索—规划—风格—出图—检查五步:从本领域参考图库检索范例,写出图面描述,论文与其他严谨内容用 matplotlib、MATLAB、Origin 出数据图,用 TikZ 或 PowerPoint 原生形状出流程图与示意图;幻灯片等展示性材料的概念图与场景图可调用生图模型自动出图(图中不带字),论文图中的设备图标在出版社与学校允许时也可由其生成,再对照原文逐轮检查。也负责建设与维护参考图库。当用户要求画图、改图、出数据图或流程图、重画或美化已有的图、出概念图、检查图、整理参考图库时使用;凡要写画图脚本或改图,先调用本技能。.

Compatible con✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YANGXI0528/research-paper-skills/tree/HEAD/paper-figure

Installed? Explore more Imagen skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Academic Illustration

Transform the methods, processes, or data in a paper into figures that are faithful to the original text, immediately understandable, and stylistically consistent. Figures must not contain content absent from the text; text and labels must be accurate; final versions should be vector graphics.

Intention

This section lays out the author's core requirements; retain the original meaning when simplifying the skill in the future.

  • Responsible for all types of research figures: produce data charts using Python plotting libraries, MATLAB, or Origin; create flowcharts with native PowerPoint shapes or LaTeX vector drawing; when necessary, invoke generative AI models for conceptual figures and icons.
  • A figure is the face of a paper—reviewers and committee members often look at the figures first: both data charts and diagrams must be aesthetically pleasing and high-quality; correctness takes precedence over beauty—never sacrifice content or meaning for appearance. Journal papers and degree theses share the same quality standard.
  • Data charts: beautiful, high-quality, with sufficient discriminability to support the conclusions in the main text; figure font size one point smaller than the body text; no white space on the upper/lower bounds of axes; evenly spaced tick intervals.
  • Flowcharts and diagrams: clearly explain the objects or processes being depicted; use icons and symbols to convey concepts whenever possible; meanings must be unambiguous; paper figures are information-dense and not loose; slide figures have one visual focus per page.
  • All figures in the document use the same color scheme: diagrams and data charts share one palette; the same method, state, or object consistently uses the same color across all figures; when the first figure is finalized, write the "Project Figure Convention" in the figure registry.
  • Each figure must have a clear purpose, visual focus, and hierarchy of elements: elements carrying the conclusion are the most prominent; object outlines, icons, and other auxiliary elements should be simplified and not distract from the main message. Aesthetics come from element composition, visual focus, color, and figure type, not from excessive detail.
  • The reference figure library is used to draw inspiration for layouts and styles.

This skill's workflow is adapted from the five-agent framework of PaperBanana (Zhu et al., 2026, arXiv:2601.23265, CC BY 4.0); attribution is given in NOTICE.md. Differences from the original: retrieval uses a self-built figure library for the domain; paper figures are drawn by code, generative models are only used for presentation materials and icons; and a finalization step is added.

Configuration and Modules

Before starting work, read config/profile.md in the skill root directory (the parent of all skill directories), then read packs/<module>/paper-figure.md for each enabled module listed there; skip if the file does not exist. If profile.md does not exist, work according to general rules and prompt the user to configure. Modules supplement this skill according to the table below; see packs/README.md for mechanisms, priorities, and where to put new knowledge.

Section in ModuleUsed In
"Figure Library Tags"① Retrieval: vocabulary of tags for filtering examples by domain
"Domain Style"③ Styling: domain-specific visual conventions
"Icons"② Planning: list and drawing method of icons for domain objects
"Domain Facts"② Planning, ⑤ Critique & AI generation route: checkpoints for equipment and processes in scenarios
"Examples"Domain-specific examples of core rules, used according to the core file and section noted in the example

Prerequisites

For first-time use, switching machines, or missing dependencies: based on the task's route, consult this skill's deployment instructions and inform the user which software and Python packages are needed, and whether an API is required. You are not required to install all six routes. When selecting Option A (auto image generation), first run scripts/imagegen.py status; if configuration is missing, provide the path to the external JSON file and the four required fields—do not ask the user to paste keys in the chat. Do not use paid generation to bypass local configuration checks.

  • Manuscript workspace (see paper-writing): figure content must be based on the main text; terms and symbols follow the glossary and notation. For slide figures, regardless of whether a manuscript workspace exists, working records and source files are placed in the figs/ subdirectory of the slide directory (see next section).
  • Reference figure library: the directory is specified in the skill root directory's config/profile.md under figure_library (the project's CLAUDE.md can specify another location). Structure, database creation, and retrieval are described in references/library.md; the script scripts/figlib.py handles operations. If the library is empty, retrieval may be skipped, but the user must be informed.

Paper Figures vs. Slide Figures

Both types follow the same five-step workflow, the same set of rendering routes and scripts, and share the same correctness and semantics standards: faithfulness to the source text, connection semantics, domain facts, figure meaning, color semantics, visual hierarchy, and icon meaning and perspective. All other requirements are separated by the "purpose" field in the working record; they are not mixed:

ItemPaper FiguresSlide Figures
Size, font, formatThis skill: one point smaller than body text; vector PDF, 1.5 pt margins all around; journal figures follow references/journal-specs.mdpaper-slides references/design.md "Figures": text in figures no smaller than 16 pt; PNG or EMF; size determined by content area
Density and layoutInformation-dense, not loose (references/style-guide.md "Information Density")One visual focus and one piece of evidence per page (paper-slides references/visuals.md section 1, content.md section 2)
Style and AI-generated contentGenerative models produce only icons (references/style-guide.md "Icons")Follow paper-slides references/design.md "Remove AI feel"; main visuals and scene illustrations may use generative models (visuals.md section 5)
Working records and storagefigures/briefs/, figures/drafts/; register in the figure registry figures/README.mdIn the current slide directory's figs/; recorded in the presentation's production log, not in the paper's figure registry

When making a slide version of a paper figure, produce a separate figure: content follows the working record of the paper figure, redrawn according to slide standards; after any content change to the paper figure, synchronously check the slide version.

Input

Start a working record (assets/figure-brief.md) for each figure. For paper figures, save as figures/briefs/<tag>.md (remove the fig: prefix from the tag; follow project-specific conventions if any) and register in the figure registry figures/README.md; for slide figures, save and record as described in the previous section. Figure content must be based on the argument structure document (e.g., storyline) and the approved chapter/section. If the main text conflicts with this, first report the conflict to the user—do not draw based on old text. Clearly include:

  • Function: what question does this figure answer in the overall argument? What should the reader remember after viewing it?
  • Visual focus: what is the main subject (the element carrying the conclusion)? What are the supporting and auxiliary elements (references/style-guide.md "Visual Hierarchy")?
  • Source text: the corresponding body text paragraphs (method description, data table).
  • Caption: the proposed figure caption.
  • Type: flowchart/pipeline / system architecture / technical roadmap / state transition / scenario illustration / geometric construction / statistical chart.
  • Constraints: language (Chinese or English labels), target layout (single column, double column, slide), aspect ratio, color restrictions (school template, journal requirements, black-and-white printing).

Five-Step Workflow

Detailed instructions for each step are in references/steps.md.

① Retrieve (Retriever)

Select 3–10 examples from the figure library: figure type takes priority over domain—figures of the same type but different domains are more informative than figures of the same domain but different types. Technical roadmaps are rare in journal papers; when drawing one, instead select examples of system architectures or flowcharts and adapt their zoning, colors, and connections. First narrow candidates with python scripts/figlib.py list --type <type> [--domain <domain>] [--q <keyword>], then generate thumbnail collages with figlib.py sheet <id...>, review each image, choose the selected ones, and note what is borrowed from each (layout, zoning, connection style, colors).

② Plan (Planner)

Based on the source text, caption, and examples, write a figure description: what each element is, what text it contains, where it is placed, what it connects to, and what line styles and arrowheads are used; background, colors, line widths, and icons should also be specified. The more specific the description, the more accurate the output. Design objects, icons, labels, density, and layout according to references/figure-checklist.md; step ⑤ uses the same checklist for critique. Only include content present in the source text; if simplification is needed, clearly note what was simplified in the working record.

③ Style (Stylist)

Polish the figure description according to the style guides: the base guide references/style-guide.md, plus any "Domain Style" from enabled modules, domain- or publisher-specific guides summarized from the library (style-guides/ in the library; when submitting to IEEE or Elsevier, read the corresponding IEEE.md or Elsevier.md if present), and finally project constraints (school template, journal, black-and-white printing, Chinese fonts). Do not force uniformity on already aesthetic descriptions; only change style, not content or structure.

④ Visualize (Visualizer)

Select the rendering route based on the figure's nature; see references/rendering.md:

RouteApplicationProcedure
A Generative AIPresentation materials and icons: conceptual figures, scene illustrations, main visuals for slides and covers; equipment icons in paper figures (when permitted by the publisher and school)Use scripts/imagegen.py to generate 2–4 candidates; review each image, revise prompts, and regenerate if needed; figures must contain no text. Scope, prompts, and API configuration are in rendering.md Route A
B matplotlibStatistical charts, data-driven geometric constructionWrite a Python script; output PDF/SVG
C MATLABSame as above, or when data and simulation results are in MATLABWrite a MATLAB script; run with matlab -batch (obtain user consent before running); output PDF using exportgraphics
D TikZFinal-version flowcharts, architecture diagrams, state diagrams, technical roadmapsWrite TikZ code; uses the same font as the body text
E OriginStatistical charts, fitting charts; when data and analysis are already in an Origin project, or when collaborators/journals require OriginWrite a Python script to drive the local Origin installation via originpro (scripts/origintools.py); output PDF/PNG
F PowerPoint Native ShapesFlowcharts, architecture diagrams, technical roadmaps; figures that the author will later edit manually in PowerPointSet the page to the final figure size; draw shapes and connections using paper-slides' slidekit; export vector PDF from PowerPoint; crop with figtools.py crop

For figures in the body of papers, theses, proposals, progress reports, technical reports, and any data charts, result figures, mechanism diagrams, analytical geometry figures, or formula-generated plots, use only routes B, C, D, E, or F—do not use generative AI for the entire figure. Icons within such figures are selected per references/style-guide.md "Icons". Figures that must be geometrically accurate in slides (architecture, flow, data flow) are drawn with native shapes (paper-slides references/visuals.md). For Chinese figures, use Song Ti for Chinese text, Times New Roman for Western text, numbers, and variables, consistently across all routes; follow template or journal specifications otherwise.

⑤ Critique (Critic)

After obtaining the figure (rendered by code or candidate from generative AI), check it item by item against the source text, caption, and figure description. Below are key points; the full checklist is in references/steps.md step ⑤:

  • Content: consistent with the source text; no missing critical components; no fabricated content; examples (formulas, values, labels) are correct.
  • Text: no typos, garbled characters, meaningless text; labels match the glossary; the caption is not part of the figure itself; any residual text or garbled characters in AI-generated figures must be regenerated or cropped out.
  • Presentation: flow is clear; layout is not crowded; connections have few crossings; font size is readable at the target dimension; remove redundant text legends.
  • Supporting conclusion (data charts): which claim in the main text does this figure support? Does the displayed quantity have sufficient discriminability? Do not plot quantities that show no discernible difference (figure-checklist.md section 9).
  • Figure meaning: without reading the body text, can the viewer identify the object, what connections represent, and which conclusion the figure supports? Symbols, arrows, and leaders each have a definite meaning (figure-checklist.md section 4).
  • Domain facts: equipment positions, orientations, actions, and processes in the scene are consistent; AI-generated figures must be checked against the process checklist item by item; regenerate if incorrect (rendering.md Route A step 4).
  • Color semantics: every color change has a stated meaning; legend items are visually distinguishable (figure-checklist.md section 8).
  • Hierarchy: the main subject is most prominent; auxiliary elements are simplified and do not distract (figure-checklist.md section 7).
  • Aesthetics and density: aesthetically pleasing; paper figures are not loose; boxes have content, not just names (figure-checklist.md section 7).
  • Icons: meaning is definite, consistent across the entire manuscript, perspective is correct, sources are documented, and they comply with requirements of the target journal and school (figure-checklist.md section 4).
  • Check each item in references/figure-checklist.md (axes, legends, occlusion, geometry and semantics of diagrams, overlapping data, fonts, whitespace density, and aesthetics). For code-generated figures, use scripts/figtools.py to check for overlaps, verify fonts and whitespace, then still review the rendered image.

Write critique comments and a revised figure description (edit the existing description, do not rewrite from scratch), then proceed to the next iteration. Typically 2–3 rounds; stop when satisfactory or no changes are needed. Record each round in the working record.

Independent check: for figures that reviewers or committee members are certain to examine (technical roadmap, overall architecture, core methodology figure), before finalization, submit the figure to a sub-agent who did not participate in drawing it for a fresh review using the same checklist. Provide only the rendered figure, the "Input" section of the working record, and the location of the source text—not the iteration history. The procedure is in ~/.claude/skills/paper-critique/references/independent-check.md. Address all valid comments and record them in the working record.

Finalization

  • Paper body: create diagrams using route D or F, data charts using route B, C, or E, all as vector graphics; labels use the body text font; terms and symbols are consistent across the manuscript. Do not use generative AI for the entire figure; if generative icons are used, document their source as per references/style-guide.md "Icons".
  • Slide figures: finalize per paper-slides standards (references/design.md "Figures"); AI-generated figures may be used directly after passing step ⑤; labels are overlaid as text boxes on the slide.
  • Figure captions and notes should only describe content visible in the figure; statistical charts must state sample size/seed count and interval type (references/plots.md).
  • For journal submissions, check width, font size, font, format, and resolution against references/journal-specs.md.
  • When the first figure is finalized, fill in the "Project Figure Convention" section in figures/README.md (see references/style-guide.md section 4); all subsequent figures follow this convention.
  • After finalization, record in the working record: the examples used, iteration count, rendering route, and source file location; if a generative AI model was used, note the model, selected file, and record.json location; update the registry with the status and source file location (for slide figures, record in the production log).

Rules

  • Figure content is based on the source text; do not add modules, data, or conclusions not present in the text for the sake of appearance.
  • Data in statistical charts must be real data provided by the user or from the project—do not fabricate any number; show illustrative values with a "schematic" label. Data charts strictly correspond to data; diagrams prioritize readability and understanding: manually place shapes in method and theory diagrams; do not perform parameter searches, label numeric scales, or adjust parameters to make calculations "match"; ensure only qualitative consistency with the main text; precise calculations are only used in result figures.
  • Fonts must be consistent with the body text (default Times New Roman for English text and math characters); figure font size is one point smaller than the body text for paper figures; for slide figures, follow paper-slides references/design.md "Figures"; check axes, legends, occlusion, and whitespace against references/figure-checklist.md item by item.
  • After every figure revision, view the rendered image—do not judge based on parameters alone. When the user identifies an issue in one figure, inspect all figures for similar problems.
  • Generative AI models are only for conceptual figures and scene illustrations in presentation materials (slides, etc.) and for icons in paper figures (when permitted by the target journal and school; see references/style-guide.md "Icons"); do not generate any data, results, or mechanisms, and do not produce entire figures for papers or other rigorous content; figures must contain no text; rules for prompts and keys are in references/rendering.md Route A.
  • Define connection semantics before deciding on the drawing style; use arrows only when the source text specifies a direction; do not use arrows for "same" or "corresponds to" relationships.
  • For diagrams with explicit geometric constraints (site layout, paths, area divisions), generate them with code based on paper parameters, consistent with the original figure in the paper, and keep them editable; generative AI models should only produce presentation images that do not require geometric accuracy.
  • A figure is the face of a paper; journal papers and degree theses share the same quality requirements: correct, aesthetic, and information-rich; they differ only in format specifications, number of figures, and overall consistency (figure-checklist.md section 10).
  • Figures in the reference library are copyrighted by their original authors; use them only as local references; do not copy them into the manuscript or distribute them publicly.
  • Obtain user consent before running MATLAB, Origin, or launching a browser or other tools.

Files

FilePurpose
references/steps.mdDetailed instructions for the five steps (diagrams and statistical charts have separate sets)
references/style-guide.mdBase style guide (including information density and icon sourcing/usage); method for deriving domain-specific guides from the library
references/library.mdReference figure library: structure, metadata, building, retrieval, maintenance
references/rendering.mdSix rendering routes, scope and prompt writing for generative AI models, fonts and sizes, export, grayscale check
references/plots.mdStatistical charts and experimental result figures: chart type selection, replication, uncertainty, coordinates, colors, legends, overlapping data, figure notes
references/figure-checklist.mdShared checklist for design and critique: axes, legends, occlusion, schematic geometry and icons, overlapping data, fonts and values, whitespace density and aesthetics, color semantics, discriminability and support for conclusions in data charts, requirements by document type
references/journal-specs.mdFigure specifications and common practices for engineering journals (IEEE, Elsevier, Springer, Taylor & Francis, SAGE, Wiley, MDPI) verified against official websites as of 2026-10-13
assets/figure-brief.mdTemplate for a single figure's working record
scripts/figlib.pyFigure library script: extract images from PDFs, filter by list, generate thumbnail collages, statistics
scripts/figtools.pymatplotlib output helper: font settings (Times New Roman with CJK fallback), formula pre-parsing, crop by colored pixels, legend below axes, overlap detection; CLI check verifies PDF fonts and whitespace, crop crops an entire-page PDF by content
scripts/imagegen.pyGenerative AI image generation (Route A): construct prompts, call API to generate candidate images, write records; if the API is not configured, only write prompts. Keys are read from environment variables or a configuration file outside the repository
scripts/origintools.pyOrigin output helper: start/exit Origin, set fonts, sizes, and line widths for final dimensions, position legends, export and crop by colored pixels
NOTICE.mdAttribution and license

Scripts run in the conda environment specified by python_env in the skill root directory's config/profile.md (default env_paper_tools): conda run -n <python_env> python -I <script> ....

Skills relacionados