kit-otimizar-3d

kit-otimizar-3d is a skill for Claude Code, Codex from harebeats/cannonball. It costs 265 tokens per session (9,398 once invoked), scanned A, a copy of optimize-3d-scene, MIT.

A performance guide for 3D scenes built with Three.js, React Three Fiber, or WebGL. It adapts rendering to the device and reduces work on phones and slower computers.

In plain words
What is it for?
Use it to tune device settings, loading, rendering while visible, screen resolution, particles, bloom, scrolling effects, and compressed textures.
Why use it?
It helps prevent slow scrolling, stuttering, and delays when shaders or assets load. It also limits demanding effects so the scene does not overwhelm the device.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions Codex.

Part of the cannonball plugin — 10 skills shipped together

Good fit Use it to tune device settings, loading, rendering while visible, screen resolution, particles, bloom, scrolling effects, and compressed textures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harebeats/cannonball/kit-otimizar-3d
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add harebeats/cannonball --skill kit-otimizar-3d
Clone the repo
git clone --depth 1 https://github.com/harebeats/cannonball

Made for: Claude Code, Codex.

Or install cannonball, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kit-otimizar-3d

README.md
[![agentmods](https://agentmods.dev/badge/skills/harebeats/cannonball/kit-otimizar-3d/github.svg)](https://agentmods.dev/skills/harebeats/cannonball/kit-otimizar-3d)
Your own site
<a href="https://agentmods.dev/skills/harebeats/cannonball/kit-otimizar-3d"><img src="https://agentmods.dev/badge/skills/harebeats/cannonball/kit-otimizar-3d/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kit-otimizar-3d

Your own site · 80×15
<a href="https://agentmods.dev/skills/harebeats/cannonball/kit-otimizar-3d"><img src="https://agentmods.dev/badge/skills/harebeats/cannonball/kit-otimizar-3d.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 265 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,398 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00265 $0.09398
Opus 5 $0.00133 $0.04699
Sonnet 5 $0.00053 $0.01880
Haiku 4.5 $0.00026 $0.00940

Measured 5d ago against content hash 7743d84c95e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

kit-otimizar-3d scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 27 executable files (scripts/armadilhas.py, scripts/assets.py, scripts/buscar.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to optimize-3d-scene — 364 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/kit-otimizar-3d/SKILL.md · 686 lines

How it starts

The opening of the file, as written. The whole thing — 686 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Otimizar cena 3D

Antes de qualquer comando: resolva o SKILL_DIR

Todo comando abaixo roda um script que viaja junto desta skill, em SKILL_DIR/scripts/. Defina SKILL_DIR como o caminho absoluto da pasta que contém ESTE SKILL.md que você acabou de ler — o seu harness informou esse caminho no resultado da leitura. Funciona em qualquer hospedeiro, sem depender de variável de ambiente de nenhum agente específico:

~/.claude/plugins/cache/cannonball/cannonball/<v>/skills/<nome>/SKILL.md
~/.codex/skills/<nome>/SKILL.md
~/.gemini/skills/<nome>/SKILL.md
~/.agents/skills/<nome>/SKILL.md

Em todos, SKILL_DIR é a pasta do SKILL.md, e SKILL_DIR/scripts/ está ao lado.

Adaptada da optimize-3d-scene de textura-agency/next16-claude-starter, em domínio público. O conteúdo técnico é do autor original; o que mudou aqui foi trocar as referências ao workspace privado dele por references/patterns.md (que já traz o código todo) e ligar o passo final ao ciclo de armadilhas do cannonball.

Toda cena three.js paga o mesmo imposto: o celular renderiza os mesmos fragmentos que uma workstation, o primeiro quadro depois que um shader aparece compila no meio do scroll, e o render loop segue rodando atrás de três seções de texto que ninguém está olhando. Esta skill corrige isso numa ordem fixa — do mais barato e de maior impacto para o resto.

Cada passo vale igual para WebGL cru e para three.js; só as primitivas de medição do §0 mudam (three.js te dá renderer.info; numa cena crua você instrumenta na mão — e precisa fazer isso antes de começar).

O código copiável de tudo que segue está em references/patterns.md — tiering, ticker compartilhado, prewarm, loop com gate de visibilidade, canvas que sobrevive à barra de URL do iOS, suavização de scroll no toque, contagem por tier, composer, e transformação de scroll no vertex shader. Porte de lá em vez de inventar forma nova; os nomes de projeto que aparecem lá (helion, mycelia, stride, clarix) são só atribuição de origem, o código está inteiro no arquivo.

Read the full file on GitHub · 686 lines

Files

What ships with it

53 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +171 lines · +64 tokens per session 7743d84c95e4
  2. 10d ago First seen · 515 lines · 201 tokens per session scan A 864a86d60cd2

Subscribe to this mod's changes

kit-otimizar-3d is a skill published in the GitHub repository harebeats/cannonball (11 stars, last pushed 6d ago), licensed MIT. It adds 265 tokens to every session and 9,398 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to optimize-3d-scene, differing in 364 lines, and is treated as a copy.

Related

Other skills, from other repositories

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens

port-sacred-terminal-ui-to-hostile-react-codebase

Take a sacred React component (or a sacred screen that mirrors a Simulacrum CLI surface) and graft it into a foreign React codebase that already ships its own design system, build pipeline, and CSS toolchain — without breaking the host or polluting it with sacred-specific globals.

internet-development/www-sacred · 0 tokens

port-sacred-terminal-ui-to-react-using-same-conventions

Take a CLI screen written for Simulacrum — the sacred CLI framework (scripts/cli/templates/.ts or scripts/python/templates/.py) — and produce a React component that lives inside components/examples/ (or components/) using only sacred's existing primitives — Window, Card, SimpleTable, ActionButton, RowSpaceBetween…

internet-development/www-sacred · 0 tokens

designlang-tokens

Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

Manavarya09/design-extract · 30 tokens

cesiumjs-materials-shaders

CesiumJS materials and post-processing — Material, Fabric JSON, MaterialAppearance, ImageBasedLighting, PostProcessStage, PostProcessStageLibrary, bloom, depth of field, ambient occlusion, FXAA, tonemapping, BlendingState. Use when defining Fabric materials for entities or primitives, configuring PBR image-based…

CesiumGS/cesiumjs-skills · 83 tokens

cesiumjs-models-particles

CesiumJS models, glTF, and particle effects - Model, KHRmeshoptcompression, CAD glTF extensions, EdgeDisplayMode, ModelAnimation, ModelNode, ParticleSystem, emitters, GPM extensions. Use when loading compressed or CAD-style glTF/GLB models, controlling edge rendering, playing model animations, positioning particles…

CesiumGS/cesiumjs-skills · 87 tokens