This skill provides optimization methods for Nethercore ZX games. Use when the user asks about "optimize", "compress", "reduce size", "wasm-opt", "BC7", "LTO", "asset compression", "mesh optimization", "texture compression", or "state size". **Load references when:** - Detailed code examples → `references/code-examples.md`
/plugin marketplace add nethercore-systems/nethercore-ai-plugins/plugin install zx-optimize@nethercore-ai-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/code-examples.md[profile.release]
lto = true # Link-time optimization
opt-level = "z" # Optimize for size
codegen-units = 1 # Better optimization
panic = "abort" # Smaller than unwind
strip = true # Strip symbols
wasm-opt -Oz game.wasm -o game.wasm
Typical savings: 20-40%
All textures use BC7 compression (4:1 ratio):
| Original | Compressed |
|---|---|
| 256×256 RGBA (256 KB) | 64 KB |
| 512×512 RGBA (1 MB) | 256 KB |
Resolution targets:
| Format | Size/Vertex |
|---|---|
| Position only | 12 bytes |
| Pos + UV | 20 bytes |
| Pos + UV + Normal | 32 bytes |
| Full | 40 bytes |
Poly targets:
// Use compact types
struct Position { x: f32, y: f32 } // 8 bytes
struct Position { x: i16, y: i16 } // 4 bytes (fixed-point)
// Fixed arrays, not Vec
entities: [Entity; 64], // Known size
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.