/odin-visual:snippet-image-renderingfrom ODIN Visual
Renders code snippets to polished PNG, SVG, or WebP images using snipgrapher. Writes only to explicit local paths; refuses remote actions or substitute renderers.
Ships in ODIN Visual. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | User explicitly mentions snipgrapher and wants code rendered as an image |
| Authority | Reversible local: writes only the named image file and, only when the user asks, a snipgrapher config file whose path and format are stated before writing; rollback is deleting only files this run created. No remote mutation. If the output path existed before the run, the pre-existing bytes are captured before overwrite and restored on failure. |
| Side effect | Writes one image file to the explicit output path; optionally writes a config file when the user requests it and its path and format are stated before writing |
| Done | The requested PNG, SVG, or WebP exists at the explicit path with non-zero size, produced through the profile actually used (default named when none supplied), with a one-line report of path and byte count |
Verify snipgrapher resolves from PATH.
command -v snipgrapher
If not found, stop with: snipgrapher is not installed or not in PATH. Install it before proceeding.
Done when: the executable resolves, or the workflow stops with the missing-dependency report.
Normalize the source. If a file path was supplied, verify it exists:
test -f <source_path>
If not found, stop with the missing-file report. If inline code was supplied, write it to a temp file with an extension derived from the language hint when the installed CLI consumes paths. If snipgrapher --help exposes a stdin pipe, pipe the inline snippet directly instead.
Done when: a readable source is available as a path or stdin stream, or the workflow stops with source-missing.
Construct the command from the installed version. Check available flags:
snipgrapher --help
Include --profile <name> only when help exposes --profile and a profile was supplied. Include --language <lang> only when help exposes --language and a language was supplied. If a requested flag is not exposed by the installed version, stop with unsupported-flag and report which flag was requested and what the help output shows.
Done when: every selected optional flag is both requested and supported by the installed CLI.
Render to the explicit output path. If the output path already exists, capture its bytes before overwriting:
cp <output_path> <output_path>.pre-existing
Run:
snipgrapher <source> --output <output_path> [validated flags]
Done when: snipgrapher exits successfully targeting the explicit output path.
Verify the artifact and report.
test -s <output_path> && wc -c <output_path>
If the file is missing or empty, stop with empty-or-missing-output and trigger rollback. On success, report the path, byte count, and the profile actually used (default named when none supplied). Remove the pre-existing backup if the render succeeded. Done when: the artifact exists with non-zero size and the one-line report is returned.
| Failure class | Rule |
|---|---|
snipgrapher-missing | Stop and report the missing dependency. Do not attempt alternative renderers. |
source-missing | Stop and report the nonexistent source path. |
unsupported-flag | Stop and report which flag was requested and what snipgrapher --help exposes. Do not retry with different flags unless the user instructs. |
render-failure | Stop and report snipgrapher's stderr. Do not retry with different flags unless the user instructs. |
empty-or-missing-output | Stop and report that rendering produced no output. Trigger rollback. |
rollback | If a pre-existing backup exists, restore it to the output path. Delete only files this run created (the output file if it did not pre-exist, any temp file, the backup). Do not delete files the user created before this run. |
The rendered image at the explicit path, then one report line naming the path, byte count, and profile used.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/automatic-cybernetic-flow-designUse when the user wants a cybernetic flow design document for an interactive system. Not for implementing or deploying the system./automatic-freeform-graphs-designUse when a user wants a looser conceptual graph for exploratory work. Not for remote, credential, publish, deploy, or irreversible changes./compile-3d-workflowUse when the user asks for direction and a compilable 3D workflow from an interview. Not for remote, credential, publish, deploy, or irreversible changes./diagramming-codeUse when asked for a call graph, class hierarchy, dependency map, containment or complexity view, a data-flow view, including attack-surface views, or to render an offline Mermaid diagram and embed it in a document. Modes: code-derived or document-embed. Not for interactive architecture visuals: use visual-diagram. Not for remote, credential, publish, deploy, or irreversible changes./docs-canvasUse when asked to render documentation as an interactive, navigable HTML canvas. Not for writing or restructuring docs./presentation-creatorUse when asked to create a presentation, pitch deck, or slides from a topic and audience, or to format supplied source items into a 16:9 HTML slide deck. Not for PowerPoint files.npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-visualOther plugins' skills for the same job