pixijs-create
Skill571 starsChanged 3 months agoApache-2.0View on GitHub
Use this skill when scaffolding a new PixiJS v8 project with the create-pixi CLI or adding PixiJS to an existing project. Covers npm/yarn/pnpm/bun create commands, interactive vs non-interactive flows, bundler vs creation template categories, available template presets (bundler-vite, bundler-webpack, bundler-esbuild, bundler-import-map, creation-web, framework-react, extension-default), Node version requirements, `npm install pixi.js` for existing projects, post-scaffold dev flow, and the Vite top-level-await production-build gotcha. Triggers on: create pixi.js, npm create, npm install pixi.js, scaffold, template, bundler-vite, bundler-webpack, creation-web, framework-react, new project, existing project, getting started, quick start.
- Installs packages
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
If you already have a bundler, framework, or project set up, skip the CLI and install the package directly:
- Very specific: line 73
Use . as the project name to scaffold into the current directory.
- Distinctive: line 123
Every template ships with the same three-step onboarding:
- Very specific: line 141
Use . as the project name to write into the current working directory.
- Very specific: line 151
After npm run dev starts, the template opens on a blank or bunny-sprite scene.
- Very specific: line 153
Read pixijs-application to understand how the template's entry point constructs new Application() and calls await app.init(...), how …
- Very specific: line 154
Read pixijs-core-concepts for the renderer and render-loop mental model.
- Very specific: line 155
Read pixijs-scene-core-concepts before adding your first non-trivial scene so you know the container-vs-leaf rule upfront.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
create pixi.js is the official CLI for scaffolding a new PixiJS v8 project. Run it with any package manager (npm, yarn, pnpm, bun) and pick a template from the interactive menu, or pass --template to skip prompts. It writes a self-contained project folder; you then cd in, install dependencies, and run the dev script.
Quick Start
Scaffold a new project with interactive prompts:
npm create pixi.js@latestOr skip prompts by passing a project name and template:
npm create pixi.js@latest my-game -- --template bundler-viteThen:
cd my-game
npm install
npm run devRequires Node.js 18+ or 20+. Some templates (notably creation-web and framework-react) may require a newer Node version; the package manager will warn if so.
Adding PixiJS to an existing project
If you already have a bundler, framework, or project set up, skip the CLI and install the package directly:
npm install pixi.jsThen import from pixi.js and construct an Application as shown in pixijs-application. The CLI templates are a convenience for new projects; they don't add anything to the library that npm install pixi.js can't give you.
Related skills: pixijs-application (how the scaffolded new Application() + app.init() entry point works), pixijs-core-concepts (renderers and the render loop), pixijs-scene-core-concepts (scene graph fundamentals for the first things you'll add to the stage), pixijs-assets (loading textures, fonts, and bundles the template expects you to drop into public/ or src/assets/).
Core Patterns
Choose a package manager
The command is the same shape for every package manager:
npm create pixi.js@latest
yarn create pixi.js
pnpm create pixi.js
bun create pixi.jsUnder npm 7+ you must pass a -- before CLI flags so npm doesn't consume them:
npm create pixi.js@latest my-game -- --template bundler-viteYarn, pnpm, and bun don't need the extra separator:
yarn create pixi.js my-game --template bundler-vite
pnpm create pixi.js my-game --template bundler-vite
bun create pixi.js my-game --template bundler-viteUse . as the project name to scaffold into the current directory.
Interactive flow
Running with no arguments walks through prompts:
- Project name (defaults to
pixi-project). - Framework / template category.
- Variant (TypeScript vs JavaScript where applicable).
- Whether to install dependencies immediately (some runners).
At the end, the CLI prints the cd + install + dev commands for the manager you invoked it with.
Non-interactive flow
Pass a project name and --template to skip all prompts. This is the form you want for scripts, CI, and quickstart docs:
npm create pixi.js@latest my-game -- --template bundler-viteAvailable template presets
Templates fall into two categories:
- Bundler templates (
bundler-*): generic PixiJS setup wired up with your bundler of choice. Use one of these when you want to pick your own structure. - Creation templates (
creation-*): platform-tailored starters with extras already wired in (AssetPack, sound, UI, scene routing). Use one of these when you want batteries included. - Framework templates (
framework-*): PixiJS embedded inside a host framework like React. - Extension templates (
extension-*): scaffolding for building a reusable PixiJS package.
For most new projects, bundler-vite is the recommended starting point.
| Template | What you get |
bundler-vite | Vite + TypeScript PixiJS project. The default first-stop template. |
bundler-vite-js | Vite + plain JavaScript. |
bundler-webpack | Webpack + TypeScript. |
bundler-webpack-js | Webpack + plain JavaScript. |
bundler-esbuild | esbuild + TypeScript. |
bundler-esbuild-js | esbuild + plain JavaScript. |
bundler-import-map | No-bundler setup using a browser import map (good for learning / demos). |
creation-web | PixiJS Creation Engine web template with scene-based game scaffolding, AssetPack, sound, and UI integration. |
framework-react | React + TypeScript + PixiJS via the @pixi/react package. |
framework-react-js | React + plain JavaScript + PixiJS. |
extension-default | Starter for building a reusable PixiJS extension/package. |
The live list is maintained in the create-pixi repo; run npm create pixi.js@latest without arguments to see the current menu if you need to confirm.
Post-scaffold flow
Every template ships with the same three-step onboarding:
cd my-game
npm install
npm run devnpm run dev starts the local dev server on the default port (Vite 5173, webpack 8080, etc.; the template's README has the exact number). Changes to src/ hot-reload without reloading the whole page.
Other scripts every template exposes (names may vary slightly by preset):
npm run build: produce a production build indist/.npm run preview/npm run serve: serve the production build locally.npm run lint: run the template's configured linter if it ships one.
Scaffolding into an existing directory
Use . as the project name to write into the current working directory. The CLI refuses to run if non-empty and conflicting files exist unless you confirm the prompt.
mkdir my-game
cd my-game
npm create pixi.js@latest . -- --template bundler-viteNext steps
After npm run dev starts, the template opens on a blank or bunny-sprite scene. The usual progression is:
- Read
pixijs-applicationto understand how the template's entry point constructsnew Application()and callsawait app.init(...), howapp.stage/app.renderer/app.canvashang together, and how the ResizePlugin and TickerPlugin behave by default. - Read
pixijs-core-conceptsfor the renderer and render-loop mental model. - Read
pixijs-scene-core-conceptsbefore adding your first non-trivial scene so you know the container-vs-leaf rule upfront. - Drop in textures via
pixijs-assetsonce you're ready to load real art.
Common Mistakes
[HIGH] Missing -- separator on npm 7+
Wrong:
npm create pixi.js@latest my-game --template bundler-viteCorrect:
npm create pixi.js@latest my-game -- --template bundler-vitenpm 7+ consumes flags after the package spec unless you pass -- to forward them. Without the separator, the CLI ignores --template and drops back to the interactive prompt. Yarn, pnpm, and bun don't need the separator.
[MEDIUM] Running with an old Node version
PixiJS requires Node 18+ or 20+. Some templates (framework-react, creation-web) expect a newer Node for their tooling. Upgrade Node before re-running the CLI if you see an "engines" warning from your package manager.
[MEDIUM] Top-level await app.init() broken in Vite production builds
On Vite versions <=6.0.6, top-level await works in dev but breaks in production builds, so a bundler-vite project that does this at module scope will fail after npm run build:
const app = new Application();
await app.init({ resizeTo: window }); // broken at module top level in prodWrap the init in an async IIFE instead:
(async () => {
const app = new Application();
await app.init({ resizeTo: window });
document.body.appendChild(app.canvas);
})();Upgrading Vite past 6.0.6 also resolves it, but the IIFE pattern is safe on every version and matches the PixiJS quick-start guide.
API Reference
- create-pixi on GitHub
- create-pixi documentation site
- Application: the class the generated entry point instantiates.
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- pixijs/pixijs★ 48k75% same
- pixijs/pixijs-skills★ 34675% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adaptSkill
- animateSkill
- arrangeSkill
- auditSkill
- bolderSkill
- clarifySkill
- colorizeSkill
- critiqueSkill
- delightSkill
- distillSkill
- extractSkill
- frontend-designSkill
- hardenSkill
- normalizeSkill
- onboardSkill
- optimizeSkill
- overdriveSkill
- pixijs-accessibilitySkill
- pixijs-applicationSkill
- pixijs-assetsSkill
- pixijs-blend-modesSkill
- pixijs-colorSkill
- pixijs-core-conceptsSkill
- pixijs-custom-renderingSkill
- pixijs-environmentsSkill
- pixijs-eventsSkill
- pixijs-filtersSkill
- pixijs-html-sourceSkill
- pixijs-mathSkill
- pixijs-migration-v8Skill
- pixijs-performanceSkill
- pixijs-scene-containerSkill
- pixijs-scene-core-conceptsSkill
- pixijs-scene-dom-containerSkill
- pixijs-scene-gifSkill
- pixijs-scene-graphicsSkill
- pixijs-scene-meshSkill
- pixijs-scene-particle-containerSkill
- pixijs-scene-spriteSkill
- pixijs-scene-textSkill
- pixijsSkill
- pixijs-tickerSkill
- polishSkill
- quieterSkill
- teach-impeccableSkill
- typesetSkill
- cohub-appsSkill
- cohub-boardSkill
- cohub-generateSkill
- cohubSkill
- public-filesSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

