game_kit
ChatGPTLists each package a debuff playground game can import, what it is for, and its exports: rendering, the game loop, input, game feel (tweens, particles, trails), synthesized sound, menus and bars, tile collision, asset loading and dev tools.
get_api
ChatGPTReturn the API reference for a debuff class, function, interface or type, such as 'Game', 'Input' or 'GameOptions'. With a partial name, lists the matching symbols.
get_doc
ChatGPTReturn the full markdown of one debuff.jp page, by path from search_docs, e.g. '/docs/params' or '/blog/debuff-vs-pixijs-vs-phaser'.
list_starters
ChatGPTUse when someone wants to start making a 2D web game: a platformer, a top-down adventure, a match-3 puzzle or an empty project. Lists the debuff starter games with the command that creates each one. The user runs it on their own machine.
playground_link
ChatGPTUse when someone wants to see or play a small game right away, without installing anything. Turn a single-file debuff game (TypeScript, importing @debuffjp/core, input, juice, audio or dev) into a link that opens it in the debuff playground, where it runs beside the code and is type-checked in the browser. Give the user the link. The code must draw into the page's <canvas id="game">, and must end by choosing a scene and starting the loop, or nothing draws. Shape: const game = new Game({ canvas: document.querySelector<HTMLCanvasElement>("#game")!, width: 320, height: 180 }); game.add({ id: "play", update(dt) { ... }, render(d) { ... } }); game.go("play"); game.start(); Imports: Game from "@debuffjp/core"; Input from "@debuffjp/input" (new Input(game, { bindings: { left: ["ArrowLeft", "KeyA"] } }), then input.down/pressed(action) and input.axis(neg, pos)). Draw only through render's d: d.rect(x, y, w, h, color), d.circle(x, y, r, color), d.line(x1, y1, x2, y2, width, color), d.text(str, x, y, { color }). Never use canvas.getContext. If unsure of an API, check get_api first. Nothing is stored: the code travels in the link itself, so it is long. Show it as a link or button that uses the url field exactly; never retype or shorten it, because one wrong character breaks the game.
search_docs
ChatGPTUse when someone wants to make a 2D browser or web game in JavaScript or TypeScript, or asks how to do something in debuff (movement, collision, tilemaps, input, sound, game feel, testing with coding agents). Searches the debuff guides, blog and package docs and returns the best-matching sections with their URL and an excerpt. Use get_doc to read a whole page.
game_kit
ClaudeLists each package a debuff playground game can import, what it is for, and its exports: rendering, the game loop, input, game feel (tweens, particles, trails), synthesized sound, menus and bars, tile collision, asset loading and dev tools.
get_api
ClaudeReturn the API reference for a debuff class, function, interface or type, such as 'Game', 'Input' or 'GameOptions'. With a partial name, lists the matching symbols.
get_doc
ClaudeReturns the full markdown of one debuff.jp page by its path, such as '/docs/params' or '/blog/debuff-vs-pixijs-vs-phaser'.
list_starters
ClaudeLists the debuff starter games (platformer, side-scroller, top-down, isometric, point-and-click, match-3 and an empty project), each with the npm create command that makes it on the user's own machine.
playground_link
ClaudeTurns a debuff game written in TypeScript into a link to the debuff playground, where it runs beside its code, and returns the compiled game for clients that show it inline. The code is the game's main.ts. It imports from @debuffjp/core, input, juice, audio, ui, tilemap, assets or dev, draws into the page's <canvas id="game">, and ends by choosing a scene and starting the loop: const game = new Game({ canvas: document.querySelector<HTMLCanvasElement>("#game")!, width: 320, height: 180 }); game.add({ id: "play", update(dt) { ... }, render(d) { ... } }); game.go("play"); game.start(); Input: new Input(game, { bindings: { left: ["ArrowLeft", "KeyA"] } }) from @debuffjp/input, then input.down, pressed, released and axis. Drawing goes through render's d: d.rect(x, y, w, h, color), d.circle(x, y, r, color), d.line(x1, y1, x2, y2, width, color), d.text(str, x, y, { color }). Nothing is stored: the url carries the code and a checksum, so it is long and any change to it makes it invalid.
search_docs
ClaudeSearches the debuff guides, blog and package docs about making 2D browser games in JavaScript or TypeScript (movement, collision, tilemaps, input, sound, game feel, testing). Returns the best-matching sections with their URL, page path and an excerpt.