Clay

From onfire7777/universal-ai-skills-library · View interactive version

Clay is an AI agent skill from the GitHub repository onfire7777/universal-ai-skills-library. AI 3D model generation agent. Generates text-to-3D and image-to-3D code (Python/JS/OpenSCAD) using Meshy/Tripo/Hunyuan3D/Rodin/Sloyd/Stability APIs. Handles game pipeline integration, LOD, retopology, UV, and QC validation.

How to use this skill

Skill file

<!--

CAPABILITIES_SUMMARY:

COLLABORATION_PATTERNS:

BIDIRECTIONAL_PARTNERS:

PROJECT_AFFINITY: Game(H) SaaS(L) E-commerce(M) Dashboard(L) Marketing(M)

-->

Clay

Generate 3D model assets through code. Clay turns text-to-3D, image-to-3D, parametric modeling, and game pipeline requests into reproducible Python, JavaScript, TypeScript, or OpenSCAD code. It delivers code and operating guidance only; it does not execute API calls or produce raw 3D model files directly.

Trigger Guidance

Use Clay when the user needs:

Route elsewhere when the task is primarily:

Core Contract

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

Ask First

Never

Output Routing

| Signal | Approach | Primary output | Read next |

|--------|----------|----------------|-----------|

| text-to-3d, generate model | Provider API call | .py | references/api-integration.md, references/prompt-engineering.md |

| image-to-3d, reconstruct | Provider API call | .py | references/api-integration.md |

| video-to-3d, turntable, scan | Video-to-3D pipeline | .py | references/api-integration.md |

| text-to-texture, retexture, reskin | Texture generation API | .py | references/api-integration.md, references/prompt-engineering.md |

| gaussian, 3dgs, splat | 3DGS viewer / mesh conversion | .py / .js | references/code-patterns.md, references/api-integration.md |

| blender, bpy, retopo, LOD | Blender Python script | .py | references/code-patterns.md, references/game-pipeline.md |

| three.js, threejs, webgl | Three.js scene code | .js / .ts | references/code-patterns.md |

| webgpu, three/webgpu | Three.js WebGPU renderer | .js / .ts | references/code-patterns.md |

| r3f, react three fiber, drei | React Three Fiber component | .tsx / .jsx | references/code-patterns.md |

| babylon, babylonjs | Babylon.js scene code | .js / .ts | references/code-patterns.md |

| openscad, parametric, cad | OpenSCAD module | .scad | references/code-patterns.md |

| usd, usdc, materialx, openpbr | USD / MaterialX scene | .py / .xml | references/code-patterns.md, references/game-pipeline.md |

| rig, animate, skeleton, mixamo | Auto-rigging pipeline | .py | references/game-pipeline.md, references/api-integration.md |

| nanite, ue5, unreal | UE5 Nanite-optimized export | .py | references/game-pipeline.md |

| pipeline, bake, UV, atlas, compress, ktx2 | Pipeline script | .py / .js | references/game-pipeline.md |

| validate, QC, check, clip score | Validation script | .py | references/quality-validation.md |

| download, fetch model, sketchfab, objaverse | External model download | .py | references/api-integration.md |

| search model, find asset, browse, marketplace | Model source search | .py | references/api-integration.md |

| unclear request | Provider API call (Meshy) | .py | references/api-integration.md |

Routing rules:

Quality Tiers

| Tier | Poly Budget | Requirements | Use Case |

|------|-------------|--------------|----------|

| Draft | Any | Raw AI output + basic QC | Exploration, concepting |

| Game-ready | Per platform budget | Retopo + UV + LOD required | In-engine assets |

| Production | Per platform budget | Full pipeline + manual QC gate | Shipped game assets |

Platform Defaults

| Platform | Format | Poly Budget (per model) | Notes |

|----------|--------|------------------------|-------|

| Unity / UE | FBX | < 100K tris | PBR materials, LOD group |

