CommunityImagegithub.com

paper-figure-craft

Draw publication-grade systems, computer architecture, EDA, and AI paper figures via code without AI-generated diagram tells. Covers 5-step compilation & linting synergy with figgenie-paper-diagram, role separation across single-column motivation figures (paradigm-contrast and case-trajectory-convergence archetypes), heterogeneous visual containers, knockout banners and italic typographic micro-grammar, a 4-layer mineral-ink palette shared across SVG and Matplotlib, a 5-category vector micro-iconography system (domain thumbnails, binder-ring fact ledgers, role-badged agents & hypothesis speech bubbles, tool wrenches, colored parameter swatches), and classic IEEE/ACM four-spine evaluation charts. Use when planning, drawing, critiquing, or restyling paper schematics or experimental plots.

What is paper-figure-craft?

paper-figure-craft is a Claude Code agent skill that draw publication-grade systems, computer architecture, EDA, and AI paper figures via code without AI-generated diagram tells. Covers 5-step compilation & linting synergy with figgenie-paper-diagram, role separation across single-column motivation figures (paradigm-contrast and case-trajectory-convergence archetypes), heterogeneous visual containers, knockout banners and italic typographic micro-grammar, a 4-layer mineral-ink palette shared across SVG and Matplotlib, a 5-category vector micro-iconography system (domain thumbnails, binder-ring fact ledgers, role-badged agents & hypothesis speech bubbles, tool wrenches, colored parameter swatches), and classic IEEE/ACM four-spine evaluation charts. Use when planning, drawing, critiquing, or restyling paper schematics or experimental plots.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lllbbbyyy/paper-craft-skills/tree/HEAD/skills/paper-figure-craft

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

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Paper Figure Craft

Create dense, crisp, publication-grade research figures in code (exact-point SVG for schematics and classic four-spine Matplotlib for quantitative evaluation charts) that match top systems, architecture, EDA, and AI venues without generic AI-generated flowchart tells. The Chinese equivalent is SKILL.zh-CN.md.

