Agent skill

Pixijs Scene Dom Container

by netaart in netaart/cohub

A skill your agent uses when overlaying HTML elements on the PixiJS v8 canvas.

MITAuto-check passedFrontend & Design

Install Pixijs Scene Dom Container

skills CLI
$ npx skills add netaart/cohub --skill pixijs-scene-dom-container -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install netaart/cohub pixijs-scene-dom-container --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/netaart/cohub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pixijs-scene-dom-container .claude/skills/pixijs-scene-dom-container && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pixijs-scene-dom-container
GitHub stars
572
Used in
1 other repo
Token cost
~2.2k tokens
SKILL.md length
795 words
Files
1
Skills in repo
30
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when overlaying HTML elements on the PixiJS v8 canvas.

  • Overlaying HTML elements on the PixiJS v8 canvas
  • SKILL.md covers Quick Start, Constructor options, Core Patterns and Common Mistakes, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Input on canvas

What it does

Pixijs Scene Dom Container is an agent skill from netaart/cohub. Use this skill when overlaying HTML elements on the PixiJS v8 canvas. Covers DOMContainer with element, anchor, and scene-graph-driven CSS transforms, the pixi.js/dom side-effect import, DOMPipe registration, visibility sync, pointer-events handling. Triggers on: DOMContainer, pixi.js/dom, DOMPipe, HTML overlay, input on canvas, iframe overlay, DOMContainerOptions, element, anchor, constructor options.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design. The repository describes itself as: A living space where people and agents create, play, and build together. The licence is MIT.

When your agent uses it

  • Overlaying HTML elements on the PixiJS v8 canvas
  • Input on canvas
  • DOMContainerOptions
  • Constructor options

Example prompts

  • “/pixijs-scene-dom-container”

What it can do on your machine

Read from SKILL.md and the folder at commit 40b557f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • pixijs.download

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pixijs Scene Dom Container loads about 2.2k tokens when it runs. Until then it costs about 108 tokens; SKILL.md has 795 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from netaart/cohub at commit 40b557f, republished under its MIT licence (© netaart). 795 words, ~2,195 tokens.