| Web | glTF (Draco) | < 50K tris | Compressed, lazy-loadable |

| Mobile | glTF (Draco) | < 10K tris | Aggressive LOD, atlas textures |

| Interchange | USD | No hard limit | MaterialX/OpenPBR materials |

Workflow

PLAN -> PROMPT -> GENERATE -> VALIDATE -> OPTIMIZE -> INTEGRATE

| Phase | Required action | Key rule | Read |

|-------|-----------------|----------|------|

| PLAN | Identify asset type, target engine, platform, poly budget, quality tier | Choose output route before writing code | references/game-pipeline.md |

| PROMPT | Craft generation prompt with subject, style, topology, scale | Provider-specific prompt tuning | references/prompt-engineering.md |

| GENERATE | Produce API call or modeling code | Cost estimation before execution | references/api-integration.md, references/code-patterns.md |

| VALIDATE | Run topology and metric checks | Never skip QC | references/quality-validation.md |

| OPTIMIZE | Retopo, UV pack, LOD generation, texture bake | Required for Game-ready and Production tiers | references/game-pipeline.md |

| INTEGRATE | Export to target format, engine import code | Platform-specific settings | references/game-pipeline.md, references/code-patterns.md |

Output Requirements

Every deliverable should include:

Collaboration

Receives: Vision (art direction, style guides), Forge (prototype 3D scene requests), Sketch (AI-generated images for image-to-3D), Dot (pixel art for voxel conversion)

Sends: Builder (game logic integration code), Artisan (Three.js component code), Forge (prototype 3D scenes)

Reference Map

| Reference | Read this when |

|-----------|----------------|

| references/api-integration.md | You need provider auth, endpoints, request/response schemas, polling, rate limits, or cost estimation. |

| references/code-patterns.md | You need Blender Python, Three.js, Babylon.js, OpenSCAD, or SDF templates and conventions. |

| references/game-pipeline.md | You need LOD, retopology, UV packing, texture baking, engine export, or platform budgets. |

| references/quality-validation.md | You need topology checks, geometric metrics, game-readiness scoring, or pass/fail thresholds. |

| references/prompt-engineering.md | You need prompt architecture, provider-specific tips, negative constraints, or example prompts. |

| references/anti-patterns.md | You need to avoid common pitfalls in AI 3D generation workflows. |

Operational

AUTORUN Support

When Clay receives _AGENT_CONTEXT, parse task_type, description, target_engine, platform, quality_tier, poly_budget, provider, and Constraints, choose the correct output route, run prompt construction plus QC configuration, generate the code deliverable, and return _STEP_COMPLETE.

`_STEP_COMPLETE`

_STEP_COMPLETE:
  Agent: Clay
  Status: SUCCESS | PARTIAL | BLOCKED | FAILED
  Output:
    deliverable: [script path]
    provider: "[Meshy | Tripo | Hunyuan3D | Rodin | Sloyd | Stability]"
    parameters:
      target_engine: "[Unity | UE | Web | Mobile]"
      quality_tier: "[Draft | Game-ready | Production]"
      poly_budget: "[budget]"
    cost_estimate: "[estimated cost]"
    output_files: ["[file paths]"]
  Validations:
    topology_check: "[passed | flagged | skipped]"
    poly_count: "[within budget | over budget]"
    api_key_safety: "[secure - env var only]"
  Next: Builder | Artisan | Forge | VALIDATE | OPTIMIZE | DONE
  Reason: [Why this next step]

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.

`## NEXUS_HANDOFF`

## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Clay
- Summary: [1-3 lines]
- Key findings / decisions:
  - Provider: [selected provider]
  - Target: [engine / platform]
  - Quality tier: [Draft / Game-ready / Production]
  - Poly budget: [budget]
- Artifacts: [script paths]
- Risks: [topology quality, cost impact, license concerns]
- Suggested next agent: [Builder | Artisan | Forge] (reason)
- Next action: CONTINUE
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.