Skip to content
OpenAgentSkill
Browsing is open · Catalog captured 2026-11-21 · Automatic updates and account services are paused.
Design & UI

ci-mockup-figure

Create space-efficient figures for papers and proposals. HTML mockups for systems, dashboards, and timelines; TikZ or skia-canvas for abstract diagrams with arrow routing. Covers tool selection, design, capture, and LaTeX insertion. The primary goal is maximizing information per page — every figure must earn its space.

yzhao062 · Static checks on file

Installation

Read the source and dependencies before running a command. Copying does not install or execute anything.

npx skills add yzhao062/anywhere-agents --skill ci-mockup-figure

About this skill


name: ci-mockup-figure description: Create space-efficient figures for papers and proposals. HTML mockups for systems, dashboards, and timelines; TikZ or skia-canvas for abstract diagrams with arrow routing. Covers tool selection, design, capture, and LaTeX insertion. The primary goal is maximizing information per page — every figure must earn its space.

CI Mockup Figure

Overview

The goal is space-efficient, information-dense figures that communicate a system's design, a method's pipeline, or an architectural flowchart in minimal page area. Three paths depending on figure type:

  • HTML mockup path (Phases 1-4 below): for UI mockups, dashboards, timelines, and any figure where content is rectangular with no cross-node arrows. Build interactive HTML, capture screenshots, insert into LaTeX.
  • README / Markdown hero path (README / Markdown Target section): same HTML build phase, but capture via headless Chrome to a PNG and embed it as a Markdown image referencing assets/fig.png. Requires larger type, higher content density, and one dominant focal element -- the viewer scales the image down to column width.
  • Abstract figure path (Abstract Figure Toolchain section): for architecture overviews, dependency topologies, and any figure needing arrow routing between non-adjacent nodes. Use TikZ, skia-canvas, or Illustrator ExtendScript.

Every figure must pass the space test: does this figure communicate more per square inch than the text it displaces? If a full-width figure takes half a page but only says "A → B → C → D", it fails. A wrapfigure showing an interactive prototype with search results, graph nodes, and real data labels passes because it communicates system design, data model, and UX simultaneously.

This skill works for any document where figures need to communicate design or methodology credibly: research papers (method overview, architecture diagrams, pipeline flowcharts), proposals (NSF, NIH, DOE, etc.), technical reports, or demo writeups. It is especially effective when the figure needs to show multi-component structure, data flow, or step-by-step methodology and reviewers evaluate whether the design is credible and well-conceived.

HTML mockups vs TikZ/LaTeX diagrams

HTML and TikZ each have a clear strength. The deciding factor is whether the figure needs arrow routing between non-adjacent nodes.

HTML mockupTikZ
Visual polishModern CSS, shadows, gradients, rounded cardsFlat, academic-looking boxes
Iteration speedChange CSS and refreshRecompile LaTeX, debug positioning
Layout controlFlexbox/grid, responsiveManual coordinate math
Color/font varietyFull CSS + web fontsLimited, verbose color defs
InteractivityView switching, capture modeStatic only
Arrow routingBreaks on cross-row/non-adjacent nodesNode anchoring solves this natively
Font matchingSeparate from LaTeXPerfect match with document body

Prefer HTML for system mockups, dashboards, Gantt/timeline figures, and any figure where the content is inherently rectangular and flows naturally (no cross-node arrows needed).

Prefer TikZ for abstract framework diagrams, dependency topologies, and architecture overviews where arrows must route between non-adjacent nodes (L-shaped, curved, crossing rows). TikZ node anchoring (node.south, node.east) handles this natively. Also prefer TikZ for small inline diagrams that must live inside the LaTeX source or when exact font matching is critical.

Prefer skia-canvas (Node.js) when you need the arrow-routing control of TikZ but want faster iteration (edit .mjs, run, get PDF) and richer visual styling than TikZ provides.

HTML mockups vs AI image generation

HTML mockups are strictly better than AI-generated images for system and method figures. AI image generation is acceptable only for artistic/conceptual overview diagrams.

HTML mockupAI image generation
Text legibilityPixel-perfect, real fontsOften garbled or blurry
Data accuracyEvery number/label controlledHallucinated values
Iteration speedChange CSS and refreshRe-prompt and hope
ConsistencySame palette across figuresEach generation varies
Print qualityVector PDF via browser printAlways raster
Reviewer trustLooks like a system you could buildLooks like a concept sketch

HTML mockups vs PowerPoint (for timelines)

HTML is also better than PPTX for Gantt/timeline figures:

HTMLPowerPoint
AlignmentCSS grid, pixel-perfectManual drag
EditsChange one label, everything reflowsReposition every box
Color consistencyCSS variables, one source of truthManual color matching
CaptureBrowser Print → PDF (vector)Export PDF (often wrong margins)

When to Use

  • The document describes a multi-component system or multi-step methodology (e.g., "representation layer + discovery service + workflow engine", or "data collection → feature extraction → model training → evaluation")
  • Abstract pipeline diagrams feel generic and do not differentiate the work
  • The figure needs to show architectural structure, data flow, or method pipeline with real labels, not just boxes and arrows
  • Collaborators need something interactive to react to and iterate on
  • The document has a page limit and figures need to be space-efficient
  • A timeline/Gantt figure is needed for the work plan or project overview

When NOT to Use (either path)

  • Experimental result figures (plots, charts, tables, ablation curves) -- use Python (matplotlib, seaborn, plotly) or LaTeX (pgfplots, tikz) instead. This skill is for system/method diagrams, not data visualization.

When to Use the Abstract Path Instead of HTML

  • Abstract framework diagrams with cross-node arrow routing -- dependency topologies, architecture overviews with curved arro
Read the complete source ↗