一键导入
debugging-gnollhack
Instructions on how to use wizard mode (debug mode), decipher panic logs, test specific levels/monsters, and run the MAUI frontend locally.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Instructions on how to use wizard mode (debug mode), decipher panic logs, test specific levels/monsters, and run the MAUI frontend locally.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guidelines for working on the C# .NET MAUI mobile and desktop frontend client (GnollHackM), SkiaSharp game rendering, XAML page layouts, FMOD audio integration, and the P/Invoke native bridge.
Guidance on modifying the GnollHack C core game logic, headers, windowing callbacks, sound/animation definitions, and dungeon data files. Covers K&R coding style, macro idioms, and key data structures.
Guidelines and patterns for converting non-portable C Bitfield macros into platform-portable explicit bitmask flags to fix cross-platform save game compatibility.
Guide on building GnollHack native C libraries, processing assets with makedefs/levcomp/dgncomp/dlb, packaging nhdat, and compiling the C# .NET MAUI frontend for Android, iOS, and Windows.
Best practices for AI agents documenting the GnollHack C# .NET MAUI codebase. Covers XML doc comments, inline comments, P/Invoke documentation, and Microsoft-standard documentation patterns for the game's frontend, native bridge, and UI code.
Patterns for adding monsters, objects, and artifacts to GnollHack. Covers MON/WEAPON/ARMOR/A macro syntax, attack tuples, monster and object flags, the auto-generated headers (pm.h, onames.h), soundset and animation assignments, and the makedefs rebuild pipeline.
| name | debugging_gnollhack |
| description | Instructions on how to use wizard mode (debug mode), decipher panic logs, test specific levels/monsters, and run the MAUI frontend locally. |
-D flag or set wizard = TRUE in code to enable debug mode.paniclog in the local app data folder.wizard = TRUE changes are reverted before committing.gnollhack.exe -D (if using desktop console).flags.debug = TRUE in options.c:initoptions().GHApp.cs, ensure RunFlags.WizardMode is passed to the native bridge initialization.When in wizard mode, special commands become available:
^V (Ctrl+V): Teleport to any level.^W (Ctrl+W): Wish for any object.^G (Ctrl+G): Create any monster.^I (Ctrl+I): Identify all items.^F (Ctrl+F): Map the entire level.panic().paniclog file for the stack trace (if available on the platform).dotnet build -t:Run -f net10.0-windows10.0.19041.0 to run the Windows app locally.Debug.WriteLine in C# for console output.raw_printf (only visible if the console is attached).