Skip to main content

Figure View

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install alirezarezvani-figure-view

What this does: Use when an agent produces or hands over a diagram, chart, screenshot or other image file: render HTML, SVG, PNG, JPG, GIF or WebP figures to a PNG the agent can look at before claiming the figure is right, deliver figures as file:// links with browser zoom controls instead of inline previews that cannot be enlarged, and show them enlarged in the terminal with zoom, pan and fit. Standard-library scripts plus a local Chrome, Chromium or Edge; the viewer works in Kitty-graphics terminals (kitty, Ghostty, WezTerm, Konsole, herdr). Not for designing the figure itself.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/alirezarezvani-figure-view/SKILL.md

Setup guide →
0Save

Instructions

Figure View

A figure is only finished when someone has looked at it. Agents write diagrams as HTML or SVG and never see
them render; people get a thumbnail in chat they cannot enlarge. This skill closes both gaps with two
standard-library scripts:

  • scripts/render_figure.py turns any figure into a PNG, so the agent can open the picture and check it.
  • scripts/view_figure.py shows a figure enlarged in the terminal, with zoom, pan and fit.

Do not use it to design the figure (use a diagram skill), for remote files the browser cannot read, or as a
general image editor.

Before starting

Check the machine instead of asking:

python3 scripts/render_figure.py --sample --json     # the script runs; no browser needed for this
python3 scripts/render_figure.py fig.html --json     # a clear error names the fix if no Chrome is found

HTML, SVG, JPG, GIF and WebP need a local Chrome, Chromium or Edge (found automatically, or set with
--browser / FIGURE_VIEW_BROWSER). A PNG within the 4-megapixel cap needs nothing.

Modes

  • Look (default for agents): render the figure and inspect the PNG before saying it is done.
  • Deliver: hand the figure to the person so they can enlarge it.
  • View: show it enlarged in the person's terminal.
  • Wire in: connect the viewer to a harness's link clicks or panes.

Workflow: look at your own figure

  1. Write the figure to a stable absolute path, for example /tmp/billing-architecture.html.
  2. python3 scripts/render_figure.py /tmp/billing-architecture.html --json prints {png, width, height}.
    Renders are cached until the file changes.
  3. Open the PNG with the harness's image reading and check it: labels clipped, arrows crossing nodes,
    text too small, the legend cut off. Fix the source and render again. Never describe a figure you have
    not looked at.
  4. Limit: for an HTML page, only its largest inline <svg> is rendered, with the page's Google Fonts
    and paper colour. Other page <style> rules and :root custom properties are not carried over, so
    an SVG styled by page CSS renders unstyled. Inline the styles into the SVG before you check it.

Workflow: deliver a figure

  1. For HTML diagrams, paste assets/enlarge-controls.html into the page
    (style block in <head>, controls before the .diagram-container) and replace SLUG with the
    diagram's slug. The CSS-only Normal / Fit screen / 2x / 3x buttons work in any browser and add no script.
  2. In the reply, put the figure's file:// URL on its own line. Most terminals open it on a modified click.
  3. Offer the terminal view when the person works in a Kitty-graphics terminal (next workflow).

Workflow: view in the terminal

python3 scripts/view_figure.py /tmp/billing-architecture.html   # in a terminal pane or split

The viewer checks for Kitty graphics first. Without them it prints the rendered PNG's path and exits 1,
so the person can open it in an image viewer. Run it in a split pane beside the session where the harness
allows, so the conversation stays visible.

To keep one viewer and switch figures, start it with --follow and hand figures to it:

python3 scripts/view_figure.py --follow                          # the long-running viewer pane
python3 scripts/view_figure.py --send /tmp/next-figure.png --json
# {"sent": true, "viewer_running": true, "viewer_command": [".../python3", ".../view_figure.py", "--follow"]}

When viewer_running is false, start viewer_command in a new pane. That pair is the whole integration
contract for a harness; see the README for a Herdr example.

Example

The diagram shows the four billing services and the two queues between them.

file:///tmp/billing-architecture.html

Open it to zoom in, or view it here: python3 scripts/view_figure.py /tmp/billing-architecture.html

Viewer controls

InputAction
[ - ] [ + ], + -, wheel at the pointerZoom between fit (100%) and 800%
[ Fit ], 0, double-clickBack to fit (double-click toggles fit and 200% at the pointer)
Drag, arrows, h j k lPan; the figure always covers the frame
[ Open in browser ], oThe original file in the default browser
rRender again
[ Close ], q, EscClose the viewer

Troubleshoot

SymptomCause and fix
No Chrome, Chromium or Edge foundInstall one, or pass --browser / set FIGURE_VIEW_BROWSER to its executable
Viewer prints a PNG path and exits 1The terminal has no Kitty graphics; open the PNG, or use kitty, Ghostty, WezTerm or Konsole
Pane shows "could not draw the image"The terminal refused the image size; set FIGURE_VIEW_MAX_PIXELS lower (default 4000000)
Web fonts missing in the PNGThe render had no network; the figure falls back to system fonts

Rendering limits, the security model and terminal quirks: references/design.md.

Anti-patterns

  • Claiming a figure looks right without rendering it. Look at the PNG first.
  • Delivering only an inline image. Chat previews cannot be enlarged; always give the file:// URL.
  • Rendering untrusted pages with scripts on. Keep the script-blocking wrapper; never pass pages to a
    browser that runs their code.
  • Starting a new viewer for every figure. Use --follow and --send so one pane switches figures.
  • Editing the cached PNG. Fix the source; the cache follows it.