Download SKILL.mdSave it as .claude/skills/pixijs-scene-dom-container/SKILL.md (or your agent's skills folder).
name
pixijs-scene-dom-container
description
Use this skill when overlaying HTML elements on the PixiJS v8 canvas. Covers DOMContainer with element, anchor, and scene-graph-driven CSS transforms, the pixi.js/dom side-effect import, DOMPipe registration, visibility sync, pointer-events handling. Triggers on: DOMContainer, pixi.js/dom, DOMPipe, HTML overlay, input on canvas, iframe overlay, DOMContainerOptions, element, anchor, constructor options.
license
MIT
disable-model-invocation
true

DOMContainer positions an HTML element over the PixiJS canvas and drives its CSS transform from the scene graph. Use it for native inputs, iframes, videos, or rich HTML that needs to follow a display object's position. The default pixi.js browser bundle registers the DOMPipe automatically; custom builds add a side-effect import 'pixi.js/dom'.

DOMContainer is marked EXPERIMENTAL in PixiJS v8. The API may change between minor releases.

Assumes familiarity with pixijs-scene-core-concepts. DOMContainer extends ViewContainer, so it's a leaf: do not nest PixiJS children inside it. Nest DOM content inside the HTML element itself, or wrap multiple DOMContainer instances in a Container. Not available in Web Workers; a worker has no DOM to overlay.

Quick Start

ts
import "pixi.js/dom";

const input = document.createElement("input");
input.type = "text";
input.placeholder = "Enter name...";

const dom = new DOMContainer({
  element: input,
  anchor: 0.5,
});
dom.position.set(app.screen.width / 2, app.screen.height / 2);

app.stage.addChild(dom);

Related skills: pixijs-scene-core-concepts (scene graph basics), pixijs-scene-container (wrap multiple DOM overlays), pixijs-events (pointer handling on canvas vs DOM), pixijs-accessibility (screen-reader overlays).

Constructor options

All Container options (position, scale, tint, label, filters, zIndex, etc.) are also valid here — see skills/pixijs-scene-core-concepts/references/constructor-options.md.

Leaf-specific options added by DOMContainerOptions:

OptionTypeDefaultDescription
elementHTMLElementdocument.createElement('div')The HTML element the container drives. Any element is valid: input, textarea, iframe, video, div, etc. If omitted, a bare <div> is created.
anchorPointData | number0Origin of the element relative to its own dimensions. 0 is top-left, 0.5 centers, 1 is bottom-right. A single number sets both axes; { x, y } sets each independently.

tint, filters, mask, and blendMode are accepted (inherited from Container) but have no visual effect — DOM elements live outside the WebGL/WebGPU pipeline. Style the element via CSS for those effects.

Core Patterns

Setup and the side-effect import
ts
import "pixi.js/dom";
import { DOMContainer } from "pixi.js";

Or use the combined import that registers the pipe and re-exports the class:

ts
import { DOMContainer } from "pixi.js/dom";

The default pixi.js browser bundle already imports pixi.js/dom for you via browserAll.ts, so DOMContainer works out of the box in a typical browser app. You only need the explicit import 'pixi.js/dom' line when you set skipExtensionImports: true (custom builds) or when running under a non-browser bundle.

Transforms, anchor, and alpha
ts
const dom = new DOMContainer({
  element: document.createElement("div"),
  anchor: 0.5,
});
dom.position.set(400, 300);
dom.scale.set(1.5);
dom.rotation = Math.PI / 8;
dom.alpha = 0.5;

Transforms on the DOMContainer propagate to the element as CSS transform. anchor shifts the element's origin relative to its own dimensions: 0 is top-left, 0.5 centers, 1 is bottom-right. A single number sets both axes; an object { x, y } sets each independently. alpha (including inherited parent alpha) is written to the element's style.opacity every frame.

If no element is provided, a <div> is created by default.

Styling the element directly
ts
const panel = document.createElement("div");
panel.innerHTML = "<h2>Score</h2><p>1500</p>";
panel.style.color = "white";
panel.style.fontFamily = "Arial";
panel.style.pointerEvents = "none";

const dom = new DOMContainer({ element: panel });
dom.position.set(50, 50);
app.stage.addChild(dom);

PixiJS does not interfere with CSS styling on the element. The shared root <div> is set to pointer-events: none, and each attached element defaults to pointer-events: auto. Override to none on purely decorative overlays so the canvas still receives clicks underneath them.

Visibility and cleanup
ts
dom.visible = false;
dom.visible = true;

dom.destroy();

Setting visible = false or removing the DOMContainer from the scene graph detaches the element from the DOM. Restoring visibility re-attaches it. destroy() removes the element from its parent node and nulls internal references; the HTML element itself is preserved, so you can re-attach it elsewhere:

ts
const element = dom.element;
dom.destroy();
document.body.appendChild(element);
Show full SKILL.md (315 more words)Show less
The DOM container root

The DOMPipe uses a shared root <div> with z-index: 1000 that hosts every attached element. It's exposed as app.domContainerRoot (an HTMLDivElement). All DOMContainer elements render above canvas content; you can't interleave DOM elements between PixiJS draw calls.

On the first render that has an attached DOMContainer, the pipe automatically appends the root to the canvas's parent node. Append it yourself next to app.canvas if you need explicit, stable placement in the DOM tree (for example, when the canvas shares a wrapper with other layered content):

ts
document.body.appendChild(app.canvas);
document.body.appendChild(app.domContainerRoot);

The root uses absolute positioning and its transform is recomputed from the canvas getBoundingClientRect() via a ResizeObserver, so CSS-scaled canvases stay aligned without extra work.

Common Mistakes

[MEDIUM] Missing the pixi.js/dom import in custom builds

The default browser bundle auto-registers DOMPipe, so most apps do not need an explicit import. It is only required when you opt out of auto-imports:

ts
await app.init({ skipExtensionImports: true });
// Now you must add this yourself:
import "pixi.js/dom";

Without registration under a custom build, DOMContainer is still importable but the renderer has no pipe to process it; elements never synchronize with the scene graph and never appear.

[MEDIUM] Expecting filters, masks, or blend modes to affect DOM elements

Wrong:

ts
const dom = new DOMContainer();
dom.filters = [new BlurFilter()];

Correct:

ts
dom.element.style.filter = "blur(4px)";

DOM elements are HTML overlays positioned via CSS transforms; they exist outside the WebGL/WebGPU pipeline. PixiJS filters, masks, and blend modes have no effect on them. Use CSS filters and CSS mix-blend-mode on the element directly.

[MEDIUM] Do not nest children inside a DOMContainer

Wrong:

ts
const dom = new DOMContainer();
dom.addChild(new Sprite(texture));

Correct:

ts
const group = new Container();
group.addChild(dom, new Sprite(texture));

DOMContainer extends ViewContainer, which sets allowChildren = false. It is a leaf in the PixiJS scene graph. For PixiJS children, wrap the DOMContainer alongside them in a plain Container. For nested HTML, nest inside the element itself (element.appendChild(...)).

[LOW] Forgetting to set anchor for centered positioning

The default anchor is (0, 0), placing the element's top-left corner at the container's position. For centering a UI element on its scene-graph position, set anchor: 0.5:

ts
const dom = new DOMContainer({ element: myElement, anchor: 0.5 });
dom.position.set(400, 300);

API Reference

© netaart, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/pixijs-scene-dom-container of netaart/cohub.

Open the folder on GitHubat commit 40b557f

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in netaart/cohub, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Pixijs Scene Dom Container next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pixijs Scene Dom Container compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pixijs Scene Dom Container this skillnetaart/cohub5721 repos~2.2kAutomated safety check: PassMIT
Web Artifacts Builderanthropics/skills180k40 repos~769Automated safety check: PassApache-2.0
React Doctormakeplane/plane61k12 repos~657Automated safety check: PassAGPL-3.0
Impeccablebestofjs/bestofjs3.1k26 repos~2.6kAutomated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Web Interface Guidelines Reviewervercel-labs/openreview1.7k97 repos~308Automated safety check: PassNone

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 40 repos~769 tokens
    Frontend & DesignAuto-check passed
  • React Doctor

    makeplane/plane

    Scans React code for lint, accessibility, bundle size and architecture issues, reports a health score and checks that changes do not lower it.

    61k GitHub starsUsed in 12 repos~657 tokens
    Frontend & DesignAuto-check passed
  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 26 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Web Interface Guidelines Reviewer

    vercel-labs/openreview

    Official

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my…

    1.7k GitHub starsUsed in 97 repos~308 tokens
    Frontend & DesignAuto-check passed
  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed

More from netaart/cohub

All 30 skills in this repo
  • Pixijs Assets

    netaart/cohub

    A skill your agent uses when loading and managing resources in PixiJS v8.

    572 GitHub starsUsed in 1 repo~5k tokens
    Auto-check passed
  • A skill your agent uses when reasoning about the PixiJS v8 scene graph as a whole: how containers, leaves, transforms, and render order fit together.

    572 GitHub starsUsed in 1 repo~3.9k tokens
    Auto-check passed
  • Pixijs Scene Mesh

    netaart/cohub

    A skill your agent uses when rendering custom geometry in PixiJS v8.

    572 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Pixijs Scene Sprite

    netaart/cohub

    A skill your agent uses when drawing images in PixiJS v8. An agent skill from netaart/cohub.

    572 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Pixijs Scene Text

    netaart/cohub

    A skill your agent uses when rendering text in PixiJS v8. An agent skill from netaart/cohub.

    572 GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • A skill your agent uses when understanding how PixiJS v8 renders frames: the systems-and-pipes renderer, the render loop, and how the library adapts to different environments.

    572 GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Questions about Pixijs Scene Dom Container

What does Pixijs Scene Dom Container do?

A skill your agent uses when overlaying HTML elements on the PixiJS v8 canvas. Pixijs Scene Dom Container is an agent skill from netaart/cohub. Use this skill when overlaying HTML elements on the PixiJS v8 canvas.

When should I use Pixijs Scene Dom Container?

Pixijs Scene Dom Container fits situations like: overlaying HTML elements on the PixiJS v8 canvas; input on canvas; DOMContainerOptions; constructor options.

How do I install Pixijs Scene Dom Container in Claude Code?

Run `npx skills add netaart/cohub --skill pixijs-scene-dom-container -a claude-code`. Or copy the skill folder (.agents/skills/pixijs-scene-dom-container in netaart/cohub) into .claude/skills/pixijs-scene-dom-container in your project. Claude Code loads it when a task matches its description.

How do I install Pixijs Scene Dom Container in Codex?

Run `npx skills add netaart/cohub --skill pixijs-scene-dom-container -a codex`. Or copy the skill folder (.agents/skills/pixijs-scene-dom-container in netaart/cohub) into .agents/skills/pixijs-scene-dom-container in your project. Codex loads it when a task matches its description.

Can I use Pixijs Scene Dom Container in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add netaart/cohub --skill pixijs-scene-dom-container -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pixijs-scene-dom-container, .gemini/skills/pixijs-scene-dom-container, .github/skills/pixijs-scene-dom-container and .opencode/skills/pixijs-scene-dom-container in your project.

What does Pixijs Scene Dom Container need to run?

SKILL.md names no scripts, command-line tools or credentials: Pixijs Scene Dom Container is instructions for the agent only.

Does Pixijs Scene Dom Container access the network?

SKILL.md names 1 domain. As links in the text: pixijs.download. This is read from the text; nothing was executed.

Is Pixijs Scene Dom Container safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pixijs Scene Dom Container use?

Pixijs Scene Dom Container is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pixijs Scene Dom Container use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pixijs Scene Dom Container?

Skills that share tags, products or a category with Pixijs Scene Dom Container: Web Artifacts Builder (anthropics/skills, 180k stars), React Doctor (makeplane/plane, 61k stars), Impeccable (bestofjs/bestofjs, 3.1k stars) and Figma Design System Builder (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pixijs Scene Dom Container?

netaart (a GitHub organization) maintains it in netaart/cohub, which has 572 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 11, 2026.

Source: netaart/cohub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.