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 uses npx --yes as the fallback when snipgrapher may not be globally installed, initializes config before rendering, uses a named profile, uses an explicit output path, verifies the output file, and documents commands run plus output paths in a log file.",
"type": "weighted_checklist",
"checklist": [
{
"name": "npx --yes fallback used",
"description": "onboard.sh uses `npx --yes snipgrapher ...` (not just `npx snipgrapher` without --yes, and not assuming global install only)",
"max_score": 15
},
{
"name": "Config initialized before render",
"description": "onboard.sh runs `snipgrapher init` or `npx --yes snipgrapher init` before the render command",
"max_score": 10
},
{
"name": "Named profile used",
"description": "The render command includes `--profile` referencing a named profile",
"max_score": 10
},
{
"name": "Explicit output path with extension",
"description": "The render command uses `-o` or `--output` with a filename that includes a file extension",
"max_score": 10
},
{
"name": "Output verified after render",
"description": "onboard.sh includes a check that the output file exists and is non-zero in size (e.g. ls -lh, stat, or test -s)",
"max_score": 15
},
{
"name": "Commands logged to file",
"description": "run-commands.txt contains the exact commands that were run",
"max_score": 13
},
{
"name": "Output paths logged to file",
"description": "run-commands.txt includes the output file path(s) created",
"max_score": 12
},
{
"name": "Input file referenced",
"description": "The render command uses inputs/sample.py as the source file",
"max_score": 8
},
{
"name": "Doctor or themes list run",
"description": "onboard.sh runs `snipgrapher doctor` or `npx --yes snipgrapher doctor` as part of setup",
"max_score": 7
}
]
}