Communitygithub.com

Playful-Design/liquid-glass-skill

Single entry point for every glass GLSL shader, from words or an image. Picks the shape (animated liquid glass background via glsl-liquid-glass; 3D glass letters in any font or vibe via glsl-sdf-typography, with dots and accents replaced by shapes via glsl-sdf-shapes; a glass card, button or panel via glsl-glassmorphism) and the kind of glass (plain liquid, shard / broken glass, prism, crystal / gem), recognized automatically from the words or a reference image. Always delivers GLSL code. Understands the short syntax /liquid-glass-skill 'happy birthday' letter i in birthday shape heart background purple glass crystal, as well as plain sentences. Use when the user runs /liquid-glass-skill, or asks for any glass, liquid glass, glassmorphism, crystal, prism, gem, shard or broken glass shader, background, card, button, word, name, title or sentence, or shares an image of glass.

liquid-glass-skill란 무엇인가요?

liquid-glass-skill is a Claude Code agent skill that single entry point for every glass GLSL shader, from words or an image. Picks the shape (animated liquid glass background via glsl-liquid-glass; 3D glass letters in any font or vibe via glsl-sdf-typography, with dots and accents replaced by shapes via glsl-sdf-shapes; a glass card, button or panel via glsl-glassmorphism) and the kind of glass (plain liquid, shard / broken glass, prism, crystal / gem), recognized automatically from the words or a reference image. Always delivers GLSL code. Understands the short syntax /liquid-glass-skill 'happy birthday' letter i in birthday shape heart background purple glass crystal, as well as plain sentences. Use when the user runs /liquid-glass-skill, or asks for any glass, liquid glass, glassmorphism, crystal, prism, gem, shard or broken glass shader, background, card, button, word, name, title or sentence, or shares an image of glass.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Playful-Design/liquid-glass-skill/tree/HEAD/liquid-glass-skill

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

/liquid-glass-skill: one command, any glass

Two choices make every shader: the shape (section 1) and the glass (section 1b). The result is always GLSL code: one complete Shadertoy-compatible mainImage in a .glsl file, whatever the user gives (words, an image or a shader). An .html preview is extra, never a replacement.

1. Pick the shape (mode)

The request contains…ModeFollow
No text to write and no card: /liquid-glass-skill alone, "make a liquid glass shader", "a liquid glass background", a glass objectBackgroundthe glsl-liquid-glass skill, exactly as written
Text to write: quoted text, words right after /liquid-glass-skill, or "write …"Letteringthe glsl-sdf-typography skill (and glsl-sdf-shapes for any shape)
card, button, panel, glassmorphism, UI glassCardthe glsl-glassmorphism skill; background COLOR recolors its fluid backdrop

1b. Pick the glass (material)

The user never has to name it: recognize it from the words or the image. Typing glass TYPE forces it.

GlassWords that point to itWhat you see in a reference imageRules
shardbroken, shattered, cracked, smashed, shard, fragment, splinterA thin plate with a jagged outline; flat faces; thickness visible as thin bright edgesmaterials/shard.md
prismprism, triangular or pyramid glass, rainbow through glass, light splitting, spectrumA regular geometric solid; rainbow rays thrown around itmaterials/prism.md
crystalcrystal, gem, diamond, jewel, quartz, cut glass, faceted, chandelierMany facets, white sparklematerials/crystal.md
none (plain liquid glass)everything elseSmooth, flowing, organic formsnothing to read
  • When two fit: broken + anything → shard; rainbow rays are the subject → prism; facets and sparkle are the subject → crystal. If still unclear, pick one and say so in one line.
  • With an image: before coding, describe it in one sentence ("Looks like a glass shard: flat faces, jagged outline, bright thin edges."), then name the glass.
  • Read only the one materials/ file you need (next to this file). Write the shader with the mode's skill, then apply the material's rules before delivering. Where they disagree on physics, the material wins; shape, lights, background and pipeline always come from the mode's skill or the user's image.
  • With the Background mode and a material, use glsl-liquid-glass's natural mode, plus its prism or broken option for the shape.
  • Materials change values, never content. They only set index, dispersion, Fresnel, absorption and thin-film. They may dim or turn off an existing light or reflection the reference image doesn't show; they never add or move lights, streaks, lines, outlines, glows or objects. If a look needs more, tell the user.
  • Check by rendering at least two moments, compared with the reference image when there is one.
  • Tell the user the glass you detected and why (one line), and a short table setting | before | after | why.

The /shard, /prism and /crystal shortcuts apply one material to a shader the user already has, saved as <name>.<glass>.glsl next to the original (the original stays unchanged).

In Lettering mode the text is cut out of one continuous liquid glass surface (the original deep iridescent colors on dark backgrounds, soft pastel glass on light ones): the liquid flows across all the letters as one material, and the background around them is one solid color (black unless the user picks another) or an image. If the user asks for the liquid all around the letters too, explain that the letters can no longer be read there and keep the solid color.

2. Short syntax

