research
Decompile and analyze TaleWorlds classes before implementing or fixing. Use when touching Harmony patches, adapters, GameModels, or investigating bugs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Decompile and analyze TaleWorlds classes before implementing or fixing. Use when touching Harmony patches, adapters, GameModels, or investigating bugs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Root-cause native Bannerlord CTDs (AccessViolation in TaleWorlds.Native.dll) via Event Log offsets, offline disassembly, and live debugger forensics. No symbols needed.
Dispatch an independent Codex verification job directly via `codex exec` Bash call, then retrieve and present results
Inspect all changed files, group by logical concern, and guide atomic per-concern commits following TAOM's 50/72 rule and commit trailer convention.
Load a snapshot saved by /context-save and present it so this session can pick up where the last one left off without re-deriving decisions.
Launch parallel deep-dive agents to review completed work for quality, standards, compatibility, completeness, and cross-system data flow
Respond to a Bannerlord engine update (Steam force-bump or deliberate migration) — preserve the decompile baseline, regen, diff, re-verify bindings and creature data, control-battle.
| name | research |
| description | Decompile and analyze TaleWorlds classes before implementing or fixing. Use when touching Harmony patches, adapters, GameModels, or investigating bugs. |
| argument-hint | ["ClassName or DLL.ClassName"] |
Follow the TaleWorlds Research Protocol from @docs/ai-includes/taleworlds-research-guide.md
Decompile and analyze: $ARGUMENTS
Identify the DLL — Determine which assembly contains the target class:
TaleWorlds.CampaignSystem.dll — Campaign logic, kingdom decisions, diplomacyTaleWorlds.CampaignSystem.ViewModelCollection.dll — UI ViewModelsTaleWorlds.Core.dll — Core game typesTaleWorlds.MountAndBlade.dll — Battle/mission logicTaleWorlds.Library.dll — Base types, PropertyOwnerSandBox.dll / SandBox.ViewModelCollection.dll — Sandbox-specific logicDecompile the class — Use the ILSpy MCP server (preferred) or fall back to ilspycmd:
# Preferred: ILSpy MCP (configured in .vscode/mcp.json)
mcp__ilspy__decompile_type("E:\Steam\steamapps\common\Mount & Blade II Bannerlord\bin\Win64_Shipping_Client\<DLL>", "TaleWorlds.<Namespace>.<ClassName>")
# Fallback: CLI
ilspycmd "%BANNERLORD_GAME_DIR%\bin\Win64_Shipping_Client\<DLL>" -t "TaleWorlds.<Namespace>.<ClassName>"
Analyze the decompiled output:
Document findings — Summarize:
Provide recommendations for how to safely integrate with the analyzed class.