Skip to content

Guide · Agent skill

How to use the Three.js Landscape Backdrop agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The threejs-landscape skill gives an AI agent a detailed guide for building a 3D outdoor scene in Three.js, the JavaScript graphics library for web browsers. It is meant to sit behind a subject such as a building, product or figure so that it looks like it is standing somewhere rather than floating on a plain gradient. This page explains what the skill does, how to install it, how to ask for it in plain language, and what you need before you run the code it produces.

Three.js Landscape BackdropMengTo/Skills · MIT

Quick start

  1. 1Download the ZIP. Get the threejs-landscape skill ZIP from this page and unzip it.
  2. 2Place the skill folder. Move it into ~/.claude/skills/ for personal use or the project's .claude/skills/ folder for one project. Alternatively, upload it under Settings → Capabilities → Skills in the Claude apps.
  3. 3Prepare a Three.js page. Make sure you have a web page or bundler able to run Three.js and a browser with WebGL support.
  4. 4Ask for the scene. Describe the landscape in plain language and name Three.js and the skill, for example with $threejs-landscape.
  5. 5Review the code. Read the generated JavaScript and check the terrain by orbiting below the horizon once.
  6. 6Tune for performance. Reduce grass, star or stone counts if the page runs slowly on target devices.

What the skill makes the agent do

Once installed, the agent follows the skill's guidance when you ask for an outdoor 3D environment in Three.js. The skill covers building terrain on a polar grid centred under the camera, so resolution is spent where the viewer looks. It layers noise and warps the sample position to make hills look eroded rather than crumpled, colours the ground by slope and moisture instead of a tiled texture, and draws grass as instanced GPU geometry whose wind is computed in the vertex shader.

The skill also describes scattered stones, a six-stop gradient sky dome, a star field confined to the part of the sky the camera can actually reach, and a time-of-day system that cross-fades between states instead of cutting. The agent then writes this code for your web page rather than giving generic advice.

Install the skill (ZIP download or Claude apps upload)

Download the ZIP of the threejs-landscape skill from this page and unzip it. For a personal setup, place the folder in ~/.claude/skills/. For a single project, place it in that project's .claude/skills/ folder.

If you use the Claude apps instead, open Settings, go to Capabilities, and upload the skill under Skills. The skill package includes SKILL.md, which holds the guidance, plus a demo folder with an index.html reference and a PROMPT.md file of example prompts, and agents/openai.yaml.

  • Personal install: ~/.claude/skills/
  • Project install: .claude/skills/ inside your project
  • Claude apps: Settings → Capabilities → Skills, then upload

Trigger the skill with a natural request

You do not need special syntax. Describe the scene you want and what it has to sit behind. The demo prompts in the package name the skill directly with $threejs-landscape, which is a clear way to make sure it is used. Mention Three.js explicitly so the agent does not reach for another library.

Be specific about the feel: whether there is grass, stones, a sky, stars, and whether you want a time-of-day control. Say where the subject will sit in the frame.

  • Use $threejs-landscape to put this scene in a real place: a noise heightfield, instanced grass, a gradient sky, and morning/noon/sunset/night that cross-fade.
  • Build a Three.js hero background of a grass plain with soft hills on the horizon, behind a product in the centre of the page.
  • Create a single standalone HTML page in Three.js with a landscape, a star field at night and drag-to-orbit controls.

Example: what a good result looks like

The demo prompt asks for a single standalone HTML document with a grass plain running to soft landforms on the horizon, a six-stop sky, drag to orbit, wheel or pinch to zoom, four times of day that cross-fade, stars at night, and a grid toggle that reveals the polar heightfield underneath. Use that list as a model for your own request and remove anything you do not need, since every extra feature adds work and weight to the page.

  • Terrain sampled on a polar grid centred under the camera
  • Grass that stays dense wherever the camera looks
  • Stars appearing only at night
  • A grid toggle to show the heightfield structure

What you need before you start

The skill's output is JavaScript for a browser. You need the Three.js library, a web page or bundler setup able to run Three.js code, and a browser with WebGL support. The skill is a guide for the agent, not a finished app, so someone comfortable running a web page still has to place the generated code into a project and check it on screen.

The skill does not run scripts and does not use the network, according to its listing. Treat generated code like any other code you add to a site and review it before deploying.

  • Three.js library
  • A web page or bundler that can run Three.js
  • A browser with WebGL support

Safety notes: scripts and network

The skill package is listed as not running scripts and not using the network. Its files are a markdown guide, a demo HTML page, a prompt file and an agents configuration file. The code it helps produce runs in the visitor's browser, so review it as you would any front-end code, especially if you change it to load external assets.

  • Runs scripts: no
  • Uses network: no
  • Review generated front-end code before publishing

Tips for better results

Keep the subject in the foreground and let the landscape stay quiet. The skill's own advice is that the backdrop has one job: making the subject look like it is somewhere. Start with a small number of features, then add weather or extra time-of-day states later.

Watch performance. Thousands of grass blades and stars can be heavy on low-powered devices, so ask the agent to tune counts for your target. Check the terrain winding by orbiting below the horizon once, as the skill recommends, and keep the ground height function shared by grass and stones so they do not float or sink.

  • Keep the subject as the focus and the landscape quiet
  • Add features in stages and check each one
  • Tune grass and star counts for slower devices
  • Orbit below the horizon once to check the ground winding

What people use it for

  • A hero section where a product sits on grass and hills instead of a flat gradient.
  • A scroll-driven web scene that moves the camera across a landscape as the reader scrolls.
  • A product stage with a time-of-day control that cross-fades between morning, noon, sunset and night.
  • A portfolio page showing a building or figure standing in an outdoor 3D place.

Frequently asked questions

Is the threejs-landscape skill free to use?

The skill is published under the MIT licence, as stated on this page. Check the licence file in the package for the full terms before using it in a commercial project.

How do I install the threejs-landscape skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use or a project's .claude/skills/ folder. In the Claude apps you can instead upload it under Settings → Capabilities → Skills.

What do I need to run the code the skill produces?

You need the Three.js library, a web page or bundler able to run Three.js code, and a browser with WebGL support. The skill is a guide, so you still need to place the output into a working page.

Does the skill run scripts or use the internet?

According to its listing, the skill does not run scripts and does not use the network. The generated code runs in the visitor's browser, so review it before publishing.

Can I use this skill without Three.js?

No. The code and advice are specific to Three.js. If your project uses a different 3D library or no 3D at all, this skill is not the right fit.

Why is my page slow after using the skill?

Large numbers of grass blades and stars can be heavy, especially on low-powered devices. Ask the agent to reduce the counts and test on the devices your visitors use.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you are a front-end developer or designer working in Three.js who wants a realistic outdoor backdrop for a hero section, product stage or scroll scene, and you are comfortable reviewing browser code. Pick something else if you do not write or run web code, if your project does not use Three.js, or if you need a finished app on a very low-powered device.

Download the skill