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 correctly initializes snipgrapher configuration, defines reusable profiles with correct config structure, runs validation commands, and understands the supported config file formats.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Init command used",
"description": "setup.sh includes `snipgrapher init` or `npx snipgrapher init` to initialize config",
"max_score": 8
},
{
"name": "Config file name valid",
"description": "The config file is named one of: snipgrapher.config.json, snipgrapher.config.yaml, snipgrapher.config.yml, or snipgrapher.config.toml",
"max_score": 8
},
{
"name": "Config has theme field",
"description": "snipgrapher.config.json contains a top-level \"theme\" field",
"max_score": 5
},
{
"name": "Config has fontFamily field",
"description": "snipgrapher.config.json contains a top-level \"fontFamily\" field",
"max_score": 5
},
{
"name": "Config has fontSize field",
"description": "snipgrapher.config.json contains a top-level \"fontSize\" field",
"max_score": 5
},
{
"name": "Config has padding field",
"description": "snipgrapher.config.json contains a top-level \"padding\" field",
"max_score": 5
},
{
"name": "Config has lineNumbers field",
"description": "snipgrapher.config.json contains a \"lineNumbers\" boolean field",
"max_score": 5
},
{
"name": "Config has windowControls field",
"description": "snipgrapher.config.json contains a \"windowControls\" boolean field",
"max_score": 5
},
{
"name": "Config has backgroundStyle field",
"description": "snipgrapher.config.json contains a \"backgroundStyle\" field",
"max_score": 5
},
{
"name": "Config has format field",
"description": "snipgrapher.config.json contains a \"format\" field",
"max_score": 5
},
{
"name": "Config has shadow field",
"description": "snipgrapher.config.json contains a \"shadow\" boolean field",
"max_score": 5
},
{
"name": "Config has defaultProfile field",
"description": "snipgrapher.config.json contains a \"defaultProfile\" field",
"max_score": 5
},
{
"name": "Config has profiles map",
"description": "snipgrapher.config.json contains a \"profiles\" object with at least two named profile entries",
"max_score": 8
},
{
"name": "Doctor command included",
"description": "setup.sh runs `snipgrapher doctor` or `npx snipgrapher doctor`",
"max_score": 10
},
{
"name": "Themes list command included",
"description": "setup.sh runs `snipgrapher themes list` or `npx snipgrapher themes list`",
"max_score": 10
},
{
"name": "npx fallback present",
"description": "setup.sh uses `npx --yes snipgrapher ...` or accounts for snipgrapher not being globally installed",
"max_score": 6
}
]
}