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
{
"context": "Tests whether the agent initializes config before rendering, uses a named profile, specifies an explicit output path with file extension, verifies the output file exists and is non-zero, and documents commands run plus output paths.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Config initialized first",
"description": "render.sh runs `snipgrapher init` or `npx snipgrapher init` before the render command",
"max_score": 10
},
{
"name": "Named profile used",
"description": "The render command includes a `--profile` flag referencing a named profile (not just default options inline)",
"max_score": 12
},
{
"name": "Explicit output path",
"description": "The render command uses `-o` or `--output` with a specific filename including a file extension (e.g. output.png)",
"max_score": 12
},
{
"name": "PNG format produced",
"description": "The output file has a .png extension or --format png is specified",
"max_score": 8
},
{
"name": "Output verified after render",
"description": "render.sh includes a command to check the output file exists and is non-zero in size (e.g. ls -lh or stat)",
"max_score": 15
},
{
"name": "Commands logged",
"description": "render-log.txt contains the exact commands that were run",
"max_score": 12
},
{
"name": "Output paths logged",
"description": "render-log.txt includes the output file path(s) created",
"max_score": 12
},
{
"name": "npx fallback present",
"description": "render.sh uses `npx --yes snipgrapher` or handles the case where snipgrapher is not globally installed",
"max_score": 10
},
{
"name": "Input file used",
"description": "The render command references inputs/example.ts as the source file",
"max_score": 9
}
]
}