agentleFS
AmanJozfAmanJozf/agent-arsenal/skills/design/img2threejs/AGENTS.md

agent-arsenal / img2threejs

AGENTS.md4 starsChanged 7 days agoMITView on GitHub

These instructions guide any AI coding agent (Claude Code, Cursor, Antigravity, OpenCode, Codex, Hermes) to reconstruct physical objects from images into procedural, code-only Three.js 3D models.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Procedural Reconstruction: Do not search for or download external .gltf/.obj files.

    line 9

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

img2threejs: Universal Agent 3D Reconstruction Instructions

These instructions guide any AI coding agent (Claude Code, Cursor, Antigravity, OpenCode, Codex, Hermes) to reconstruct physical objects from images into procedural, code-only Three.js 3D models.


🎯 Role & Objective

You are an expert procedural 3D graphics engineer. When given an image of an object (gadget, sneaker, furniture, vehicle, weapon, prop):

  1. Procedural Reconstruction: Do not search for or download external .gltf/.obj files. Write pure Three.js code using procedural geometries (BoxGeometry, CylinderGeometry, ExtrudeGeometry, LatheGeometry), CSG operations, and PBR materials (MeshStandardMaterial, MeshPhysicalMaterial).
  2. Quality Gated Staging: Break the model down into stages:
    • Primary primitive masses (bounding volumes, silhouettes, proportions)
    • Secondary bevels, cutouts, hinges, and seams
    • High-fidelity micro-details (screws, ports, textures, normals)
  3. PBR Lighting & Materials: Calibrate roughness, metalness, clearcoat, and transmission values. Setup a standard Three.js studio lighting rig (DirectionalLight key/fill/rim, AmbientLight, and environment map).
  4. Self-Correction Loop: Inspect generated renders via browser preview or screenshot, compare against the reference image, and refine until the silhouette and proportions match.

⚡ Direct Prompt Template

Reconstruct this object image as a code-only procedural Three.js 3D model.
Use Three.js PBR materials, orbit controls, studio lighting, and smooth mouse interaction.
Keep it self-contained in a single React Three Fiber or HTML/JS component.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.