ワンクリックで
create-app-bundle
Create app metadata, thumbnail, and offline configuration for the Puzzmo platform
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create app metadata, thumbnail, and offline configuration for the Puzzmo platform
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Wire up game completion signaling to the Puzzmo host
Integrate the Puzzmo SDK into a Vite game project for host communication
Configure the Puzzmo CLI for uploading game builds
Edit the `integrations` block in puzzmo.json (leaderboards, notables, etc.) using live game context from the dev.puzzmo.com MCP
Add integrations to puzzmo.json with leaderboard configuration using deeds
Convert hardcoded colors to use Puzzmo theme tokens for light/dark mode support
SOC 職業分類に基づく
| name | create-app-bundle |
| description | Create app metadata, thumbnail, and offline configuration for the Puzzmo platform |
Set up the metadata and assets needed for the game to appear on Puzzmo.
Create a public/ directory for static assets if it doesn't exist.
Add the appBundlePlugin to vite.config.ts:
import { defineConfig } from "vite"
import { puzzmoSimulator, appBundlePlugin } from "@puzzmo/sdk/vite"
export default defineConfig({
plugins: [puzzmoSimulator({ fixturesGlob: "/fixtures/puzzles/**/*.json" }), appBundlePlugin()],
build: {
outDir: "dist",
assetsDir: "assets",
},
})
The appBundlePlugin runs after the main build and produces dist/app-bundle.js as a separate ES module library build from src/appBundle.js.
Create src/appBundle.js (or src/appBundle.ts) that exports the renderThumbnail function:
export type ThumbnailResult = { svg: string; width: number; height: number }
export type AppBundle = {
/** Renders a puzzle and optional state string into an SVG and its dimensions */
renderThumbnail(puzzleStr: string, inputStr?: string, config?: ThumbnailConfig): ThumbnailResult
}
You can find the ThumbnailConfig and ThumbnailResult type definitions in @puzzmo-com/sdk/types.
The function should return { svg, width, height } — an SVG string that visually represents the puzzle plus its pixel dimensions (so the platform can size it without parsing the SVG). You could use code from the original game but the goal is a drastically simplified rendering that captures the essence of the puzzle in a small thumbnail. The thumbnail will be used on the Puzzmo platform to represent the puzzle in lists and previews.
dist/index.htmldist/dist/app-bundle.js with the renderThumbnail exportbuild script completes without errorsdist/ directory contains a complete, self-contained game