Skill library

Agent skill Web motion

Three.js Lighting

Create a visual effect for a web page or interactive component.

  • Visual effects
  • Three.js

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add CloudAI-X/threejs-skills --skill threejs-lighting --agent claude-code --yes

Check this file in your project.claude/skills/threejs-lighting/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add CloudAI-X/threejs-skills --skill threejs-lighting

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring an existing Three.js project and a local preview. Check the installed version and renderer first.

View operation manual

What this skill helps with

  • Create a visual effect for a web page or interactive component.

Good for

  • Interactive visual effects
Inputs
Target, floor, existing shadow setup and camera framing
Exercise
Tune one directional shadow without hiding the subject
Acceptance
Compare the same screen before and after at a grazing angle and at the normal view. Check that the target touches a visible shadow and inspect any acne, detached shadow or clipped edge.
Skill name
threejs-lighting

Keep the change to a scene you can compare

Open-ended request

Make the whole 3D scene better.

Without a baseline and scoped inputs, you cannot tell which adjustment solved the problem.

A reproducible outcome

  1. Tune one directional shadow without hiding the subject
  2. Target, floor, existing shadow setup and camera framing

threejs-lighting operation manual

Tune one directional shadow without hiding the subject

Target, floor, existing shadow setup and camera framing

  1. Check the current scene

    Check the current scene

    Prompt · Step 1
    Use CloudAI-X’s threejs-lighting and read the installed SKILL.md. The scope is [Project and preview route]. Open [Scene] with its normal camera and identify the directional light, shadow camera, target and which objects cast or receive a shadow.
  2. Apply the documented technique

    Tune one directional shadow without hiding the subject

    Prompt · Step 2
    Use CloudAI-X’s threejs-lighting and read the installed SKILL.md. The scope is [Project and preview route]. Keep one test light. Enable the relevant shadow settings and fit its shadow camera to [Visible target and floor]. Tune bias and normalBias only when the current scene shows artifacts. Keep the camera and renderer settings stable when comparing.
  3. Verify the rendered behavior

    Verify the rendered behavior

    • Compare the same screen before and after at a grazing angle and at the normal view. Check that the target touches a visible shadow and inspect any acne, detached shadow or clipped edge.
    Prompt · Step 3
    Use CloudAI-X’s threejs-lighting and read the installed SKILL.md. The scope is [Project and preview route]. Compare the same screen before and after at a grazing angle and at the normal view. Check that the target touches a visible shadow and inspect any acne, detached shadow or clipped edge.

Look up a specific implementation problem

Ask the assistant to use the current preview and installed dependency as evidence.

What inputs are required?threejs-lighting
Command or reference
SKILL.md
Examples
Target, floor, existing shadow setup and camera framing
How do I verify the real effect?Browser
Command or reference
Tune one directional shadow without hiding the subject
Examples
Compare the same screen before and after at a grazing angle and at the normal view. Check that the target touches a visible shadow and inspect any acne, detached shadow or clipped edge.

Troubleshooting and FAQ

Why may an example fail in my project?

Confirm Three.js and its addons use matching versions and check the renderer required by that example.

How do I judge the result?

Compare the same screen before and after at a grazing angle and at the normal view. Check that the target touches a visible shadow and inspect any acne, detached shadow or clipped edge.