domain-pixi

domain-pixi is a skill for Claude Code from AxGord/claude-workflow. It costs 23 tokens per session (11,400 once invoked), scanned A, original, MIT.

A reference guide to pitfalls in PixiJS v8, a JavaScript library for drawing interactive 2D graphics in the browser. It covers masks, shapes, text, shaders, Spine animations, and image capture.

In plain words
What is it for?
Use it when building PixiJS scenes, clipping content, creating inverse or multi-part masks, rendering text and shaders, working with Spine, or capturing the canvas.
Why use it?
It helps prevent graphics from rendering incorrectly or silently failing because of unsupported shape or masking patterns.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the workflow plugin — 28 skills, 2 hooks, 1 MCP server shipped together

Good fit Use it when building PixiJS scenes, clipping content, creating inverse or multi-part masks, rendering text and shaders, working with Spine, or capturing the canvas.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/axgord/claude-workflow/domain-pixi
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 AxGord/claude-workflow --skill domain-pixi
Clone the repo
git clone --depth 1 https://github.com/AxGord/claude-workflow

Made for: Claude Code.

Or install workflow, the plugin that ships this one along with the rest of its 28 skills, 2 hooks, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/axgord/claude-workflow/domain-pixi"><img src="https://agentmods.dev/badge/skills/axgord/claude-workflow/domain-pixi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,400 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 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.00023 $0.11400
Opus 5 $0.00012 $0.05700
Sonnet 5 $0.00005 $0.02280
Haiku 4.5 $0.00002 $0.01140

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

Security

Grade A, and why

domain-pixi 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 11d 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.

templates/skills/domain-pixi/SKILL.md · 454 lines

How it starts

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

Pixi.js v8 Gotchas

1. Graphics mask silently fails with high vertex counts

A polygon with ~625 vertices renders fine as a sprite but produces NO clipping as a mask. Keep mask polygons to ≤20 vertices.

  • Wrong: new Graphics().poly([...625pts]).fill(0xffffff) → assign as mask → no clipping
  • Right: keep masks low-vertex; use keyhole-bridge (see #5) to encode multiple holes in one polygon

2. setMask({ mask, inverse: true }) does not work for Graphics masks

The StencilMask object is created (visible on _maskEffect) but inverse produces no visible change. Non-inverse normal mask works. Version qualifier: the inverse option only exists since v8.5.0 (earlier v8 ignores it entirely); this failure was observed on v8.6.x — retest on your version before building a workaround.

  • Wrong: container.setMask({ mask: g, inverse: true }) to hide inside-shape content
  • Right: build "world minus holes" via keyhole-bridge manually

3. Multiple .fill() calls create separate shapes — unreliable as mask

g.rect(a).fill().rect(b).fill() creates two fill shapes. For stencil masking, multi-fill Graphics can misbehave.

  • Right: single polygon path + single .fill() for any mask

4. Winding direction required for polygon holes

Outer boundary CW, hole CCW (Y-down screen coords). For a rhombus {top, left, bottom, right} as a hole inside a CW outer rect:

  • Wrong order: top → left → right → bottom — a self-intersecting bowtie, not a CCW circuit; fills instead of holing
  • Right CCW order: top → left → bottom → right (strict CCW around centroid)

5. Keyhole-bridge: multiple holes in one polygon

FillStyle has no fillRule field — evenodd is not available. v8 does offer Graphics.cut() (draw the hole path after the fill, then .cut()), but caveat: it attaches the hole only to the LAST drawn shape (its fill+stroke instruction pair), and a hole that is not completely inside that shape "will fail to cut correctly" (per its own doc). For multiple or edge-touching holes use a zero-width bridge instead:

Read the full file on GitHub · 454 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. 11d ago First seen · 454 lines · 23 tokens per session scan A fdeb5b4a73d8

Subscribe to this mod's changes

domain-pixi is a skill published in the GitHub repository AxGord/claude-workflow (5 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 11,400 once invoked, about $0.0001 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-08-31.

Related

Other skills, from other repositories