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. Supports single-file renders, batch jobs, watch mode, and reusable named profiles via the snipgrapher CLI or npx.
88
95%
Does it follow best practices?
Impact
79%
1.38xAverage score across 5 eval scenarios
Advisory
Suggest reviewing before use
A platform engineering team runs a documentation build pipeline across three environments: development, staging, and production. Each environment needs slightly different snippet styling — development uses a dark theme with line numbers for readability, staging uses the same but with a watermark to prevent confusion with production assets, and production uses a light theme with no watermark for clean output.
The team wants to drive all environment-specific rendering settings through the CI environment itself, without having to maintain separate config files per environment. Individual developers should also be able to override specific settings locally for quick experiments without touching the shared config.
Write a document ci-setup.md that describes:
snipgrapher.config.json with base defaultsAlso produce the shared snipgrapher.config.json file that would be committed to the repository.