Skill library

Agent skill Web motion

3D Cloth Material

Use spatial graphics, scenes or materials to support a web experience.

  • 3D / WebGL
  • Three.js

Install the skill

Installation method

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

npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/3d/3d-cloth-material --skill 3d-cloth-material --agent claude-code --yes

Check this file in your project.claude/skills/3d-cloth-material/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/3d/3d-cloth-material --skill 3d-cloth-material

    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. The included HTML reference can be served by a local static server with Python 3.7 or later. The demo needs WebGL 2 and access to unpkg.com for Three.js 0.169.0. For your implementation, use the dependencies required by the Skill and your project.

View operation manual

What this skill helps with

  • Use spatial graphics, scenes or materials to support a web experience.

Good for

  • 3D on the web
Source instructions
SKILL.md in the installed package.
Reference
demo.html
Inputs to specify
Woven fabric choice (linen, silk, or wool), tangent-angle folds, rest-coordinate UVs, thread pitch and lighting in demo.html
What to verify
Freeze the same drape at two fold positions and inspect a close crop. Confirm the weave keeps its spacing and the rolled hem still has visible thickness when seen edge-on.
Skill name
3d-cloth-material
Repository
MengTo/Skills

Start with one behavior you can verify

Open-ended request

Use 3d-cloth-material and make this page look better.

It leaves the target, assets and expected behavior unstated. A working reference also needs to be tested separately from the implementation in your project.

A concrete starting point

  1. Open the reference and read the Skill’s implementation instructions.
  2. Identify the exact target and decide how to handle Woven fabric choice (linen, silk, or wool), tangent-angle folds, rest-coordinate UVs, thread pitch and lighting in demo.html.
  3. Review the new implementation on the target route.

3D Cloth Material operation manual

Inspect the included preview, adapt the documented technique to one target, and check the implementation in your own project.

Set aside [Local test route] and decide what to provide for Woven fabric choice (linen, silk, or wool), tangent-angle folds, rest-coordinate UVs, thread pitch and lighting in demo.html.

  1. Open the example in the installed folder

    The bundled example gives you a visual reference for the choices described in the Skill.

    • The assistant reports what actually rendered and identifies missing dependencies.
    Prompt · Step 1
    Use Meng To’s 3d-cloth-material Skill. Find its installed location, read SKILL.md, and inspect demo.html. Run python3 -u -m http.server 0 --bind 127.0.0.1 --directory "[Installed skill directory]", replacing the directory placeholder. Port 0 asks the OS for a free port. Append /demo.html to the loopback URL printed by that server and open the result. The demo needs WebGL 2 and access to unpkg.com for Three.js 0.169.0. Report what rendered and any missing asset or browser capability. When the inspection is complete, stop only the temporary server you started. Keep this pass read-only.
  2. Apply the technique to one target

    Tell the assistant what to use for Woven fabric choice (linen, silk, or wool), tangent-angle folds, rest-coordinate UVs, thread pitch and lighting in demo.html.

    • The change is visible on the local route.
    • You can identify where the project inputs are set.
    Prompt · Step 2
    Continue with the installed 3d-cloth-material Skill and its SKILL.md. Work on [Local test route] in [Project directory]. Use [Your values or decisions for Woven fabric choice (linen, silk, or wool), tangent-angle folds, rest-coordinate UVs, thread pitch and lighting in demo.html] and [Authorized assets or constraints]. Implement the documented technique in the project’s current stack, following the Skill’s actual dependency and asset requirements. Keep the change within [Target area]. Show the local route and where the approved inputs are set.
  3. Test the implementation in context

    Freeze the same drape at two fold positions and inspect a close crop. Confirm the weave keeps its spacing and the rolled hem still has visible thickness when seen edge-on.

    • Freeze the same drape at two fold positions and inspect a close crop. Confirm the weave keeps its spacing and the rolled hem still has visible thickness when seen edge-on.
    • Report checks run and any unverified behavior.
    Prompt · Step 3
    Open [Local test route] at [Desktop and narrow viewport sizes] and run the project’s relevant checks. Freeze the same drape at two fold positions and inspect a close crop. Confirm the weave keeps its spacing and the rolled hem still has visible thickness when seen edge-on. Test input or reduced motion where relevant to this Skill. Review surrounding layout and controls for regressions. Report what actually worked, the file or setting that controls it, and anything you could not test.

Look up a specific implementation problem

Use the implementation details and your own preview to narrow the issue.

Find where to adapt the exampleInputs
Command or reference
Woven fabric choice (linen, silk, or wool), tangent-angle folds, rest-coordinate UVs, thread pitch and lighting in demo.html
Examples
Freeze the same drape at two fold positions and inspect a close crop. Confirm the weave keeps its spacing and the rolled hem still has visible thickness when seen edge-on.
Check the bundled referenceHTML demo
Command or reference
demo.html
Examples
python3 -u -m http.server 0 --bind 127.0.0.1 --directory "[Installed skill directory]"

Troubleshooting and FAQ

What if I can open the Skill but the example looks different?

Use SKILL.md to identify assets, routes and runtime requirements. Record exactly which feature you could see before carrying the approach into your project.

Is a working demo enough to verify my implementation?

Test your project’s geometry, visuals and controls on the actual route. The bundled page primarily gives you a reference.