Agent skill

Exporting To Png

by spencerpauly in spencerpauly/awesome-cursor-skills

Export code, terminal output, diagrams, or UI components to PNG images using headless browser rendering or CLI tools.

CC0-1.0Auto-check passedProductivity & Automation

Install Exporting To Png

skills CLI
$ npx skills add spencerpauly/awesome-cursor-skills --skill exporting-to-png -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install spencerpauly/awesome-cursor-skills exporting-to-png --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/spencerpauly/awesome-cursor-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/resources/exporting-to-png .claude/skills/exporting-to-png && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
exporting-to-png
GitHub stars
844
Token cost
~714 tokens
SKILL.md length
197 words
Files
1
Skills in repo
60
Repo updated
First seen
Licence
CC0-1.0

At a glance

Export code, terminal output, diagrams, or UI components to PNG images using headless browser rendering or CLI tools.

  • Works in 5 steps: HTML → PNG via Headless Browser → Code → PNG with Carbon or Silicon → Mermaid Diagrams → PNG → …
  • Tasks that involve Browser automation
  • SKILL.md covers Methods, Workflow and Tips
  • Calls npx, node and docker; reaches carbon.now.sh

What it does

Exporting To Png is an agent skill from spencerpauly/awesome-cursor-skills. Export code, terminal output, diagrams, or UI components to PNG images using headless browser rendering or CLI tools.

Its SKILL.md is about 710 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Browser automation and Diagrams. The repository describes itself as: A curated list of awesome skills for Cursor. The licence is CC0-1.0.

When your agent uses it

  • Tasks that involve Browser automation
  • Tasks that involve Diagrams

Example prompts

  • “/exporting-to-png”

Requirements

  • Python 3
  • Node.js
  • Docker

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. HTML → PNG via Headless Browser
  2. Code → PNG with Carbon or Silicon
  3. Mermaid Diagrams → PNG
  4. SVG → PNG
  5. Terminal Output → PNG

What it can do on your machine

Read from SKILL.md and the folder at commit 99cd265. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • node
    • docker

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • carbon.now.sh

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Exporting To Png loads about 714 tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 197 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~714

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from spencerpauly/awesome-cursor-skills at commit 99cd265, republished under its CC0-1.0 licence (© spencerpauly). 197 words, ~714 tokens.

