Skip to content
intellectronica avatar

Ray So Code Snippet

Turn a code snippet into a styled PNG image via ray.so, saved locally with full styling control.

CCM score
61 of 100
skills.sh installs
537
GitHub stars
305
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers theme, dark or light mode, gradient background, padding, line numbers, and title options
  • Asks for every styling parameter with the full theme and language lists fetched from ray.so's GitHub repository
  • Enforces an agent-browser availability check and captures the image at 4x pixel ratio for sharp text
  • Designed for sharing code snippets as images without hand-editing in a design tool

Install

$ npx -y skills add intellectronica/agent-skills --skill ray-so-code-snippet -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

ray.so Code Snippet Image Generator

Generate beautiful code snippet images using ray.so and save them locally.

Requirements

  • The user MUST provide the code snippet, either directly or by pointing to a file/selection in context
  • MUST ask the user for ALL styling parameters before generating, presenting ALL available options
  • MUST use agent-browser for screenshot capture (check availability first)

Workflow

Step 1: Verify agent-browser Availability

Before proceeding, verify that agent-browser is available:

which agent-browser

If agent-browser is not found in the PATH, inform the user that this skill requires agent-browser and cannot proceed without it.

Step 2: Fetch Available Options

Fetch the current themes and languages from ray.so's GitHub repository using curl:

# Fetch and parse available themes
curl -s "https://raw.githubusercontent.com/raycast/ray-so/main/app/(navigation)/(code)/store/themes.ts" | grep -oE 'id:\s*"[^"]+"' | sed 's/id:\s*"//;s/"//' | sort -u

Details

Repository
github.com/intellectronica/agent-skills
Category
Design & UI/UX
License
CC0-1.0
First seen
Jun 3, 2026

Questions

What does the ray-so-code-snippet skill do?

It generates beautiful code snippet images using ray.so and saves them locally to the current working directory or a user-specified path. It is meant for when you want to make code look pretty for sharing, such as a code image or code screenshot.

How do I install the ray-so-code-snippet skill?

Run npx -y skills add intellectronica/agent-skills --skill ray-so-code-snippet -y in a project. Once installed, the agent can create ray.so code snippet images when you ask for one.

What does the ray-so-code-snippet skill need to work?

It needs agent-browser available in the PATH, because screenshot capture depends on it. You must also supply the code snippet, either directly or by pointing to a file or selection in context.

Where does the ray-so-code-snippet skill stand in its category?

It is listed under Design & UI/UX on Claude Marketplaces, alongside frontend-design, ui-ux-pro-max and impeccable. It differs from those by focusing on turning code into a shareable image with ray.so styling options.

More from intellectronica/agent-skills

All 22

Similar to Ray So Code Snippet

More Design & UI/UX