Skip to content
Join free
mcollina

Snipgrapher skill

Configures and uses snipgrapher to generate polished code snippet images, including syntax-highlighted PNGs, SVGs, and WebP exports with custom themes, profiles, and styling options. Use when the user wants to create code screenshots, turn code into shareable images, generate pretty code snippets for docs or social posts, produce syntax-highlighted images from source files, or explicitly mentions snipgrapher.

$npx alyn-cli add snipgrapher
View this skill on GitHubmcollina/skills/skills/snipgrapher/SKILL.md
Pack stars
1,981
Pack installs
131k
Alyn Score
66/99
Updated
9 days ago
License
MIT

mcollina

Snipgrapher

What is the Snipgrapher skill?

Snipgrapher is a images & art skill by mcollina for Claude Code, Cursor, Codex and other AI coding agents. Configures and uses snipgrapher to generate polished code snippet images, including syntax-highlighted PNGs, SVGs, and WebP exports with custom themes, profiles, and styling options. Use when the user wants to create code screenshots, turn code into shareable images, generate pretty code snippets for docs or social posts, produce syntax-highlighted images from source files, or explicitly mentions snipgrapher.

Use this skill when you need to: - Generate image snippets from source code - Configure reusable snippet rendering defaults - Batch-render snippet assets for docs, social posts, or changelogs - Use published snipgrapher from npm to generate snippet images

When to use it

Use when the user wants to create code screenshots, turn code into shareable images, generate pretty code snippets for docs or social posts, produce syntax-highlighted images from source files, or explicitly mentions snipgrapher.

What the SKILL.md covers

  • When to use
  • Quick start
  • How to use
  • Core principles
  • Troubleshooting common render failures
Author
mcollina
Pack
mcollina/skills (11 skills)
Category
Images & art, #178 of 317
Alyn Score
66 / 99
Files
4
License
MIT
Last updated
9 days ago
Works with
Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot

Snipgrapher compared to similar skills

SkillAlyn ScoreGitHub starsUpdated
Snipgrapher · mcollina662k9 days ago
Generate Image · OpenClaudia647525 days ago
Image · Corey Haines9062k2 days ago
Ray So Code Snippet · intellectronica463057 months ago

Install Snipgrapher

Pick your agent. Every command is ready to paste.

$npx alyn-cli add snipgrapher

Detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

$npx skills add mcollina/skills --skill snipgrapher

Or use the open skills CLI directly.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads snipgrapher when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the snipgrapher skill”. In Codex, type $snipgrapher.

The skill itself

SKILL.md

FolderGitHub

When to use

Use this skill when you need to:

  • Generate image snippets from source code
  • Configure reusable snippet rendering defaults
  • Batch-render snippet assets for docs, social posts, or changelogs
  • Use published snipgrapher from npm to generate snippet images

Quick start

Render a single file to a PNG immediately with no config required:

npx snipgrapher render file.ts -o output.png

For ongoing use, initialise a project config first, then render:

npx snipgrapher init          # creates snipgrapher.config.json
npx snipgrapher render file.ts --profile default -o output.png

After rendering, verify the output exists and is non-zero in size before treating the job as successful:

ls -lh output.png   # confirm file exists and size > 0

How to use

Read these rule files in order:

Core principles

  • Configure first: establish a project config before repeated renders
  • Reproducible output: prefer named profiles and explicit output paths
  • Portable commands: use command patterns that work with installed binaries and npx
  • Automation-friendly: rely on CLI flags/config/env precedence intentionally

Troubleshooting common render failures

If a render fails or produces an unexpected output, check for these common causes:

  • Missing fonts: ensure any custom font specified in the profile or config is installed on the system
  • Unsupported syntax: confirm the language/extension is supported by snipgrapher; fall back to plain text highlighting if not
  • Empty or corrupt output: re-run with --verbose (if supported) to surface error details, and verify the input file is readable and non-empty
  • Profile not found: run npx snipgrapher init to regenerate snipgrapher.config.json if the config file is missing or malformed

Tips for Snipgrapher

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It is part of a pack with 11 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Snipgrapher

What does the Snipgrapher skill do?

Configures and uses snipgrapher to generate polished code snippet images, including syntax-highlighted PNGs, SVGs, and WebP exports with custom themes, profiles, and styling options. Use when the user wants to create code screenshots, turn code into shareable images, generate pretty code snippets for docs or social posts, produce syntax-highlighted images from source files, or explicitly mentions snipgrapher.

How do I install Snipgrapher?

Run "npx alyn-cli add snipgrapher" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Snipgrapher work in Cursor and Codex?

Yes. Snipgrapher uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

When should I use the Snipgrapher skill?

Use when the user wants to create code screenshots, turn code into shareable images, generate pretty code snippets for docs or social posts, produce syntax-highlighted images from source files, or explicitly mentions snipgrapher.

What is inside the Snipgrapher skill?

The SKILL.md covers When to use, Quick start, How to use, Core principles, Troubleshooting common render failures, and the skill folder has 4 files.

What is a good alternative to Snipgrapher?

Generate Image by OpenClaudia is the highest-ranked similar skill from another creator, with an Alyn Score of 64 compared to 66 for Snipgrapher.

Is Snipgrapher free?

Snipgrapher is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made Snipgrapher?

Snipgrapher is published by mcollina in the mcollina/skills repository, together with 10 other skills.

Similar skills. From other creators.