Download SKILL.mdSave it as .claude/skills/exporting-to-png/SKILL.md (or your agent's skills folder).
name
exporting-to-png
description
Export code, terminal output, diagrams, or UI components to PNG images using headless browser rendering or CLI tools.
user-invocable
true

Exporting to PNG

Convert code snippets, Markdown content, terminal output, diagrams, or rendered UI components into PNG image files.

Methods

1. HTML → PNG via Headless Browser

The most flexible approach. Render any content as HTML and screenshot it.

bash
# Using Playwright (if available)
npx playwright screenshot --full-page "file:///path/to/content.html" output.png

# Using Puppeteer one-liner
node -e "
const puppeteer = require('puppeteer');
(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.setContent(\`<html>...</html>\`);
  await page.screenshot({ path: 'output.png', fullPage: true });
  await browser.close();
})();
"

Steps:

  1. Generate an HTML file with the content styled appropriately (syntax highlighting, padding, fonts)
  2. Use a headless browser to render and capture
  3. Crop if needed using an image tool
2. Code → PNG with Carbon or Silicon

For styled code screenshots:

bash
# silicon (Rust CLI, fast)
silicon --language python --output code.png source.py
silicon --from-clipboard --output code.png

# Or generate a Carbon URL for browser capture
# https://carbon.now.sh/?l=python&code=<url-encoded-code>
3. Mermaid Diagrams → PNG
bash
# Using mermaid-cli
npx @mermaid-js/mermaid-cli mmdc -i diagram.mmd -o diagram.png -b transparent

# Or with Docker
docker run --rm -v "$(pwd)":/data minlag/mermaid-cli mmdc -i /data/diagram.mmd -o /data/diagram.png
4. SVG → PNG
bash
# Using sharp (Node.js)
node -e "
const sharp = require('sharp');
sharp('input.svg').png().toFile('output.png');
"

# Using Inkscape CLI
inkscape input.svg --export-type=png --export-filename=output.png

# Using ImageMagick
convert input.svg output.png
5. Terminal Output → PNG
bash
# Using termshot (if installed)
termshot -- ls -la

# Manual approach: capture output, wrap in HTML with monospace font, screenshot

Workflow

  1. Determine the content type (code, diagram, HTML, terminal, SVG)
  2. Check which tools are available in the environment (which silicon, npx --help, etc.)
  3. Choose the best method and generate the PNG
  4. Verify the output exists and is non-empty: file output.png && ls -la output.png
  5. Report the file path and dimensions

Tips

  • For code screenshots, use a dark theme with generous padding (32px+) for a polished look
  • Set deviceScaleFactor: 2 in Playwright/Puppeteer for retina-quality output
  • For transparent backgrounds, use --background transparent or omitBackground: true
  • If no specialized tool is installed, fall back to the HTML + headless browser method — it works for everything

© spencerpauly, CC0-1.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in resources/exporting-to-png of spencerpauly/awesome-cursor-skills.

Open the folder on GitHubat commit 99cd265

Compare with similar skills

Exporting To Png next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Exporting To Png compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Exporting To Png this skillspencerpauly/awesome-cursor-skills844—~714Automated safety check: PassCC0-1.0
Agent Browserquran/quran.com-frontend-next1.9k40 repos~3.3kAutomated safety check: PassNone
Dev-Browser CLI AutomationSawyerHood/dev-browser6.7k1 repos~455Automated safety check: PassMIT
Browser Automationopenclaw/openclaw392k—~2.9kAutomated safety check: PassMIT
Camoufox CLIBin-Huang/camoufox-cli3501 repos~4.5kAutomated safety check: PassMIT
BrowserVibiumDev/vibium2.9k—~4.8kAutomated safety check: PassApache-2.0

Similar skills

  • Agent Browser

    quran/quran.com-frontend-next

    Automates browser interactions for web testing, form filling, screenshots, and data extraction.

    1.9k GitHub starsUsed in 40 repos~3.3k tokens
    Productivity & AutomationAuto-check passed
  • Dev-Browser CLI Automation

    SawyerHood/dev-browser

    Browser automation with persistent named pages via the dev-browser CLI. Use when users ask to navigate websites, fill forms, take screenshots, extract web…

    6.7k GitHub starsUsed in 1 repo~455 tokens
    Productivity & AutomationAuto-check passed
  • Browser Automation

    openclaw/openclaw

    A skill your agent uses when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

    392k GitHub stars~2.9k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Camoufox CLI

    Bin-Huang/camoufox-cli

    Anti-detect browser automation CLI & Skills for AI agents. An agent skill from Bin-Huang/camoufox-cli.

    350 GitHub starsUsed in 1 repo~4.5k tokens
    Productivity & AutomationAuto-check passed
  • Browser

    VibiumDev/vibium

    Automate browsers with the Vibium CLI. An agent skill from VibiumDev/vibium.

    2.9k GitHub stars~4.8k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts.

    50k GitHub stars~1.1k tokensUpdated today
    Productivity & AutomationAuto-check passed

More from spencerpauly/awesome-cursor-skills

All 60 skills in this repo
  • Generating Images

    spencerpauly/awesome-cursor-skills

    Generate or edit images using the OpenAI Image API (gpt-image-2).

    844 GitHub stars~3.7k tokensUpdated 2 mo ago
    Auto-check: notes
  • Babysitting PR

    spencerpauly/awesome-cursor-skills

    Monitor a pull request for CI failures, review comments, and merge conflicts — then fix them automatically.

    844 GitHub stars~930 tokensUpdated 2 mo ago
    Auto-check passed
  • Best Of N Solving

    spencerpauly/awesome-cursor-skills

    Solve a hard problem by trying multiple approaches in parallel using isolated git worktrees.

    844 GitHub stars~698 tokensUpdated 2 mo ago
    Auto-check passed
  • Grinding Until Pass

    spencerpauly/awesome-cursor-skills

    Keep iterating on code changes until the tests pass, the build succeeds, or linting is clean.

    844 GitHub stars~796 tokensUpdated 2 mo ago
    Auto-check passed
  • Parallel CI Triage

    spencerpauly/awesome-cursor-skills

    When GitHub Actions fails, fetch failing job logs and assign each failing job to a separate subagent that fixes its slice of the problem in parallel.

    844 GitHub stars~793 tokensUpdated 2 mo ago
    Auto-check passed
  • Parallel Exploring

    spencerpauly/awesome-cursor-skills

    Explore a large codebase in parallel by launching multiple explore subagents that each investigate a different area simultaneously.

    844 GitHub stars~787 tokensUpdated 2 mo ago
    Auto-check: notes

Questions about Exporting To Png

What does Exporting To Png do?

Export code, terminal output, diagrams, or UI components to PNG images using headless browser rendering or CLI tools. Exporting To Png is an agent skill from spencerpauly/awesome-cursor-skills. Export code, terminal output, diagrams, or UI components to PNG images using headless browser rendering or CLI tools.

When should I use Exporting To Png?

Exporting To Png fits situations like: tasks that involve Browser automation; tasks that involve Diagrams.

How do I install Exporting To Png in Claude Code?

Run `npx skills add spencerpauly/awesome-cursor-skills --skill exporting-to-png -a claude-code`. Or copy the skill folder (resources/exporting-to-png in spencerpauly/awesome-cursor-skills) into .claude/skills/exporting-to-png in your project. Claude Code loads it when a task matches its description.

How do I install Exporting To Png in Codex?

Run `npx skills add spencerpauly/awesome-cursor-skills --skill exporting-to-png -a codex`. Or copy the skill folder (resources/exporting-to-png in spencerpauly/awesome-cursor-skills) into .agents/skills/exporting-to-png in your project. Codex loads it when a task matches its description.

Can I use Exporting To Png in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add spencerpauly/awesome-cursor-skills --skill exporting-to-png -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/exporting-to-png, .gemini/skills/exporting-to-png, .github/skills/exporting-to-png and .opencode/skills/exporting-to-png in your project.

What does Exporting To Png need to run?

Going by SKILL.md and its folder, Exporting To Png needs the command-line tools its instructions call (npx, node and docker). Our summary lists: Python 3; Node.js; Docker.

Does Exporting To Png access the network?

SKILL.md names 1 domain. In commands or code: carbon.now.sh; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Exporting To Png safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Exporting To Png use?

Exporting To Png is published under the CC0-1.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Exporting To Png use?

About 714 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Exporting To Png?

Skills that share tags, products or a category with Exporting To Png: Agent Browser (quran/quran.com-frontend-next, 1.9k stars), Dev-Browser CLI Automation (SawyerHood/dev-browser, 6.7k stars), Browser Automation (openclaw/openclaw, 392k stars) and Camoufox CLI (Bin-Huang/camoufox-cli, 350 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Exporting To Png?

spencerpauly (a GitHub user) maintains it in spencerpauly/awesome-cursor-skills, which has 844 GitHub stars. The repository holds 60 skills in this directory. The repository was last updated on August 2, 2026.

Source: spencerpauly/awesome-cursor-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.