Tresjs Core Skilld logo

Tresjs Core Skilld

Organization
skilld-dev
tresjs-core-skilld

Declarative ThreeJS using Vue Components. ALWAYS use when writing code importing "@tresjs/core". Consult for debugging, best practices, or modifying @tresjs/core, tresjs/core, tresjs core, tres.

Overview

Publisherskilld-dev
Repositoryvue-ecosystem-skills
Skill nametresjs-core-skilld
Stars
180
Forks
8
Bundled files
126
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 126 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by skilld-dev on GitHub. Read the source before you install it.

Installation

Install the Tresjs Core Skilld AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skilld-dev/vue-ecosystem-skills.git /tmp/vue-ecosystem-skills
mkdir -p .claude/skills
cp -r /tmp/vue-ecosystem-skills/skills/tresjs-core-skilld .claude/skills/tresjs-core-skilld
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tresjs Core Skilld in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tresjs Core Skilld on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tresjs Core Skilld is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Tresjs/tres @tresjs/core@5.8.0

Tags: beta: 2.0.0-beta.13, next: 5.0.0-next.6, alpha: 5.0.0-alpha.2

References: Docs

API Changes

This section documents version-specific API changes — prioritize recent major/minor releases.

  • BREAKING: useLoader — returns reactive state { state, isLoading, error, progress } since v5, no longer returns a Promise source

  • BREAKING: Pointer Events — renamed to native DOM names (e.g., @pointerdown instead of @pointer-down) in v5 source

  • BREAKING: useTexture — removed from core in v5, moved to @tresjs/cientos package source

  • BREAKING: ESM-only — TresJS v5 is ESM-only; UMD build and CommonJS require() are no longer supported source

  • BREAKING: TresCanvas Props — WebGL context props like alpha, antialias, stencil, and depth are now readonly and non-reactive in v5 source

  • BREAKING: useTresContext().camera — returns a state object in v5; use useTres().camera for the active camera instance source

  • BREAKING: Renderer Context — renderer is now readonly in useTresContext(); performance state was removed from context in v5 source

  • BREAKING: Event Bubbling — only the first intersected element triggers pointer events since v5 to align with standard behavior source

  • NEW: Context Component — exported in v5.5.0 (as TresCanvasContext) for advanced scene and state management source

  • NEW: Kebab-case Support — support for components written in kebab-case (e.g., <tres-mesh>) added in v5.1.0 source

  • NEW: primitive Prefix — added prefix option for primitives in v5.3.0 to avoid name collisions source

  • NEW: TresCanvasProps / TresCanvasEmits — explicitly exported types added in v5.2.0 for better TypeScript integration source

  • REMOVED: Legacy Composables — useRenderLoop, useCamera, useTresReady, useSeek, useRaycaster, and useLogger removed in v5 source

  • NEW: useForwardPropsEmits — integrated into TresCanvas in v5.3.0 for streamlined event and prop handling source

Also changed: useLoop replaces useRenderLoop · useGraph replaces useSeek · @ready event replaces useTresReady · useTres() replaces common useTresContext() usage · TresCanvas supports useLegacyLights prop (deprecated) · useLoader supports extensions and reactive paths.

Best Practices

  • Use shallowRef with template refs to access Three.js instances directly in high-frequency render loops. This avoids Vue's deep proxy overhead, which can be significantly slower than direct property access source
vue
<script setup lang="ts">
const meshRef = shallowRef<TresInstance | null>(null)
const { onBeforeRender } = useLoop()

onBeforeRender(({ elapsed }) => {
  if (meshRef.value) meshRef.value.rotation.y = elapsed
})
</script>

<template>
  <TresMesh ref="meshRef" />
</template>
  • Prefer shallowRef and shallowReactive over ref or reactive for Three.js objects. This maintains reactivity for the reference itself while preventing expensive deep tracking of complex internal Three.js properties source

  • Set renderMode="on-demand" on <TresCanvas> for non-game applications to reduce CPU/GPU usage. The scene will only re-render when props change or when manual invalidation is explicitly triggered source

  • Manually trigger a render using invalidate() from useLoop or useTres when modifying instances via template refs or direct mutations in on-demand mode, as these changes are invisible to Vue's reactivity system source

  • Ensure animations are frame-rate independent by using the delta parameter in useLoop callbacks. This guarantees consistent movement speed across different display refresh rates (e.g., 60Hz vs 144Hz) source

ts
onBeforeRender(({ delta }) => {
  // Moves 2 units per second regardless of frame rate
  mesh.position.x += delta * 2
})
  • Use the args prop for values required at Three.js instantiation (like geometry dimensions). Note that changing these reactive values at runtime forces TresJS to recreate the entire instance, which is performance-heavy source

  • Take complete control of the render process using render from useLoop for custom post-processing or multi-pass setups. You must call notifySuccess() at the end of the function to maintain the loop state source

  • Orchestrate complex update sequences using the priority argument in onBeforeRender (default 0). Higher priority numbers ensure a callback runs after those with lower priorities within the same frame source

  • Explicitly call dispose() from @tresjs/core for Three.js objects created programmatically and used via <primitive />. TresJS automatically disposes of template-defined components but cannot track lifecycle for raw objects source

  • Use useGraph to generate a reactive map of named meshes, materials, and nodes from a complex hierarchy (like a loaded GLTF). This enables direct, named access without manually traversing the object tree source

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 66 more files.

Frequently asked questions

What does the Tresjs Core Skilld AI skill do?

Declarative ThreeJS using Vue Components. ALWAYS use when writing code importing "@tresjs/core". Consult for debugging, best practices, or modifying @tresjs/core, tresjs/core, tresjs core, tres.

Why use Tresjs Core Skilld on TypingMind?

Because you install it once and use it with any model. Tresjs Core Skilld is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tresjs Core Skilld in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/skilld-dev/vue-ecosystem-skills/tree/main/skills/tresjs-core-skilld. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tresjs Core Skilld?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tresjs Core Skilld?

As many as you like. As long as a model supports skills, you can use Tresjs Core Skilld with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tresjs Core Skilld AI skill free?

Yes. It is published on GitHub by skilld-dev under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