orklev2-txi

orklev2-txi is a skill for Claude Code from tweakoz/orkid. It costs 75 tokens per session (1,969 once invoked), scanned A, original, MIT.

A reference guide to Orkid’s texture and image system, including GPU textures, CPU-side images, texture arrays, mip chains, and Python bindings. Orkid is a software framework for graphics and media applications.

In plain words
What is it for?
Use it when answering questions about texture formats, sampling modes, mipmaps, shared-memory textures, texture loading, or Python image and texture code.
Why use it?
It helps developers find the right source files and understand how image data is created, uploaded, updated, and sampled.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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.

agentmods
npx agentmods add skills/tweakoz/orkid/orklev2-txi
Any agent
npx skills add tweakoz/orkid --skill orklev2-txi
Clone the repo
git clone --depth 1 https://github.com/tweakoz/orkid

Made for: Claude Code.

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 orklev2-txi

README.md
[![agentmods](https://agentmods.dev/badge/skills/tweakoz/orkid/orklev2-txi.svg)](https://agentmods.dev/skills/tweakoz/orkid/orklev2-txi)
Your own site
<a href="https://agentmods.dev/skills/tweakoz/orkid/orklev2-txi"><img src="https://agentmods.dev/badge/skills/tweakoz/orkid/orklev2-txi.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,969 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00075 $0.01969
Opus 5 $0.00037 $0.00984
Sonnet 5 $0.00015 $0.00394
Haiku 4.5 $0.00007 $0.00197

Measured 4d ago against content hash f94fd8527dfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

orklev2-txi 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 4d ago.

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.

.claude/skills/orklev2-txi/SKILL.md · 176 lines

How it starts

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

Orkid TextureInterface (TXI) Reference

When answering questions about textures, images, or texture management in orkid, consult the files below. All under ork.lev2/.

Key Files

Component File
TXI Interface inc/ork/lev2/gfx/txi.h (lines 63–130)
Texture / TextureArray / MipChain inc/ork/lev2/gfx/texman.h
Image (CPU-side) inc/ork/lev2/gfx/image.h
Shared Memory Textures inc/ork/lev2/gfx/shmtexture.h
Enums (formats, types) inc/ork/lev2/gfx/gfxenv_enum.h
Vulkan TXI src/gfx/vulkan/vulkan_txi.cpp
Vulkan Data Upload src/gfx/vulkan/vulkan_txi_from_data.cpp
Vulkan Arrays src/gfx/vulkan/vulkan_txi_from_array.cpp
Python Image Bindings pyext/src/pyext_gfx_image.cpp
Python Texture Bindings pyext/src/pyext_gfx.cpp (lines 371–936)

TXI Interface (txi.h:63–130)

Method Description
initTextureFromData(tex, TextureInitData) Upload CPU buffer to GPU
initTextureArray2DFromData(arr, data) Create 2D texture array
initTextureArray2D(arr) Allocate empty array
initTextureArray2DAsync(arr) Async array allocation
updateTextureArraySlice(slice, image) Update single array slice
updateTextureArray(array) Update entire array
createFromMipChain(chain) Create from precomputed mips
generateMipMaps(tex) Generate mip chain on GPU
ApplySamplingMode(tex) Apply filter/address modes
destroyTexture(tex) Release GPU resources
initTextureFromGpuExternalSurface(tex) IOSurface/DMA-BUF import
initFromShm(tex, consumer) Shared memory texture

Texture (texman.h:157–249)

Member Type Description
_width, _height, _depth int Dimensions
_num_mips int Mipmap levels
_texFormat EBufferFormat Pixel format
_texType ETextureType 1D/2D/3D/CUBE/ARRAY
_source ETextureSource How it was created
mTexSampleMode TextureSamplingModeData Filtering config
_impl svarshp_t GPU implementation
_chain MipChain* CPU-side mip data
_isDepthTexture bool Depth texture flag

Read the full file on GitHub · 176 lines

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. 4d ago First seen · 176 lines · 75 tokens per session scan A f94fd8527dfd

Subscribe to this mod's changes

orklev2-txi is a skill published in the GitHub repository tweakoz/orkid (35 stars, last pushed 24d ago), licensed MIT. It adds 75 tokens to every session and 1,969 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

html-to-ugui

HTML 原型转 Unity UGUI 智能 Prefab 生成管线。通过 AI 生成符合 UI-DSL 的 HTML,用 Playwright/浏览器烘焙 JSON v2 坐标、图片和适配意图,再导入 Unity 由 HtmlToUGUIBaker 生成可维护、多终端适配的 UGUI Prefab。触发场景:(1) 需要从自然语言生成 Unity UGUI 界面 (2) 需要从 HTML 原型烘焙 UGUI (3) UI 中包含图片并希望一键导入/绑定 Sprite (4) 需要 PC/mobile/pad 多终端适配 Prefab。.

Alex-Rachel/TEngine · 150 tokens

metasounds

Create and modify MetaSound Source assets — add/connect nodes, wire pins, set input defaults, and play procedurally (MetaSoundService). Use when the user asks to create a MetaSound, build or edit a MetaSound graph, add operator/input/output nodes, or generate procedural audio.

kevinpbuckley/VibeUE · 63 tokens

dart-model-upgrade

DART Model Upgrade: audit and improve DART AI harness content and structure for model or coding-agent upgrades, including named models, reasoning modes, migrations, compatibility reviews, and visual simulation-debugging evaluations.

dartsim/dart · 45 tokens

dart-verify-sim

DART Verify Sim: text-first and visual checks for 3D scenes and physics (metrics, scene dump, trajectories, headless render, image verdict/golden).

dartsim/dart · 40 tokens

dart-architecture

DART Architecture: the DART 7 multi-physics, multi-solver, multi-backend simulation pipeline and where each abstraction is owned.

dartsim/dart · 32 tokens

host-pattern

Use when adding a new domain to Nuclear's plugin system, or implementing a host. Covers the host pattern (how player functionality is exposed to plugins), the host interface and API class structure, how hosts are implemented in the player, error handling conventions, and what files to create and modify. Trigger…

nukeop/nuclear · 86 tokens