Core Workflow

  1. Combine Toolchain Skills & Split Figure Roles (1 Figure = 1 Job, Heterogeneous Containers)

    • Synergize with figgenie-paper-diagram when installed: Reference figgenie-paper-diagram venue exemplars for information density, emit semantic attributes (data-kind, data-role, data-symbol="tex"), and run the 5-step pipeline: tex_fill.py --check (MathJax inline vector <path>) $\to$ lint.py (containment/overlap checks) $\to$ 4× PNG visual check $\to$ svg_to_pdf.py / export_pdf.py (zero-rescale vector PDF) $\to$ svg2pptx.py (editable slides). When figgenie-paper-diagram is absent, use templates/svg_diagram_scaffold.py + templates/svg_to_pdf.py directly.
    • Motivation (Fig. 1, single-column 244 × 152–185 pt, Page 1 top-right): Pick the archetype fitting your thesis:
      • Archetype A (Paradigm Contrast): Top (a) contrasts 2–3 prior paradigm cards (mini trend curves + + strength / - limitation) + interlocking challenge chevron bar C1–C3; bottom (b) previews your 3-step solution with a 1-to-1 column-aligned chevron_bar.
      • Archetype B (Motivating Case Trajectory & Convergence): (a) Concrete benchmark/hardware setup, (b) single-line step trajectory E1..Ek highlighting rapid overall convergence, and (c) convergence curve paired with explicit colored square swatches (swatch_legend_row: DF: WS / OS, GLB: 2M / 8M / 32M).
    • Never put heterogeneous content in identical boxes: Differentiate static setups, sequential step rows, directed edges, verified fact ledgers, and agent hypotheses visually, keeping copy to crisp single-line phrases.
    • System Overview (Fig. 2, double-column 504 × 180–192 pt): Closed-loop Steps 1–6 with numbered black circle badges, fast-bypass vs. on-demand routing, and standalone output artifact.
    • Worked Mechanism / Tool Loop (Fig. 3, 244 pt or 504 × 146–160 pt): Concrete numerical walkthroughs (with embedded candidate leaderboard mini-tables highlighting Pick and mini scatter plots) or binder-ring verified ledger $\to$ agent hypothesis speech bubble $\to$ sampling tool strip.
    • Quantitative Evaluation Charts (Figs. 4–6, Matplotlib vector PDF/SVG): Dual-row search trajectories, grouped hatched bars, stacked runtime breakdowns, and Pareto scatter plots.
  2. Enforce Layout Micro-Grammar, 4-Layer Palette Hierarchy & 5-Category Micro-Iconography Read references/schematic-grammar.en.md (or schematic-grammar.zh-CN.md) and build on templates/svg_diagram_scaffold.py + templates/plot_style.py:

    • Exact-point interlocking grid & typography: Fix W = 504 pt (\textwidth) or 244 pt (\columnwidth) with 1 pt = 1 SVG unit; 3–4 pt outer margins, 4.5–5.5 pt inter-stage gaps bridged by outlined block_arrow_h, 3.5–4 pt inner padding. Use centered white knockout banners (stage_container) or light dashed outline_zone + 2.8 pt left_stripe_card. Reserve Italics for [Bracketed Role Tags], branch conditions, descriptor fields, and 1-line physical mechanisms, keeping font weight uniform across wrapped list lines.
    • 4-layer mineral-ink palette (plot_style.py shared across SVG & Matplotlib): Layer 1 structural ink #18181B + #3F4752 / #525E6B greys + #C9D1DB block arrows; Layer 2 muted architectural stage grounds (#F4ECDC, #DAE8F4, #DDE2E8, #F3DFCE, #DCEAD7); Layer 3 crisp #FFFFFF foreground cards + #E2E7EE tabs (#E6EFEA mint for winning Pick rows); Layer 4 high-contrast accents (#1B4965 Navy, #A61C24 Crimson, #C46D1F Ochre, #2C6E58 Sage) capped under <10% area—never flooding large container backgrounds.
    • 5-category vector micro-iconography: (1) 13.5×13.5 pt hardware/workload thumbnails (icon_systolic, icon_noc, icon_sparse); (2) dataset drums (icon_drum) & left-edge notebook binder_rings signaling verified facts; (3) role-badged agents (icon_agent: magnifying glass for diagnosis vs. sampling grid for experiment) & pointed speech_bubble polygons for testable hypotheses; (4) icon_wrench & icon_stacked_docs for standalone artifacts; (5) icon_refresh_loop & swatch_legend_row.
    • Distinguish nodes vs. directed edges & state explicit units: Draw interfaces/filters as pill-labeled arrows (directed_edge_with_pill) and write 0 LLM Calls, 0 Sim Calls, 9.2s (3.6× faster).
  3. Enforce Classic IEEE/ACM Quantitative Chart Conventions Read references/eval-charts-ieee.en.md and start from templates/ieee_eval_plot_scaffold.py:

    • Four-spine box + inward ticks + Arimo + STIX Type-42 fonts: Enable all four spines (0.8 pt), inward ticks, and pdf.fonttype = 42.
    • Grayscale-safe hatches & dual step-hold trajectories: Hatch baseline bars ('//', '\\\\', '..'), render Ours in solid primary accent with direct numeric labels, and plot dual wall-clock / evaluation-count trajectories via ax.step(..., where='post'). Plot only universal baselines in grouped cross-domain bar charts.
  4. Render, Lint, and Visually Inspect Every Figure via Screenshot

    • Confirm >= 3 pt inline math clearance, baseline <tspan dy> resets, and 1:1 terminology sync with manuscript prose.
    • Visually inspect high-DPI PNG/PDF renders to eliminate reference-line label collisions, cramped text, or legend overlaps.

Related Skills