microsim-screen-capture

Capture MicroSim screenshots as PNGs using Chrome headless mode.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/HuuBar/skill-routing-experiment --skill microsim-screen-capture-huubar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: microsim-screen-capture
Source: https://github.com/HuuBar/skill-routing-experiment/tree/main/unified_skills/vishal/microsim-screen-capture
Command: npx skills add https://github.com/HuuBar/skill-routing-experiment --skill microsim-screen-capture-huubar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manual screenshot capture for MicroSims is time-consuming and error-prone, especially for JavaScript-heavy visualizations with external CDN resources.

This Skill automates the screenshot process using Chrome headless to produce consistent, high-quality images suitable for social previews and documentation.

Core Features & Use Cases

  • Automated screenshot capture of MicroSims after full render
  • Handles dynamic JavaScript visualizations and CDN resources
  • Generates consistently named PNGs for social previews and documentation
  • Use Case: Generate previews for org-chart MicroSims and similar visuals

Quick Start

Run the capture-screenshot.sh script on a MicroSim directory to generate the corresponding PNG.

Frequently Asked Questions about microsim-screen-capture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate MicroSim screenshots for JavaScript visualizations?

You can automate MicroSim screenshots by running a headless Chrome script that renders the visualization at 1200x800 and outputs a high-quality PNG. This handles dynamic JavaScript and external CDN resources automatically.

What is the best way to capture documentation images from MicroSims?

The best way to capture documentation images is using headless Chrome automation, which fully renders JavaScript-heavy MicroSims and saves consistently named PNG files suitable for documentation and social previews.

Can I use headless Chrome to generate social previews for dynamic MicroSims?

Yes, headless Chrome can generate social previews for dynamic MicroSims by validating the microsim directory, loading external CDN resources, and capturing a 1200x800 PNG image named after the specific microsim.

Does the automated screenshot process work with external CDN resources?

Yes, the automated screenshot process works with external CDN resources. It uses proper headless Chrome flags to ensure JavaScript-heavy visualizations fully render before capturing the final PNG image.

Why are my manual MicroSim screenshots inconsistent for documentation?

Manual MicroSim screenshots are inconsistent because JavaScript-heavy visualizations and external CDN resources require full render time. Automating capture with headless Chrome ensures consistent 1200x800 dimensions and standardized PNG outputs.

What are the limitations of using headless Chrome for MicroSim visualization capture?

The headless Chrome capture process is limited to a fixed 1200x800 resolution output and requires a valid microsim directory structure. It outputs a single PNG file named after the microsim being processed.