← Back to Skills Marketplace
Snipgrapher - generate images from code snippets
by
Matteo Collina
· GitHub ↗
· v0.1.0
612
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install snipgrapher
Description
Configure and use snipgrapher to generate polished code snippet images
Usage Guidance
This skill is an instruction handbook for the snipgrapher CLI and appears internally consistent. Before using it, verify the npm package name/version you intend to run (npx will download code from the npm registry), prefer installing a vetted binary or pinning a version in CI, review generated config files (snipgrapher.config.*) before committing, and avoid running unknown packages with elevated privileges. No credentials are requested by the skill itself.
Capability Analysis
Type: OpenClaw Skill
Name: snipgrapher
Version: 0.1.0
The skill instructs the AI agent to use `npx --yes snipgrapher` to install and execute the `snipgrapher` tool from npm if it's not found. This instruction, found in `rules/rendering-workflows.md` and `rules/setup-and-configuration.md`, creates a supply chain vulnerability. Automatically downloading and executing code from a public registry without user confirmation (due to `--yes`) poses a risk of arbitrary code execution if the `snipgrapher` npm package (or a typosquatted version) were compromised. While the skill's stated purpose is benign, this practice introduces a significant security risk.
Capability Assessment
Purpose & Capability
The name/description match the contents: all files describe configuring and running a CLI (snipgrapher) to render code snippets. Required env/config suggestions are relevant to rendering and profiles. Nothing asks for unrelated services or credentials.
Instruction Scope
Instructions are narrowly scoped to installing, initializing, configuring, and running the snipgrapher CLI (render, batch, watch, init, doctor). They reference project config files and suggest env vars relevant to rendering; no unexpected file reads, system-wide config changes, or external endpoints are specified.
Install Mechanism
There is no formal install spec (instruction-only), which is low-risk. The docs explicitly recommend falling back to 'npx --yes snipgrapher ...' if the binary is unavailable — this will fetch the package from npm at runtime. That behavior is expected for an npm CLI but carries the usual trust considerations of downloading packages from the registry.
Credentials
No required environment variables or credentials are declared. The README sensibly documents optional env vars (SNIPGRAPHER_PROFILE, THEME, etc.) that are proportional to the tool's purpose and are not sensitive credentials.
Persistence & Privilege
The skill is not always-enabled and does not request persistent system privileges or modify other skills or global agent settings. It is instruction-only and does not write persistent installers or tokens.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install snipgrapher - After installation, invoke the skill by name or use
/snipgrapher - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release of snipgrapher skill.
- Generate polished code snippet images in SVG, PNG, or WebP formats from source code.
- Configure reusable rendering defaults and named profiles for consistent output.
- Supports batch rendering of snippet assets for documentation, social media, or changelogs.
- Provides setup, configuration, and rendering workflow guides.
- Designed for automation and reproducibility using CLI flags, config files, or environment variables.
Metadata
Frequently Asked Questions
What is Snipgrapher - generate images from code snippets?
Configure and use snipgrapher to generate polished code snippet images. It is an AI Agent Skill for Claude Code / OpenClaw, with 612 downloads so far.
How do I install Snipgrapher - generate images from code snippets?
Run "/install snipgrapher" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Snipgrapher - generate images from code snippets free?
Yes, Snipgrapher - generate images from code snippets is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Snipgrapher - generate images from code snippets support?
Snipgrapher - generate images from code snippets is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Snipgrapher - generate images from code snippets?
It is built and maintained by Matteo Collina (@mcollina); the current version is v0.1.0.
More Skills