Proactive Triggers

  • An agent writes a diagram, chart or screenshot to a file and is about to describe it.
  • The person squints at, or asks to enlarge, an inline preview.
  • A diagram skill produces HTML that will be viewed both in a browser and in the terminal.
  • Several figures are delivered in one session (one --follow viewer, not one per figure).
  • A figure's labels or layout were changed and need a visual re-check.

Output Artifacts

ArtifactWhere
Rendered PNGrender_figure.py --json prints its path (cache in ~/.cache/figure-view/renders/)
Figure with browser zoom controlsthe HTML path given in the reply
file:// link on its own linethe reply
Enlarged terminal viewa pane running view_figure.py
Viewer state and log~/.cache/figure-view/

Related Skills

  • diagramming-processes and other diagram skills: use them to design the figure; use figure-view to check
    and deliver it. Not a replacement for either.
  • chart-designer: use it for chart configs; render the chart's HTML here to check it.
  • readme-polish: use it for figures inside a README on GitHub; figure-view covers local viewing only.
  • demo-video: use it for motion; figure-view shows still images (an animated GIF shows its first frame).
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
senior-architectShowcaseSystem architecture decisions with a written rationale: monolith vs microservices, database choice, scaling limits, ADRs, Mermaid diagrams. Load whenever the user asks should we split, which database, will it scale, or wants an ADR.35 installsseo-auditShowcaseFind why a site is not ranking: technical SEO, on-page issues, meta tags, site health. Use whenever the user asks why a page is not on Google, why traffic dropped or for an SEO audit.32 installsgrill-meInterview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".24 installscode-reviewerShowcaseUse for any code review: a pull request, a diff, a commit, or a pasted function, handler or file in TypeScript, JavaScript, Python, Go, Swift, Kotlin, C#/.NET, Java, C, C++, Rust, Ruby, PHP or Dart/Flutter. Applies per-language rule packs (security such as SQL injection and missing auth, async and resource handling, error handling, performance) and scripts that score a PR's risk and complexity, then gives a merge verdict with blocking and non-blocking findings. Use whenever the user asks to review, check or look over code, says 'code review', 'review this PR', 'review this diff' or 'is this safe to merge', or asks what is wrong with a snippet, even a single function.24 installscode-to-prdShowcaseUse when asked to write a PRD or product spec from an existing codebase (reverse-engineer requirements, document pages, fields, routes and endpoints). Maps the code with codebase_analyzer.py and scaffolds the PRD with prd_scaffolder.py.22 installssenior-qaWrite and improve tests for React or Next.js apps: Jest, React Testing Library, MSW mocks, Playwright E2E, coverage gaps. Use whenever the user asks to add tests to a component or page, mock an API, set up end-to-end tests or raise coverage.17 installs

More from Multi-Domain Skills

View source →
senior-frontendShowcaseBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.657 installsui-design-systemShowcaseUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.562 installssenior-backendShowcaseBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.270 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.187 installssocial-media-managerShowcasePlan social media: strategy, content calendar, community management, follower growth. Use whenever the user asks what to post and when, or how to grow followers. Single posts: social-content.140 installsmarketing-strategy-pmmShowcaseUse for product positioning, ICP, competitive battlecards or a go-to-market plan, before drafting. Applies April Dunford's positioning method and produces the positioning statement, battlecards and launch plan.74 installs

More Build skills

Browse category →
founder-consumerThe consumer panel. Spins up a swarm of buyer sub-agents (default 100, --quick for 20) trained on the user's target customer, each with a different income, age, buying behaviour and objection, shows every one the same pitch, and runs the business through 100 buyer scenarios to see who buys, who doesn't, and why. Tallies the answers into buy rates by segment, the reasons people pass in their own words, what would flip a no, and price answers for founder-pricing. Use when the user says "would people buy this", "test it on customers", "run the consumer panel", "simulate buyers", "who is my customer", or "validate demand".413 installsfrontend-designShowcaseGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.375 installsweb-gameShowcaseScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.152 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions152 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installsreverse-engineer-anythingReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.112 installs

Frequently asked questions about figure-view

What does the figure-view skill do?

Use when an agent produces or hands over a diagram, chart, screenshot or other image file: render HTML, SVG, PNG, JPG, GIF or WebP figures to a PNG the agent can look at before claiming the figure is right, deliver figures as file:// links with browser zoom controls instead of inline previews that cannot be enlarged, and show them enlarged in the terminal with zoom, pan and fit. Standard-library scripts plus a local Chrome, Chromium or Edge; the viewer works in Kitty-graphics terminals (kitty, Ghostty, WezTerm, Konsole, herdr). Not for designing the figure itself. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the figure-view skill?

Run `npx @skills-hub-ai/cli install alirezarezvani-figure-view` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/alirezarezvani-figure-view/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does figure-view work with?

figure-view runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the figure-view skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use figure-view after installing it?

In Claude Code, type `/alirezarezvani-figure-view` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the figure-view skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/alirezarezvani-figure-view)](https://skills-hub.ai/skills/alirezarezvani-figure-view)
HTML
<a href="https://skills-hub.ai/skills/alirezarezvani-figure-view"><img src="https://skills-hub.ai/api/badges/skill/alirezarezvani-figure-view" alt="Install on Skills Hub"></a>

More options in the badge docs.