Skip to content
FunCoding

3d-assets

Create or revise editable 3D assets and interactive scenes from the current Session's conversation, figures, data, and Notebook results.

Star
5,035
License
Apache-2.0
Last commit
Dec 5, 2026

resources/skills/3d-assets/SKILL.md

View on GitHub

Read evidence from the current Session

Start with the visible request, corrections and attachments. For earlier evidence, use the Host SDK in repl_execute. If the invoking Frame IDs are missing, inspect the Frame catalog:

if ((await host.capabilities()).frames) {
  console.log(await host.frames.list({ rootsOnly: false }))
}

Match the Session and Frame to the visible conversation. For more results, pass nextCursor as cursor. If the match is ambiguous, stay with the visible evidence. Substitute the confirmed IDs below. The first read defaults to the Frame's active Branch. Pass the invoking branchId when known.

const sessionId = '<confirmed Session ID>'
const frameId = '<confirmed Frame ID>'
const page = await host.frames.get(frameId, { sessionId })
console.log(page.transcript)
const before = page.transcript.previousCursor
if (before) {
  const branchId = page.branch.branchId
  console.log((await host.frames.get(frameId, { sessionId, branchId, before })).transcript)
}

Use the Artifact versionId referenced on that branch. Filenames can recur across Versions. For a text input such as CSV:

if ((await host.capabilities()).artifacts) {
  const versionId = '<Version ID from the selected conversation path>'
  const sourcePath = await host.artifactPath(versionId)
  console.log(await require('node:fs').promises.readFile(sourcePath, 'utf8'))
}

Use images visible in the conversation directly. For an image with a confirmed Artifact Version or workspace path, use host.viewImage({ versionId }) or host.viewImage({ path }) with await in a foreground repl_execute when available. An earlier embedded image may expose only an attachmentId. If its pixels are unavailable, identify the missing reference and limit visual comparisons to images you can inspect.

Build the scene

Use Scene production for scale, geometry, materials, lighting and camera placement. When revising a scene, start from its editable source and match its reference views.

For exhibits that let the viewer inspect figures, tables, papers or Notebook results, use Research readers to connect each exhibit to its source.

For a scene intended for 3D Film, implement the Film frame protocol before publishing. Keep the scene usable on its own.

Publish the HTML scene

Build the offline preview as one self-contained HTML file. Inline its scripts and styles, and embed any models, textures, fonts or reader content it loads. write_artifact_file publishes one file per call, including when given a local path.

For a small, self-contained scene, pass the complete HTML to write_artifact_file:

{
  "filename": "scene.html",
  "mimeType": "text/html",
  "source": { "kind": "inline", "content": "<complete scene HTML>" }
}

For a scene assembled on disk, pass source: { kind: 'localPath', path: scenePath } and the producing run's ID as producerRunId.

If the editable source is separate from the preview, deliver it as an additional Artifact. Apply the acceptance checks to the published preview and its requested interactions.

Similar Skills

blender-motion-state-inspection

AFaffaan-m/ECC317k4,721 new stars in the last 7 days

Featured

algorithmic-art

Generate flow fields and particle systems with p5.js, using seeded randomness for original algorithmic art.

ANanthropics/skills204k2,876 new stars in the last 7 days

Official

slack-gif-creator

ANanthropics/skills204k2,876 new stars in the last 7 days

moneyprinterturbo-video

HAharry0703/MoneyPrinterTurbo148k1,558 new stars in the last 7 days

thinking-out-loud

SHShubhamsaboo/awesome-llm-apps147k921 new stars in the last 7 days

design-motion

GAgarrytan/gstack143k