intellectronica avatar

Ray So Code Snippet

Turns ray.so's gradient code screenshots into a proper CLI workflow. It fetches the latest themes and languages directly from ray.so's GitHub repo, walks you through every styling option (theme, padding, dark mode, background, line numbers), then uses agent-browser with the html-to-image library to capture at 4x resolution for crisp text. Smart enough to infer language from file extensions or syntax so you're not always answering questions. The implementation is thorough, maybe overly so. It base64 encodes your code, builds the URL hash correctly, and saves a PNG to your current directory. If you're already using ray.so manually and want to skip the browser, this automates the whole thing with better image quality than a screenshot.

skills.sh installs
522
GitHub stars
301
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/intellectronica/agent-skills
Category
AI & Agent Building
License
CC0-1.0
First seen
Jun 3, 2026

More from intellectronica/agent-skills

All 22
1plugin87 avatartoken-buildplugin87/ux-ui-agent-skillsSet up or run the token build pipeline — transform the DTCG tokens/*.json (source of truth) into platform artifacts (CSS variables, Tailwind @theme, JS/TS, iOS 522skills.sh installs
2jwynia avatarresearch-workflowjwynia/agent-skillsGuide agents through structured research including planning, multi-query execution, source analysis, and synthesis. Use for comprehensive topic research, deep i521skills.sh installs
3meleantonio avataracademic-paper-writermeleantonio/awesome-econ-ai-stuffDraft economics papers with proper structure and academic style521skills.sh installs
4robdefeo avataramazon-working-backwardsrobdefeo/agent-skillsGuide the Amazon Working Backwards process from the 5 Questions through to a full PR-FAQ document. Use when the user wants to (1) draft answers to the Amazon 5 520skills.sh installs
5tuist avatarfix-flaky-teststuist/agent-skillsFixes flaky tests by analyzing failure patterns from Tuist test insights, identifying root causes, and applying targeted corrections. Can be invoked with a spec520skills.sh installs
6aj-geddes avatarsecurity-headers-configurationaj-geddes/useful-ai-promptsConfigure HTTP security headers including CSP, HSTS, X-Frame-Options, and XSS protection. Use when hardening web applications against common attacks.519skills.sh installs