Generate reference yaml

From HLND2T/CS2_VibeSignatures · View interactive version

Generate reference yaml is an AI agent skill from the GitHub repository HLND2T/CS2_VibeSignatures. Generate reference YAML via project CLI into ida_preprocessor_scripts/references/<module>/<func_name>.<platform>.yaml

How to use this skill

Skill file

Generate Reference YAML

Use this skill as the unified backend entrypoint through project CLI.

Do not call IDA API directly in this skill. Always run generate_reference_yaml.py.

Required parameters

Command examples

Before choosing a mode, bind the session with the shared bootstrap order: idb_list → idb_open → script fallback only when the MCP endpoint (default 127.0.0.1:13337) is unreachable. Do not call open_file. After any IDB mutation, idb_close(save=True). See mcp-ida-session.md.

1) Attach to existing MCP (should be used when there is an existing ida-pro-mcp connection)

uv run generate_reference_yaml.py -gamever 14141 -module engine -platform windows -func_name CNetworkGameClient_RecordEntityBandwidth -mcp_host 127.0.0.1 -mcp_port 13337

2) Auto-start `idalib-mcp` with binary (fallback when no MCP is attached)

# Windows -- always pass -platform windows explicitly
uv run generate_reference_yaml.py -func_name {FUNC_NAME} -auto_start_mcp -binary "bin/{gamever}/{module}/{binary_name}.dll" -platform windows -debug

# Linux -- always pass -platform linux explicitly
uv run generate_reference_yaml.py -func_name {FUNC_NAME} -auto_start_mcp -binary "bin/{gamever}/{module}/lib{module}.so" -platform linux -debug

where {gamever} can be obtained from .env -> CS2VIBE_GAMEVER.

IMPORTANT -- Always pass -platform explicitly. While -platform can theoretically be inferred from the binary extension (.dll -> windows, .so -> linux), auto-inference is unreliable and may produce the wrong platform's reference YAML. Always pass -platform windows or -platform linux explicitly.

3) Custom output name

Use -output_filename when the reference YAML file name should differ from the default <func_name>.<platform>.yaml:

uv run generate_reference_yaml.py -gamever 14141 -module engine -platform windows -func_name CNetworkGameClient_RecordEntityBandwidth -output_filename CNetworkGameClient_RecordEntityBandwidthReference.windows.yaml -mcp_host 127.0.0.1 -mcp_port 13337

-output_filename accepts a file name ending in .yaml, not a path. The file is still written under ida_preprocessor_scripts/references/<module>/. The YAML payload's func_name remains the value passed to -func_name.

IMPORTANT -- Run generate_reference_yaml.py sequentially, NOT in parallel. All invocations share the same IDA MCP connection. Running them in parallel will cause connection conflicts and failures. Run one command at a time, waiting for each to complete before starting the next.

Output path

Manual checks after generation

  1. func_va is credible for current binary/version.
  2. disasm_code is non-empty and matches target function semantics.
  3. procedure matches expected semantics when available; it can be an empty string when Hex-Rays is unavailable.
  4. func_name only confirms the output file targets your requested canonical name; it does not prove address resolution correctness.

`LLM_DECOMPILE` path wiring

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.