pixi-environments

pixi-environments is a skill for Claude Code, Codex from bullish0x/GameStudio. It costs 100 tokens per session (2,025 once invoked), scanned A, a copy of pixijs-environments, MIT.

A PixiJS guide for running graphics outside a regular browser page, including in Web Workers, on an OffscreenCanvas, or in server-side code. An OffscreenCanvas lets rendering happen away from the page's main thread.

In plain words
What is it for?
It helps move rendering into a Web Worker, support server-side rendering setups, and work under strict content-security rules.
Why use it?
It explains how PixiJS accesses browser features and how to replace those connections in restricted or non-browser environments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit It helps move rendering into a Web Worker, support server-side rendering setups, and work under strict content-security rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bullish0x/gamestudio/pixi-environments
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 bullish0x/GameStudio --skill pixi-environments
Clone the repo
git clone --depth 1 https://github.com/bullish0x/GameStudio

Made for: Claude Code, Codex.

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 pixi-environments

README.md
[![agentmods](https://agentmods.dev/badge/skills/bullish0x/gamestudio/pixi-environments/github.svg)](https://agentmods.dev/skills/bullish0x/gamestudio/pixi-environments)
Your own site
<a href="https://agentmods.dev/skills/bullish0x/gamestudio/pixi-environments"><img src="https://agentmods.dev/badge/skills/bullish0x/gamestudio/pixi-environments/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 pixi-environments

Your own site · 80×15
<a href="https://agentmods.dev/skills/bullish0x/gamestudio/pixi-environments"><img src="https://agentmods.dev/badge/skills/bullish0x/gamestudio/pixi-environments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,025 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% 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.00100 $0.02025
Opus 5.5 $0.00040 $0.00810
Sonnet 5.5 $0.00020 $0.00405
Haiku 4.5 $0.00010 $0.00202

Measured 2mo ago against content hash 9b53548acf01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pixi-environments scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

fetch: (url, options) => fetch(url, options),
Origin

This is a copy

97% identical to pixijs-environments — 2 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.

.agents/skills/pixi-environments/SKILL.md · 244 lines

How it starts

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

DOMAdapter abstracts every piece of DOM access PixiJS does (canvas creation, Image loading, fetch, XML parsing) so the library can run in non-browser contexts. Call DOMAdapter.set(...) before app.init() to swap in a different adapter.

Quick Start

// worker.ts — OffscreenCanvas posted from main thread
DOMAdapter.set(WebWorkerAdapter);

self.onmessage = async (event) => {
  const app = new Application();
  await app.init({
    canvas: event.data.canvas,
    width: 800,
    height: 600,
  });
};

For CSP contexts that block unsafe-eval, import the polyfill before any renderer init:

import "pixi.js/unsafe-eval";

Related skills: pixijs-application (standard browser init), pixijs-migration-v8 (settings removal, adapter changes).

Core Patterns

Web Worker with OffscreenCanvas

Transfer an OffscreenCanvas from the main thread, then initialize PixiJS in the worker:

// main.ts
const canvas = document.createElement("canvas");
canvas.width = 800;
canvas.height = 600;
document.body.appendChild(canvas);

const offscreen = canvas.transferControlToOffscreen();
const worker = new Worker("worker.ts", { type: "module" });
worker.postMessage({ canvas: offscreen }, [offscreen]);
// worker.ts
import { Application, DOMAdapter, WebWorkerAdapter } from "pixi.js";

DOMAdapter.set(WebWorkerAdapter);

self.onmessage = async (event) => {
  const app = new Application();
  await app.init({
    canvas: event.data.canvas,
    width: 800,
    height: 600,
  });
};

DOMAdapter.set(WebWorkerAdapter) must happen before new Application(). The WebWorkerAdapter uses OffscreenCanvas instead of document.createElement('canvas') and @xmldom/xmldom for XML parsing.

Features that do not work inside a Web Worker (no DOM access):

  • DOMContainer — there is no real DOM node to overlay.
  • AccessibilitySystem — depends on live DOM focus and screen reader hooks.
  • FontFace loading via the Font Loading API — use pre-converted bitmap fonts (BitmapFont.install or .fnt assets) instead.

Read the full file on GitHub · 244 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. 2mo ago First seen · 244 lines · 100 tokens per session scan A 9b53548acf01

Subscribe to this mod's changes

pixi-environments is a skill published in the GitHub repository bullish0x/GameStudio (29 stars, last pushed 5mo ago), licensed MIT. It adds 100 tokens to every session and 2,025 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 97% identical to pixijs-environments, differing in 2 lines, and is treated as a copy.

Related

pixi-environments compared with skills from other repositories

pixi-environments next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pixi-environmentsbullish0x/GameStudioSkill295mo agoMITA100Claude Code, Codex
ar-vr-xrtravisjneuman/.claudeSkill115yesterdayMITA50Claude Code
game-developmenttravisjneuman/.claudeSkill115yesterdayMITA34Claude Code
agent-game-developertravisjneuman/.claudeSkill115yesterdayMITA24Claude Code
unity-agent-workflowshashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A158Codex
using-bgs-archivehashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A75Claude Code, Codex
leadershiptravisjneuman/.claudeSkill115yesterdayMITA42Claude Code