/ghibli-threejs:threejs-ghibli-sky-cloudsfrom ghibli-threejs
Builds a Studio Ghibli–style painterly sky dome and instanced cumulus clouds for three.js scenes. Includes gradient shader, sun halo, horizon haze, and toon-shaded cloud puffs with silver linings.
Ships in ghibli-threejs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Produces the anime sky of a Ghibli background painting: a saturated blue zenith, a pale turquoise mid-sky, warm cream at the horizon, a haze band that blends into the terrain fog with no visible seam, a soft glowing sun, and fair-weather cumulus with cream tops, sky-blue sides and lilac bellies.
Stack: three.js WebGLRenderer (tested on r186), vanilla or React Three Fiber. The sky is a ShaderMaterial on a BackSide sphere; the clouds are a single InstancedBufferGeometry draw with a custom ShaderMaterial. Both read a shared uSunDir/uSunColor uniform object, so anything that already moves the sun (a day cycle, a GUI) drives them for free.
Enhance the sky and clouds of the three.js scene in
{{entry file}}toward an authentic Studio Ghibli look. Target:{{reference image}}— {{style, e.g. "vibrant sky gradient, fluffy painterly cumulus, warm sunlight"}}. Keep every tunable as a named constant at the top of the script and in a lil-gui "Ghibli Tune" folder. Anything that already drives the sun must keep driving the new shaders.
- Painterly sky dome. Custom
ShaderMaterialon an inverted sphere: zenith → mid-sky → horizon warmth by view height and sun elevation; a soft hand-painted haze band at the horizon blended into the fog colour with a non-linear smoothstep ramp (the ground must never meet the sky on a hard line); a soft painted sun glow from the sun-direction uniform, never a hard disc. Dither the output.- Hand-painted clouds. One instanced icosphere (detail 3,
mergeVerticesfirst), ~150 puffs with per-instanceaPos / aCenter / aDrift: a flat row of belly puffs plus a cauliflower crown. Three tones — warm cream sunlit tops, saturated turquoise/light-blue mid-tones, warm lilac undersides — keyed ondot(normal, sunDir)with smoothstep edges so contours look brushed. Blend each puff normal toward the whole-cloud normal. Tear the limbs with drifting 3D fbm, add core occlusion, a powder term and Henyey–Greenstein forward scattering for silver linings that turn fiery at dusk. Drift slowly and wrap.- Set the sky's haze colour from
scene.fog.colorevery frame. Screenshot close-up, eye-level and wide views after each step and fix flaws before moving on. Report the frame cost.
references/sky-dome.glsl)SphereGeometry(500, 48, 24), side: BackSide, depthWrite: false, fog: false, renderOrder = -10. In the vertex shader set gl_Position.z = gl_Position.w so it sits on the far plane.t = clamp(dir.y, 0, 1): mix(horizon, mid, smoothstep(0, hazeH*1.6, t)), then mix(…, top, smoothstep(hazeH, .85, pow(t, .8))).haze = pow(1 - smoothstep(-.04, hazeH*.55, y), hazePow); c = mix(c, fogColour, haze). Values that worked: hazeH = 0.14, hazePow = 2.2 (>1 hugs the horizon).pow(max(dot(sunXZ, dirXZ), 0), 3) * (1 - smoothstep(0, .35, y)), mixed ~0.45 toward a warmer horizon colour.(1 − cosA) (widths 90, 11, 2.2 divided by a size uniform; weights .75/.28/.08) — no disc. Normalise the sun colour by its max channel for the tint.c *= mix(.55, 1., smoothstep(-.05, .35, sunDir.y)); the day cycle lerps top/mid/horizon toward a dusk palette.c += (hash(gl_FragCoord.xy) - .5) / 255. removes gradient banding.0x3684d8, mid 0x8ccbee, horizon 0xf7e6c6, fog 0xdcefe4; dusk 0x3a5f9a / 0xe9a26f / 0xffb46a.scene.fog.color into the sky's low (haze) uniform so the horizon always matches the fog, whatever the day cycle, weather or night blend did to it.references/cloud-puffs.js)w*(.15+.08r)*sqrt(1-|u|*1.4)), then 4–7 crown puffs peaking off-centre. Two layers: near at 170–250 m (55–110 m up), far at 380–540 m, bigger, higher and sinking into haze. A sparse sky (≈9 clouds) reads more like a painting than a full one.fbm3(n*2.6 + seed) - .5 times a lump amount (~0.38), squash Y (~0.68 → thin fair-weather clouds). Drift the whole cloud together: shift = mod(c.x + t*drift + 420, 840) - 420 - c.x, applied to puff and centre.vCN = normalize((p - centre) * vec3(1, 1.7, 1)); shading normal mix(puffN, vCN, ~0.42) (higher = one smooth lump, lower = a bag of balls).dot(puffN, V) torn by drifting fbm: alpha = smoothstep(.02, .5, rim + (wisp - .5)*.6) * 0.8; discard below .02. Material: transparent: true, depthWrite: true.l = dot(N, L) + noise*.35; k1/k2 = smoothstep around edges lo = −0.42, hi = −0.06 (seen from below most of a cloud is side/belly, so keep these low), softness 0.10. Colours: lit 0xfff8e8, mid 0xb4dcef, shade 0x9a8fc6.mix(fog, zenith, .5 + .5*N.y); flatten and shade bellies by vCN.y.c *= mix(.6, 1., smoothstep(-.35, .75, dot(puffN, vCN))).c *= .84 + .3*fbm3(p*.11); brighten just inside lit edges with 1 − exp(−2.2(1 − rim)).g = 0.62, normalised so forward = 1, times limb thinness, boosted at low sun (fiery at dusk).0xffe2a8 normalised is ~(1, .75, .4) and reads orange.frustumCulled = false, and hide it from the AO pass.fog.color every frame.IcosahedronGeometry without mergeVertices renders faceted after displacement.l reads painted.threejs-postprocessing-anime-grade).pow(nearMoon, 24)), and read the visual moon direction, not a clamped light direction.threejs-day-cycle-lighting, threejs-ghibli-night-mode, threejs-ghibli-toon-shading, threejs-postprocessing-anime-grade, threejs-webgl-rain-effect.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nicksonthc/ghibli-threejs --plugin ghibli-threejs31 skills in this plugin
/threejs-blender-glb-pipelineBuilds a reference-image-driven asset pipeline from headless Blender to GLB for a three.js scene — an asset contract (units, axes, grounding, required mesh/material names, budgets, attachment numbers), one parallel subagent per asset group writing craft_<slug>.py generators, preview renders compared against the reference, measured-bounding-box placement in the web scene, Draco compression, and a scored asset quality pass. Use when the user has a reference picture and wants a 3D scene from it, asks to model props/trees/characters in Blender for three.js, export GLBs, fix glTF export issues (vertex-colour alpha, UV flip, axes, custom normals), compress models, or rate and improve every asset in a scene./threejs-boat-buoyancy-steeringFloats a boat (or any buoyant prop) on three.js water with Gerstner waves generated from one JS table that feeds both the GLSL vertex shader and a CPU waveHeight(), four-probe heave/pitch/roll damped springs, an arc-length drift lane that bends round rocks, click-to-steer W/A/S/D rowing with momentum and drag, an autopilot that pursues the lane back, and a chase camera that keeps the orbit. Use when the user wants a drifting or steerable boat, buoyancy, objects bobbing on waves, Gerstner waves on a river/lake, a boat autopilot, or a follow/chase camera behind a vehicle on water./threejs-camera-guided-tourBuilds a hands-free guided camera tour for a three.js scene — keyframes as data, a time-parametrised Catmull-Rom (Hermite) path with continuous velocity, one camera-owner flag, the tour driving time of day and a day→night blend, staged creatures crossing the frame, handwritten captions, portrait-phone lens widening, instant hand-back on drag/scroll/tap/Esc, and a seek() hook for screenshots and video capture. Use when adding a tour mode, cinematic flythrough, attract mode, camera path animation, keyframed camera, spline camera or showcase video capture to a WebGL scene./threejs-cinematic-loading-screenBuilds a cinematic loading gate for a three.js scene — a painted CSS dawn (layered gradients, drifting blurred mist bands, optional conic god rays, SVG feTurbulence grain, vignette), a 2D-canvas layer of falling petals and glowing motes, a handwritten title that animates in, a gold progress line with stage captions, then "tap anywhere to enter" whose tap is the browser gesture that unlocks audio; uses a still captured from the live scene as the backdrop that cross-fades into the real render, and warms up shaders before lifting so the first interaction never stalls. Use when adding a loading screen, splash screen, intro curtain, preloader, tap-to-start / audio unlock gate or shader pre-compilation to a WebGL scene./threejs-day-cycle-lightingAnimates the sun in a three.js scene from sunrise to sunset through a single applySun(az, el) writer — azimuth sweep, elevation arc, warm-to-gold light colour, horizon falloff, warming sky dome and fog, re-aimed god rays and every sun-driven shader uniform — plus a cinematic "sun follows the lens" mode that keeps the sun beside the camera heading for backlit shots with boosted god rays and forward scattering. Use when adding a day/night cycle, time-of-day slider, sunrise/sunset, moving sun, backlit tour shots, or when several systems fight over the sun direction in WebGL/R3F./threejs-dreamy-glass-hudTurns a three.js scene's DOM overlay into one coherent, dreamlike HUD — a single frosted-glass material shared by every pill, badge and popover whose colours are registered CSS properties so the whole HUD cross-fades from pearl to deep indigo as the scene turns to night; an inline-SVG icon dock whose lit toggles glow gold instead of shouting; a glass popover in place of a native select; first-visit hints "whispered" in handwriting that step aside the moment the visitor understands; a HUD that drifts away after half a minute of stillness; a mote of light under each tap; a staggered arrival after the loading gate; and letterbox bars during a camera tour. Use when the overlay UI looks like a dev panel on top of a beautiful scene, when asked for a dreamy, cinematic, premium or 梦幻 / 绝美 UI, glassmorphism, a day/night-aware HUD, onboarding hints, auto-hiding UI, tap feedback, or to restyle lil-gui to match.