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 the batch subcommand with glob patterns, specifies an output directory, uses concurrency, and generates a JSON manifest file listing rendered outputs.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Batch subcommand used",
"description": "batch-render.sh uses `snipgrapher batch` or `npx snipgrapher batch` (not individual render calls per file)",
"max_score": 15
},
{
"name": "Glob pattern used",
"description": "The batch command uses a glob pattern (e.g. \"./snippets/**/*\" or \"snippets/*.py snippets/*.ts\") rather than listing files individually",
"max_score": 12
},
{
"name": "Output directory specified",
"description": "The batch command includes `--out-dir` with a directory path",
"max_score": 12
},
{
"name": "Concurrency specified",
"description": "The batch command includes `--concurrency` with a numeric value",
"max_score": 12
},
{
"name": "JSON manifest flag used",
"description": "The batch command includes `--json` flag",
"max_score": 12
},
{
"name": "Manifest file path specified",
"description": "The batch command includes `--manifest` with a path to the output manifest file",
"max_score": 12
},
{
"name": "Config initialized before batch",
"description": "batch-render.sh runs `snipgrapher init` or `npx snipgrapher init` before the batch command",
"max_score": 10
},
{
"name": "npx fallback present",
"description": "batch-render.sh uses `npx --yes snipgrapher` or accounts for snipgrapher not being globally installed",
"max_score": 8
},
{
"name": "Commands documented",
"description": "batch-notes.md includes the exact commands run",
"max_score": 7
}
]
}