CtrlK
BlogDocsLog inGet started
Tessl Logo

mcollina/snipgrapher

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

1.38x
Quality

95%

Does it follow best practices?

Impact

79%

1.38x

Average score across 5 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

criteria.jsonevals/scenario-2/

{
  "context": "Tests whether the agent correctly applies the CLI flags > env vars > config > defaults precedence, uses the correct snipgrapher environment variable names for CI-wide configuration, and distinguishes env vars (CI-wide) from CLI flags (one-off overrides).",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Correct precedence order stated",
      "description": "ci-setup.md states the precedence order: CLI flags > environment variables > config file > defaults (all four levels, in the correct order)",
      "max_score": 12
    },
    {
      "name": "SNIPGRAPHER_THEME env var used",
      "description": "ci-setup.md references SNIPGRAPHER_THEME for environment-specific theme configuration",
      "max_score": 8
    },
    {
      "name": "SNIPGRAPHER_FORMAT env var used",
      "description": "ci-setup.md references at least one of: SNIPGRAPHER_FORMAT, SNIPGRAPHER_FONT_SIZE, SNIPGRAPHER_PADDING, or SNIPGRAPHER_LINE_NUMBERS",
      "max_score": 8
    },
    {
      "name": "SNIPGRAPHER_PROFILE env var referenced",
      "description": "ci-setup.md references SNIPGRAPHER_PROFILE for selecting per-environment profile via env var",
      "max_score": 8
    },
    {
      "name": "Env vars assigned per-environment",
      "description": "ci-setup.md shows distinct environment variable values for at least two different environments (dev, staging, or production)",
      "max_score": 10
    },
    {
      "name": "CLI flags for local override",
      "description": "ci-setup.md explains that CLI flags (not env vars or config edits) should be used for developer one-off overrides",
      "max_score": 12
    },
    {
      "name": "Config has top-level defaults",
      "description": "snipgrapher.config.json includes at least 4 of: theme, fontFamily, fontSize, padding, lineNumbers, windowControls, shadow, backgroundStyle, format",
      "max_score": 10
    },
    {
      "name": "Config has defaultProfile",
      "description": "snipgrapher.config.json contains a \"defaultProfile\" field",
      "max_score": 8
    },
    {
      "name": "Config has profiles map",
      "description": "snipgrapher.config.json contains a \"profiles\" object with at least one named profile",
      "max_score": 8
    },
    {
      "name": "Env vars described as CI-wide",
      "description": "ci-setup.md explicitly describes env vars as the mechanism for CI-wide or environment-wide defaults (not just as a general option)",
      "max_score": 8
    },
    {
      "name": "Valid config filename",
      "description": "The config file is named snipgrapher.config.json (or .yaml/.yml/.toml)",
      "max_score": 8
    }
  ]
}

evals

SKILL.md

tile.json