What problem does it solve?
Creating attractive code snippet images for social media, blog posts, and documentation usually requires manual screenshot cropping and styling. This Skill automates the process by rendering HTML templates with Chrome headless into high-resolution PNGs with consistent light-themed, macOS-style window chrome.
Core Features & Use Cases
- Single Snippet Rendering: Fill an HTML template with syntax-highlighted code and render it to a 2400x1350 PNG at 2x retina scale.
- 2x2 Grid Composites: Combine four code snippets into one image, ideal for LinkedIn or Twitter posts comparing multiple examples.
- GitHub-Light Syntax Highlighting: Predefined CSS classes for keywords, strings, methods, variables, comments, and more, with JetBrains Mono typography.
- Use Case: When writing a tweet about a new Laravel feature, paste the code into the template, run the render script, and get a polished snippet image ready to attach.
Quick Start
Ask the AI to create a code snippet image of a given piece of code, and it will populate the HTML template and render it to a PNG using the included render script.