Skip to content
Back to skills

Ghostty Shaders

ASecurity

Create, modify, debug, and optimize Ghostty terminal shaders using its Shadertoy-compatible GLSL interface. Use when working on custom Ghostty shader effects, focus behavior, cursor animation, or shader safety and validation.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agents

Works with

  • cursor
  • terminal

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add martinemde/dotfiles --skill ghostty-shaders --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ghostty Shaders?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ghostty Shaders
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/martinemde-ghostty-shaders/badge)](https://www.skillsdirectory.com/skills/martinemde-ghostty-shaders)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ghostty-shaders
description: Create, modify, debug, and optimize Ghostty terminal shaders using its Shadertoy-compatible GLSL interface. Use when working on custom Ghostty shader effects, focus behavior, cursor animation, or shader safety and validation.
---

# Ghostty shaders

Shaders live in `home/dot_config/ghostty/shaders/` and are enabled from
`home/dot_config/ghostty/style.ghostty` (`custom-shader = "shaders/NAME.glsl"`, repeatable to
chain; each shader's output is the next one's `iChannel0`). `custom-shader-animation` is
`true` (animate while focused), `false` (render only on terminal updates), or `always`.

Ghostty takes Shadertoy-style GLSL ES 3.0: `void mainImage(out vec4 fragColor, in vec2 fragCoord)`,
with `iChannel0` as the terminal screen.

**A shader that fails to compile can leave the terminal black.** Start from `noop.glsl`, change
one thing at a time, and keep a passthrough path (`fragColor = texture(iChannel0, uv)`).
Avoid the pitfalls that have bitten here: `1.0f` suffixes, HLSL `saturate()` (use `clamp`),
negative input to `sqrt`/`pow`, `mod(x, 0.0)`, uninitialized variables, and a function named
like a variable.

## Uniforms

Supported Shadertoy uniforms: `iChannel0`, `iResolution`, `iTime`, `iTimeDelta`, `iFrame`,
`iChannelResolution`. Not supported: `iMouse`, `iDate`, `iFrameRate`, `iSampleRate`,
`iChannelTime` — remove them when porting from Shadertoy.

Ghostty additions:

```glsl
vec4  iCurrentCursor, iPreviousCursor;            // .xy top-left, .zw width/height
vec4  iCurrentCursorColor, iPreviousCursorColor;
float iTimeCursorChange, iTimeFocus;              // timestamps; elapsed = iTime - t
int   iFocus;                                     // 1 focused, 0 not
```

Terminal shaders run every frame, so gate expensive work on `iFocus == 0` with an early
passthrough return, and keep texture lookups and loops minimal.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.