godothub/godot-minigame / skills
godot-wechat-minigame-adapter
UnverifiedApply the bundled self-contained Godot WeChat Mini Game adapter kit to an official Godot checkout. Use when the user wants to port official Godot to WeChat Mini Game, refresh a nearby 4.6-based port, or inspect the shipped patch/source bundle for WXMEMFS, `wx.request`, audio cleanup, display/input, WXGLX dual-path rendering, `.wasm.br`, and `wx.exitMiniProgram`. This skill is version-locked to the bundled upstream base and must not be described as a generic “Godot 4.x” patch dump.
tests/test_wxglx_nine_patch_patch.js
View on GitHubconst assert = require("assert");
const fs = require("fs");
const path = require("path");
const root = path.resolve(process.argv[2] || ".");
const canvasPath = path.join(root, "servers/rendering/renderer_canvas_cull.cpp");
const headerPath = path.join(root, "platform/web/godot_js.h");
const displayPath = path.join(root, "platform/web/js/libs/library_godot_display.js");
const canvas = fs.readFileSync(canvasPath, "utf8");
const header = fs.readFileSync(headerPath, "utf8");
const display = fs.readFileSync(displayPath, "utf8");
assert.ok(
canvas.includes("#ifdef WECHAT_GLX_EXPERIMENTAL"),
"nine-patch expansion must remain compile-time scoped to GLX-capable builds"
);
assert.ok(
canvas.includes("bool _is_wx_glx_runtime_enabled()"),
"nine-patch expansion must query the pinned runtime mode"
);
assert.ok(
canvas.includes("godot_js_display_is_wx_glx_enabled() == 1"),
"runtime mode query must use the display bridge"
);
assert.ok(
canvas.includes("MAX_NINE_PATCH_TILES_PER_AXIS = 64"),
"tile expansion must remain bounded"
);
const functionStart = canvas.indexOf("void RendererCanvasCull::canvas_item_add_nine_patch");
const runtimeGate = canvas.indexOf("if (_is_wx_glx_runtime_enabled())", functionStart);
const rectExpansion = canvas.indexOf("canvas_item_add_texture_rect_region", runtimeGate);
const originalFallback = canvas.indexOf("Item::CommandNinePatch *style", functionStart);
assert.ok(functionStart >= 0, "canvas_item_add_nine_patch must exist");
assert.ok(runtimeGate > functionStart, "nine-patch expansion must be runtime-gated");
assert.ok(rectExpansion > runtimeGate, "WXGLX path must emit regular texture rectangles");
assert.ok(
originalFallback > rectExpansion,
"standard WebGL and invalid inputs must retain Godot's original nine-patch command"
);
assert.ok(
header.includes("extern int godot_js_display_is_wx_glx_enabled();"),
"Godot JS header must declare the runtime-mode bridge"
);
assert.ok(
display.includes("godot_js_display_is_wx_glx_enabled__proxy: 'sync'"),
"display library must expose a synchronous runtime-mode bridge"
);
assert.ok(
display.includes("root.__godotMinigameWXGLXEnabled === true ? 1 : 0"),
"display bridge must read the loader's pinned WXGLX mode"
);
console.log("WXGLX nine-patch patch tests passed");
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |