[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2Z30QKVRBFA0XH8BH647W":3,"skill-same:01M7F2Z30QKVRBFA0XH8BH647W":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M7F2Z30QKVRBFA0XH8BH647W","pixijs-application",null,"Use this skill when creating and configuring a PixiJS v8 Application. Covers new Application() + async app.init() options (width, height, background, antialias, resolution, autoDensity, preference, resizeTo, autoStart, sharedTicker, canvas, useBackBuffer, powerPreference, eventFeatures, accessibilityOptions, gcActive, bezierSmoothness, webgl\u002Fwebgpu\u002FcanvasOptions per-renderer overrides), app.stage\u002Frenderer\u002Fcanvas\u002Fscreen\u002FdomContainerRoot access, ResizePlugin, TickerPlugin, CullerPlugin (cullable, cullArea), custom ApplicationPlugin creation via ExtensionType.Application, start\u002Fstop lifecycle, and app.destroy() with releaseGlobalResources. Triggers on: Application, app.init, app.stage, app.renderer, app.canvas, app.screen, app.domContainerRoot, ApplicationOptions, ApplicationPlugin, ExtensionType.Application, resizeTo, preference, autoStart, sharedTicker, useBackBuffer, powerPreference, skipExtensionImports, preferWebGLVersion, preserveDrawingBuffer, cullable, CullerPlugin, app.start, app.stop, app.destroy, releaseGlobalResources.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fpixijs-application\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: pixijs-application\ndescription: \"Use this skill when creating and configuring a PixiJS v8 Application. Covers new Application() + async app.init() options (width, height, background, antialias, resolution, autoDensity, preference, resizeTo, autoStart, sharedTicker, canvas, useBackBuffer, powerPreference, eventFeatures, accessibilityOptions, gcActive, bezierSmoothness, webgl\u002Fwebgpu\u002FcanvasOptions per-renderer overrides), app.stage\u002Frenderer\u002Fcanvas\u002Fscreen\u002FdomContainerRoot access, ResizePlugin, TickerPlugin, CullerPlugin (cullable, cullArea), custom ApplicationPlugin creation via ExtensionType.Application, start\u002Fstop lifecycle, and app.destroy() with releaseGlobalResources. Triggers on: Application, app.init, app.stage, app.renderer, app.canvas, app.screen, app.domContainerRoot, ApplicationOptions, ApplicationPlugin, ExtensionType.Application, resizeTo, preference, autoStart, sharedTicker, useBackBuffer, powerPreference, skipExtensionImports, preferWebGLVersion, preserveDrawingBuffer, cullable, CullerPlugin, app.start, app.stop, app.destroy, releaseGlobalResources.\"\nlicense: MIT\ndisable-model-invocation: true\n---\n\n`Application` is the convenience wrapper that owns a renderer, a root `stage` Container, a canvas, and the Ticker\u002FResize plugins. In v8 the constructor takes no arguments; all configuration is passed to the async `app.init()` call which instantiates the renderer via `autoDetectRenderer`.\n\n## Quick Start\n\n```ts\nimport { Application } from \"pixi.js\";\n\nconst app = new Application();\n\nawait app.init({\n  resizeTo: window,\n  background: \"#1099bb\",\n  antialias: true,\n  preference: \"webgl\",\n  autoDensity: true,\n  resolution: window.devicePixelRatio,\n});\n\ndocument.body.appendChild(app.canvas);\n```\n\n**Related skills:** `pixijs-core-concepts` (renderers, render pipeline), `pixijs-ticker` (render loop detail), `pixijs-scene-container` (working with `app.stage`), `pixijs-environments` (non-browser setups).\n\n## Core Patterns\n\n### Lifecycle: construct, init, render, destroy\n\n```ts\nimport { Application } from \"pixi.js\";\n\nconst app = new Application();\n\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\n\u002F\u002F ... run scene, ticker drives app.render() automatically ...\n\napp.destroy(\n  { removeView: true, releaseGlobalResources: true },\n  { children: true, texture: true, textureSource: true },\n);\n```\n\n- `new Application()` allocates the instance but creates nothing. Options passed here are ignored with a v8 deprecation warning.\n- `app.init(options)` is async. It builds the renderer, wires up plugins, and must complete before you can use `app.canvas`, `app.renderer`, or `app.screen`.\n- The TickerPlugin calls `app.render()` every frame once init resolves (unless `autoStart: false`).\n- `app.destroy(rendererDestroyOptions, stageDestroyOptions)` — the first argument forwards to `renderer.destroy()`. Pass `true` or `{ removeView: true }` to remove the canvas from the DOM. Add `releaseGlobalResources: true` to drain global pools (batches, texture caches) when tearing down and re-creating an app in the same tab; omitting it is the usual cause of flickering and stale textures after a re-init (see `pixijs-performance`).\n\n### Key init options\n\n```ts\nawait app.init({\n  width: 800,\n  height: 600,\n  background: 0x1099bb,\n  backgroundAlpha: 1,\n\n  antialias: true,\n  resolution: window.devicePixelRatio,\n  autoDensity: true,\n\n  preference: \"webgpu\",\n\n  autoStart: true,\n  sharedTicker: false,\n\n  resizeTo: window,\n\n  canvas: document.querySelector(\"#game-canvas\") as HTMLCanvasElement,\n});\n```\n\nFor every option — view\u002Fcanvas, background, renderer preference (including the array form), ticker, resize, culler, events, accessibility, WebGL\u002FWebGPU context flags, Graphics bezier smoothness, GC, and per-renderer overrides (`webgl` \u002F `webgpu` \u002F `canvasOptions`) — see [references\u002Fapplication-options.md](references\u002Fapplication-options.md).\n\n### Application properties\n\n```ts\napp.stage; \u002F\u002F root Container; add all display objects here\napp.renderer; \u002F\u002F the WebGL\u002FWebGPU\u002FCanvas renderer instance\napp.canvas; \u002F\u002F the HTMLCanvasElement (insert it into the DOM yourself)\napp.screen; \u002F\u002F Rectangle describing the visible area in CSS pixels\napp.domContainerRoot; \u002F\u002F HTMLDivElement that holds DOMContainer overlays\n```\n\n`app.stage` is a plain `Container`. For scene graph detail (transforms, addChild, destroy) see `pixijs-scene-container`. For renderer-level operations (extract, generateTexture, custom systems) see `pixijs-core-concepts` and `pixijs-custom-rendering`. `app.domContainerRoot` is the `\u003Cdiv>` that the renderer uses to host `DOMContainer` overlays; append it next to `app.canvas` when you need DOM elements pinned to scene nodes (see `pixijs-scene-dom-container`).\n\n### ResizePlugin\n\nSet `resizeTo` at init (or reassign `app.resizeTo` later) to have the plugin listen for the `resize` event and call `renderer.resize()` with the target element's client size. Combine with `autoDensity: true` and `resolution: window.devicePixelRatio` for high-DPI output.\n\n```ts\nawait app.init({ resizeTo: window });\n\napp.resizeTo = document.querySelector(\"#game-container\") as HTMLElement;\n\napp.resize(); \u002F\u002F immediate resize to the target's current size\napp.queueResize(); \u002F\u002F defer the resize to the next animation frame\napp.cancelResize(); \u002F\u002F drop a pending queueResize\n```\n\nThe plugin keeps the canvas matched to the target. `app.screen` and `app.canvas.width\u002Fheight` update in response; read them after the resize to place UI.\n\n- `app.resize()` — immediate synchronous resize.\n- `app.queueResize()` — coalesces rapid calls by deferring to the next frame; internally used by the `window.resize` listener to avoid redundant work.\n- `app.cancelResize()` — cancels a queued resize. Call this before tearing down your own layout code that triggered `queueResize`.\n\n### Ticker basics\n\nThe TickerPlugin creates `app.ticker` and registers `app.render()` on it at `UPDATE_PRIORITY.LOW`. Control the loop with `app.start()`\u002F`app.stop()` and add callbacks with `app.ticker.add` \u002F `app.ticker.addOnce`:\n\n```ts\napp.ticker.add((ticker) => {\n  sprite.rotation += 0.01 * ticker.deltaTime;\n});\n\napp.ticker.addOnce(() => {\n  console.log(\"runs once on the next frame, then removes itself\");\n});\n\napp.stop(); \u002F\u002F pause the render loop (e.g. tab hidden)\napp.start(); \u002F\u002F resume\n```\n\nThe callback receives the `Ticker` instance; read `ticker.deltaTime` for a frame-rate-independent multiplier (~1.0 at 60fps), `ticker.deltaMS` for real milliseconds, or `ticker.FPS` for the current frame rate. See `pixijs-ticker` for priorities, FPS capping, `onRender`, shared vs private tickers, and the v8 callback signature change.\n\n### Manual render loop\n\n```ts\nawait app.init({ autoStart: false, width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\nfunction frame() {\n  updateScene();\n  app.render();\n  requestAnimationFrame(frame);\n}\nframe();\n```\n\n`autoStart: false` prevents the TickerPlugin from starting the ticker automatically. Call `app.render()` yourself (or `app.renderer.render({ container: app.stage })` for the same effect). If you still want registered ticker callbacks to fire, call `app.ticker.update()` inside your loop before `app.render()`.\n\n### CullerPlugin (opt-in)\n\nThe CullerPlugin skips rendering containers that fall outside `app.renderer.screen`. It isn't registered by default; add it before creating your app:\n\n```ts\nimport {\n  Application,\n  Container,\n  Sprite,\n  extensions,\n  CullerPlugin,\n  Rectangle,\n} from \"pixi.js\";\n\nextensions.add(CullerPlugin);\n\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\n\nconst world = new Container();\nworld.cullable = true; \u002F\u002F this container is culled when its bounds leave the screen\nworld.cullableChildren = true; \u002F\u002F default; set `false` to skip recursing into children\n\nconst tile = Sprite.from(\"tile.png\");\ntile.cullable = true;\nworld.addChild(tile);\napp.stage.addChild(world);\n```\n\nContainers are not culled unless `cullable` is set. Override the default bounds check with `container.cullArea = new Rectangle(x, y, w, h)` when child bounds are expensive to compute. The plugin wraps `app.render()` so `Culler.shared.cull(app.stage, app.renderer.screen)` runs before every frame. See `pixijs-performance` for when culling pays off.\n\n### Custom Application plugins\n\nExtend `Application` by registering a class with `static init`, `static destroy`, and `static extension = ExtensionType.Application`. Both methods are called with `this` bound to the Application instance, so `this.renderer` and `this.stage` are available.\n\n```ts\nimport {\n  Application,\n  ExtensionType,\n  extensions,\n  type ApplicationOptions,\n} from \"pixi.js\";\n\nclass FpsOverlay {\n  public static extension = ExtensionType.Application;\n\n  public static init(this: Application, options: Partial\u003CApplicationOptions>) {\n    \u002F\u002F runs inside app.init() after the renderer is created\n    \u002F\u002F attach props\u002Fmethods to `this` to expose them on the app\n  }\n\n  public static destroy(this: Application) {\n    \u002F\u002F runs inside app.destroy() — tear down anything you attached\n  }\n}\n\nextensions.add(FpsOverlay);\n```\n\nPlugins initialize in registration order and destroy in reverse. To add typed options for your plugin, extend `PixiMixins.ApplicationOptions`:\n\n```ts\ndeclare global {\n  namespace PixiMixins {\n    interface ApplicationOptions {\n      fpsOverlay?: { visible?: boolean };\n    }\n  }\n}\n\nawait app.init({ fpsOverlay: { visible: true } });\n```\n\nThe built-in `ResizePlugin`, `TickerPlugin`, and opt-in `CullerPlugin` all use this same contract. If you set `skipExtensionImports: true`, register the built-ins you need yourself (`extensions.add(ResizePlugin, TickerPlugin)`).\n\n## Common Mistakes\n\n### [CRITICAL] Passing options to the constructor\n\nWrong:\n\n```ts\nconst app = new Application({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nCorrect:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nIn v8 the `Application` constructor takes no arguments. Options passed there are ignored and log a deprecation warning; the renderer is only created inside the async `init()` call.\n\n\n### [HIGH] Using app.view instead of app.canvas\n\nWrong:\n\n```ts\ndocument.body.appendChild(app.view);\n```\n\nCorrect:\n\n```ts\ndocument.body.appendChild(app.canvas);\n```\n\n`app.view` was renamed to `app.canvas` in v8. The old getter still works but emits a deprecation warning.\n\n\n### [MEDIUM] Touching app.canvas or app.renderer before init resolves\n\nWrong:\n\n```ts\nconst app = new Application();\ndocument.body.appendChild(app.canvas);\napp.init({ width: 800, height: 600 });\n```\n\nCorrect:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\n`app.renderer`, `app.canvas`, and `app.screen` are only populated once the `init()` promise resolves. Accessing them earlier returns `undefined`.\n\n\n## API Reference\n\n- [Application](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.Application.html.md)\n- [ApplicationOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ApplicationOptions.html.md)\n- [ApplicationPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ApplicationPlugin.html.md)\n- [ResizePlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ResizePlugin.html.md)\n- [ResizePluginOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ResizePluginOptions.html.md)\n- [TickerPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.TickerPlugin.html.md)\n- [TickerPluginOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.TickerPluginOptions.html.md)\n- [CullerPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.CullerPlugin.html.md)\n- [autoDetectRenderer](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Frendering.autoDetectRenderer.html.md)\n","`Application` is the convenience wrapper that owns a renderer, a root `stage` Container, a canvas, and the Ticker\u002FResize plugins. In v8 the constructor takes no arguments; all configuration is passed to the async `app.init()` call which instantiates the renderer via `autoDetectRenderer`.\n\n## Quick Start\n\n```ts\nimport { Application } from \"pixi.js\";\n\nconst app = new Application();\n\nawait app.init({\n  resizeTo: window,\n  background: \"#1099bb\",\n  antialias: true,\n  preference: \"webgl\",\n  autoDensity: true,\n  resolution: window.devicePixelRatio,\n});\n\ndocument.body.appendChild(app.canvas);\n```\n\n**Related skills:** `pixijs-core-concepts` (renderers, render pipeline), `pixijs-ticker` (render loop detail), `pixijs-scene-container` (working with `app.stage`), `pixijs-environments` (non-browser setups).\n\n## Core Patterns\n\n### Lifecycle: construct, init, render, destroy\n\n```ts\nimport { Application } from \"pixi.js\";\n\nconst app = new Application();\n\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\n\u002F\u002F ... run scene, ticker drives app.render() automatically ...\n\napp.destroy(\n  { removeView: true, releaseGlobalResources: true },\n  { children: true, texture: true, textureSource: true },\n);\n```\n\n- `new Application()` allocates the instance but creates nothing. Options passed here are ignored with a v8 deprecation warning.\n- `app.init(options)` is async. It builds the renderer, wires up plugins, and must complete before you can use `app.canvas`, `app.renderer`, or `app.screen`.\n- The TickerPlugin calls `app.render()` every frame once init resolves (unless `autoStart: false`).\n- `app.destroy(rendererDestroyOptions, stageDestroyOptions)` — the first argument forwards to `renderer.destroy()`. Pass `true` or `{ removeView: true }` to remove the canvas from the DOM. Add `releaseGlobalResources: true` to drain global pools (batches, texture caches) when tearing down and re-creating an app in the same tab; omitting it is the usual cause of flickering and stale textures after a re-init (see `pixijs-performance`).\n\n### Key init options\n\n```ts\nawait app.init({\n  width: 800,\n  height: 600,\n  background: 0x1099bb,\n  backgroundAlpha: 1,\n\n  antialias: true,\n  resolution: window.devicePixelRatio,\n  autoDensity: true,\n\n  preference: \"webgpu\",\n\n  autoStart: true,\n  sharedTicker: false,\n\n  resizeTo: window,\n\n  canvas: document.querySelector(\"#game-canvas\") as HTMLCanvasElement,\n});\n```\n\nFor every option — view\u002Fcanvas, background, renderer preference (including the array form), ticker, resize, culler, events, accessibility, WebGL\u002FWebGPU context flags, Graphics bezier smoothness, GC, and per-renderer overrides (`webgl` \u002F `webgpu` \u002F `canvasOptions`) — see [references\u002Fapplication-options.md](references\u002Fapplication-options.md).\n\n### Application properties\n\n```ts\napp.stage; \u002F\u002F root Container; add all display objects here\napp.renderer; \u002F\u002F the WebGL\u002FWebGPU\u002FCanvas renderer instance\napp.canvas; \u002F\u002F the HTMLCanvasElement (insert it into the DOM yourself)\napp.screen; \u002F\u002F Rectangle describing the visible area in CSS pixels\napp.domContainerRoot; \u002F\u002F HTMLDivElement that holds DOMContainer overlays\n```\n\n`app.stage` is a plain `Container`. For scene graph detail (transforms, addChild, destroy) see `pixijs-scene-container`. For renderer-level operations (extract, generateTexture, custom systems) see `pixijs-core-concepts` and `pixijs-custom-rendering`. `app.domContainerRoot` is the `\u003Cdiv>` that the renderer uses to host `DOMContainer` overlays; append it next to `app.canvas` when you need DOM elements pinned to scene nodes (see `pixijs-scene-dom-container`).\n\n### ResizePlugin\n\nSet `resizeTo` at init (or reassign `app.resizeTo` later) to have the plugin listen for the `resize` event and call `renderer.resize()` with the target element's client size. Combine with `autoDensity: true` and `resolution: window.devicePixelRatio` for high-DPI output.\n\n```ts\nawait app.init({ resizeTo: window });\n\napp.resizeTo = document.querySelector(\"#game-container\") as HTMLElement;\n\napp.resize(); \u002F\u002F immediate resize to the target's current size\napp.queueResize(); \u002F\u002F defer the resize to the next animation frame\napp.cancelResize(); \u002F\u002F drop a pending queueResize\n```\n\nThe plugin keeps the canvas matched to the target. `app.screen` and `app.canvas.width\u002Fheight` update in response; read them after the resize to place UI.\n\n- `app.resize()` — immediate synchronous resize.\n- `app.queueResize()` — coalesces rapid calls by deferring to the next frame; internally used by the `window.resize` listener to avoid redundant work.\n- `app.cancelResize()` — cancels a queued resize. Call this before tearing down your own layout code that triggered `queueResize`.\n\n### Ticker basics\n\nThe TickerPlugin creates `app.ticker` and registers `app.render()` on it at `UPDATE_PRIORITY.LOW`. Control the loop with `app.start()`\u002F`app.stop()` and add callbacks with `app.ticker.add` \u002F `app.ticker.addOnce`:\n\n```ts\napp.ticker.add((ticker) => {\n  sprite.rotation += 0.01 * ticker.deltaTime;\n});\n\napp.ticker.addOnce(() => {\n  console.log(\"runs once on the next frame, then removes itself\");\n});\n\napp.stop(); \u002F\u002F pause the render loop (e.g. tab hidden)\napp.start(); \u002F\u002F resume\n```\n\nThe callback receives the `Ticker` instance; read `ticker.deltaTime` for a frame-rate-independent multiplier (~1.0 at 60fps), `ticker.deltaMS` for real milliseconds, or `ticker.FPS` for the current frame rate. See `pixijs-ticker` for priorities, FPS capping, `onRender`, shared vs private tickers, and the v8 callback signature change.\n\n### Manual render loop\n\n```ts\nawait app.init({ autoStart: false, width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n\nfunction frame() {\n  updateScene();\n  app.render();\n  requestAnimationFrame(frame);\n}\nframe();\n```\n\n`autoStart: false` prevents the TickerPlugin from starting the ticker automatically. Call `app.render()` yourself (or `app.renderer.render({ container: app.stage })` for the same effect). If you still want registered ticker callbacks to fire, call `app.ticker.update()` inside your loop before `app.render()`.\n\n### CullerPlugin (opt-in)\n\nThe CullerPlugin skips rendering containers that fall outside `app.renderer.screen`. It isn't registered by default; add it before creating your app:\n\n```ts\nimport {\n  Application,\n  Container,\n  Sprite,\n  extensions,\n  CullerPlugin,\n  Rectangle,\n} from \"pixi.js\";\n\nextensions.add(CullerPlugin);\n\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\n\nconst world = new Container();\nworld.cullable = true; \u002F\u002F this container is culled when its bounds leave the screen\nworld.cullableChildren = true; \u002F\u002F default; set `false` to skip recursing into children\n\nconst tile = Sprite.from(\"tile.png\");\ntile.cullable = true;\nworld.addChild(tile);\napp.stage.addChild(world);\n```\n\nContainers are not culled unless `cullable` is set. Override the default bounds check with `container.cullArea = new Rectangle(x, y, w, h)` when child bounds are expensive to compute. The plugin wraps `app.render()` so `Culler.shared.cull(app.stage, app.renderer.screen)` runs before every frame. See `pixijs-performance` for when culling pays off.\n\n### Custom Application plugins\n\nExtend `Application` by registering a class with `static init`, `static destroy`, and `static extension = ExtensionType.Application`. Both methods are called with `this` bound to the Application instance, so `this.renderer` and `this.stage` are available.\n\n```ts\nimport {\n  Application,\n  ExtensionType,\n  extensions,\n  type ApplicationOptions,\n} from \"pixi.js\";\n\nclass FpsOverlay {\n  public static extension = ExtensionType.Application;\n\n  public static init(this: Application, options: Partial\u003CApplicationOptions>) {\n    \u002F\u002F runs inside app.init() after the renderer is created\n    \u002F\u002F attach props\u002Fmethods to `this` to expose them on the app\n  }\n\n  public static destroy(this: Application) {\n    \u002F\u002F runs inside app.destroy() — tear down anything you attached\n  }\n}\n\nextensions.add(FpsOverlay);\n```\n\nPlugins initialize in registration order and destroy in reverse. To add typed options for your plugin, extend `PixiMixins.ApplicationOptions`:\n\n```ts\ndeclare global {\n  namespace PixiMixins {\n    interface ApplicationOptions {\n      fpsOverlay?: { visible?: boolean };\n    }\n  }\n}\n\nawait app.init({ fpsOverlay: { visible: true } });\n```\n\nThe built-in `ResizePlugin`, `TickerPlugin`, and opt-in `CullerPlugin` all use this same contract. If you set `skipExtensionImports: true`, register the built-ins you need yourself (`extensions.add(ResizePlugin, TickerPlugin)`).\n\n## Common Mistakes\n\n### [CRITICAL] Passing options to the constructor\n\nWrong:\n\n```ts\nconst app = new Application({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nCorrect:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\nIn v8 the `Application` constructor takes no arguments. Options passed there are ignored and log a deprecation warning; the renderer is only created inside the async `init()` call.\n\n\n### [HIGH] Using app.view instead of app.canvas\n\nWrong:\n\n```ts\ndocument.body.appendChild(app.view);\n```\n\nCorrect:\n\n```ts\ndocument.body.appendChild(app.canvas);\n```\n\n`app.view` was renamed to `app.canvas` in v8. The old getter still works but emits a deprecation warning.\n\n\n### [MEDIUM] Touching app.canvas or app.renderer before init resolves\n\nWrong:\n\n```ts\nconst app = new Application();\ndocument.body.appendChild(app.canvas);\napp.init({ width: 800, height: 600 });\n```\n\nCorrect:\n\n```ts\nconst app = new Application();\nawait app.init({ width: 800, height: 600 });\ndocument.body.appendChild(app.canvas);\n```\n\n`app.renderer`, `app.canvas`, and `app.screen` are only populated once the `init()` promise resolves. Accessing them earlier returns `undefined`.\n\n\n## API Reference\n\n- [Application](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.Application.html.md)\n- [ApplicationOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ApplicationOptions.html.md)\n- [ApplicationPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ApplicationPlugin.html.md)\n- [ResizePlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ResizePlugin.html.md)\n- [ResizePluginOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.ResizePluginOptions.html.md)\n- [TickerPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.TickerPlugin.html.md)\n- [TickerPluginOptions](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.TickerPluginOptions.html.md)\n- [CullerPlugin](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Fapp.CullerPlugin.html.md)\n- [autoDetectRenderer](https:\u002F\u002Fpixijs.download\u002Frelease\u002Fdocs\u002Frendering.autoDetectRenderer.html.md)\n",{"name":5,"license":15,"description":7,"disable-model-invocation":24},true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fpixijs-application",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":24},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill pixijs-application",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill pixijs-application",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill pixijs-application","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fpixijs-application\u002FSKILL.md",[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fapplication-options.md","REFERENCE","参考文档",23599,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fpixijs-application\u002Freferences\u002Fapplication-options.md",[53,60,65,72,79,86],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":61,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]