ray

A tool for turning source code into styled PNG images, or picture files.

In plain words
What is it for?
Use it to create code images for documentation, presentations, examples, or social posts from supported programming and markup languages.
Why use it?
It avoids manually formatting code screenshots and provides consistent themes, layouts, and optional line numbers.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/railly/tinte/ray
Any agent
npx skills add Railly/tinte --skill ray
Clone the repo
git clone --depth 1 https://github.com/Railly/tinte

Made for: Claude Code, Codex.

Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 847 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00052 $0.00847
Opus 5 $0.00026 $0.00424
Sonnet 5 $0.00010 $0.00169
Haiku 4.5 $0.00005 $0.00085

Measured 2d ago against content hash b649a8cbc7e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ray scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. Call the API via curl
skills/ray/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ray - Code Screenshots

Generate code screenshots by calling the ray.tinte.dev API.

API

POST https://ray.tinte.dev/api/v1/screenshot
Content-Type: application/json

Parameters

Param Type Default Notes
code string required 1-10,000 chars
language string "typescript" typescript, javascript, python, rust, go, java, cpp, c, html, css, json, bash, sql, markdown, toml
theme string or TinteBlock "one-hunter" Slug from tinte.dev or inline object
mode "dark" | "light" "dark"
padding number 32 0-256
fontSize number 14 8-32
lineNumbers boolean true
title string "" Window chrome title (max 100)
background string "midnight" One of: midnight, sunset, ocean, forest, ember, steel, aurora, none. Hex colors are not accepted.
format "png" "png" PNG only
scale number 2 1-4 (retina)

Notes

  • background: "none" returns a transparent RGBA PNG. Useful when you want to composite the screenshot onto a custom background.
  • Returned PNGs always include some transparent margin around the window for the drop shadow, even with padding: 0. If you're compositing the result, trim that halo first (e.g. magick input.png -trim +repage output.png).
  • Long snippets can take 30-60+ seconds to render. Use a per-request timeout when calling from scripts or agents.

Workflow

  1. Identify the code to screenshot (from file, clipboard, or user input)
  2. Detect language from file extension or content
  3. Call the API via curl
  4. Save the PNG and open it

Example

curl -s -X POST https://ray.tinte.dev/api/v1/screenshot \
  -H 'Content-Type: application/json' \
  -d '{
    "code": "const greeting = \"Hello, world!\";",
    "language": "typescript",
    "theme": "one-hunter",
    "title": "hello.ts"
  }' -o screenshot.png && open screenshot.png

Language Detection

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 84 lines · 52 tokens per session scan A b649a8cbc7e5

Subscribe to this mod's changes

ray is a skill published in the GitHub repository Railly/tinte (618 stars, last pushed 25d ago), licensed MIT. It adds 52 tokens to every session and 847 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ss-studio

Turn a product brief and optional references into three distinct creative directions, a human-selected StyleSeed interaction plan, generated image/video asset jobs, a working UI prototype, and a verified prototype-first showcase reel. Use for client concepts, app interaction exploration, trendy but coherent UI…

bitjaru/styleseed · 75 tokens

video-transcripts

Generate structured video transcripts from local files or video URLs using Gemini Files API. Use when a GitHub or Linear tracker item, comment, or attachment includes a screen recording, .mov, .mp4, or tracker-hosted video and you need a block instead of hand-written notes.

udecode/plate-playground-template · 66 tokens

chatgpt-cli

Drives ChatGPT from the terminal via cli-web-chatgpt — ask questions, generate and download images, list and view conversations, browse models, and manage OpenAI SSO auth. Use when the user wants to ask ChatGPT something, generate images with ChatGPT, or browse their ChatGPT conversations from the command line. Prefer…

ItamarZand88/CLI-Anything-WEB · 84 tokens

pexels-cli

Searches and downloads free stock photos and videos from Pexels via the cli-web-pexels command-line tool — keyword search with orientation/size/color filters, photo and video details, downloads, photographer profiles, and collections. Use when the user asks about Pexels, free or royalty-free stock photos and videos…

ItamarZand88/CLI-Anything-WEB · 94 tokens

unsplash-cli

Searches and downloads free Unsplash photos via the cli-web-unsplash command-line tool — keyword search with orientation/color filters, photo details (EXIF, location, tags), downloads, random photos, topics, collections, and photographer profiles. Use when the user asks about Unsplash, free stock photos, or wants to…

ItamarZand88/CLI-Anything-WEB · 94 tokens

youtube-cli

Searches YouTube and fetches video transcripts via the cli-web-youtube command-line tool — video search, video details (views, duration, description, keywords), trending by category, channel info, and timestamped transcripts/captions with language selection and translation. Use when the user asks about YouTube…

ItamarZand88/CLI-Anything-WEB · 105 tokens