/liquid-glass-skill 'TEXT' [letter X [in WORD] [OCCURRENCE] shape SHAPE [whole] [small|big|bigger] [COLOR] [melted]]... [vibe NAME | font NAME [bold|italic|weight N]] [background COLOR | image PATH [clear|liquid]] [tint COLOR] [rainbow] [3d] [lines N] [glass TYPE] [FINISH]
/liquid-glass-skill card [background COLOR] [glass TYPE] [FINISH]
/liquid-glass-skill [glass TYPE] [FINISH]
PartMeaningDefault
'TEXT' or "TEXT"Text to write, exactly as typed (case, accents, punctuation). Without quotes: every word after /liquid-glass-skill up to the first keyword. A / inside the text forces a line break.required
letter XCharacter whose dot or accent is replaced (see the marks table in glsl-sdf-typography)none
in WORDOnly the occurrences of X inside that wordevery word
OCCURRENCEfirst, second, third, last, all, or a numberall occurrences
shape SHAPEA shape from the glsl-sdf-shapes catalogue: circle, heart, star, sparkle, diamond, moon, full moon, flower, plus, butterfly, butterflies, cloud, crown, spade (ace of spades), club (trèfle). French names work toorequired after letter
whole after the shapeThe shape replaces the WHOLE letter, not just its dot ("a full moon instead of the o"): any letter works. Script --replace "o=fullmoon"only the dot or accent
small / big / bigger after the shapeShape size: ×0.7 / ×1.5 / ×2 (script --mark "i=heart*2"). An enlarged shape moves away from its letter to keep its gap. Fine calligraphy fonts (vibe romantic) have tiny dots: use bigger there by defaultthe size of the original dot, a little larger
COLOR after the shapeColored glass for that shape only (e.g. shape heart red)same glass as the letters
meltedShape fused into the letter instead of floating above itfloating
font NAMEAny Google Fonts family (font Pacifico, font 'Playfair Display' weight 800), a font file path, or font tubes for hand-built neon tubesDM Serif Display
vibe NAMEA mood that picks a font and its settings: adventure (bold), cloud (fluffy, soft), medieval, romantic (valentine), cartoon (old design), dripping (wet paint). The full list and aliases are in glsl-sdf-typographynone
background COLORSolid background: a color name (table below), light/dark + name, or a hex code #RRGGBBblack #000000, or the vibe's color
image PATHThe text sits on that picture, and the glass bends it. Also writes a .html that plays it live in a browser. clear = clear glass showing the picture, liquid = liquid letters onlyliquid with a little of the picture
tint COLORHue of the pastel glass (tint pink, tint white for almost clear glass)the background's hue, softened
rainbow / pastelrainbow: the original deep, iridescent liquid glass colors. pastel: soft pearly glassrainbow on a dark background, pastel on a light one or on an image
3dEach letter as a separate puffy 3D glass object (the older look) instead of one glass surface cut into the textone surface
lines NNumber of linesautomatic
glass TYPEshard, prism or crystal (section 1b). Optional: recognized automatically from the words or imageplain liquid glass
FINISHfrost, polished, denser, lighter, transparent, translucent: applied after generating, with that skillnone
  • Several letter … shape … groups can follow each other.
  • Keywords may come in any order after the text, and French works too: lettre, dans, forme, fond, lignes, police (font), gras (bold), italique, ambiance / style (vibe), image / photo.
  • A mood said in a sentence ("in a fairy-tale style", "something romantic") means vibe. An image attached to the message means image: save it to a file in the working directory first.
  • Plain sentences mean the same thing: "write happy birthday Chloe, replace the dot of the i of birthday by a star, purple background".
  • If something cannot be read without guessing (two possible texts, an unknown keyword), ask one short question.

Color names

NameHexNameHex
black#000000white#FFFFFF
cream#F2EEE6light grey#D9D9DE
dark grey#1E1E22navy#0B1430
blue#2747A8light blue#BFD9F2
purple#6B40A1lilac / lavender#C9B6E8
pink#F2A7C3hot pink#E0408A
red#B3202Aorange#E8772E
yellow#F2D04Agreen#2E8B57
mint#BDECD6teal#1F7A7A

Any other name: choose a sensible hex and state it. light X / dark X: mix X 50% with white or black.

Examples

CommandReading
/liquid-glass-skillBackground mode
/liquid-glass-skill 'Mia'"Mia", black background
/liquid-glass-skill 'happy birthday' letter i in birthday shape heart background purplei of birthday → heart, purple #6B40A1
/liquid-glass-skill 'pixel jam' letter i shape star letter j shape diamond background creami → star, j → diamond, cream
/liquid-glass-skill 'Bonjour / Chloé' lettre é forme lune fond #FDE2E42 lines, accent of é → moon, pale pink
/liquid-glass-skill 'Mia' letter i shape heart red frostred glass heart, then /frost
/liquid-glass-skill 'I love / Playful Design!' letter i in Design shape star letter ! shape heart font Pacifico background light purplescript font Pacifico, i of Design → star, ! → heart, #B5A0D0
/liquid-glass-skill 'Be mine' letter i shape heart vibe valentineLavishly Yours, i → heart, blush #F6D5DC
/liquid-glass-skill 'Summer!' letter ! shape heart vibe cloud image ~/Pictures/beach.jpgRubik Bubbles on the photo, plus summer.html to watch it live
/liquid-glass-skill 'Mia' glass crystal"Mia" in cut-crystal glass, black background
/liquid-glass-skill card background lavender glass shardglassmorphism card on lavender, broken window glass
"a glass prism throwing rainbows"Background mode, prism (detected)

3. Before the code

Print the reading so the user can check it:

ModeTextLinesMark editsFontBackgroundGlass
Letteringhappy birthday1i in birthday → heart (floating)DM Serif Displaypurple #6B40A1none
LetteringSummer!1! → heartRubik Bubbles (vibe cloud)image beach.jpgnone
Card————lavender #C9B6E8shard

Then follow the skill for the mode, then the material. Name the file after the text (happy-birthday.glsl), glass-card.glsl in Card mode, or liquid-glass.glsl in Background mode. Never overwrite an existing file: add -2, -3… to the name. The .glsl file is always delivered; an .html preview only alongside it.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

관련 스킬