get-func-from-yaml
Skill67 starsChanged 58 days agoMITView on GitHub
Load function information from a pre-generated YAML file. Use this skill when you need function address, size, signature, and optional vtable metadata before downstream analysis. This skill checks for existing function YAML files and errors out if not found.
In this repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- cleanup-workspaceSkill
- convert-finder-skill-to-preprocessor-scriptsSkill
- create-agent-skill-fallbackSkill
- create-cpp-testsSkill
- create-preprocessor-scriptsSkill
- create-prSkill
- dump-vtablesSkill
- find-CBaseEntity_GetChangeAccessorPathInfo_1Skill
- find-CCSBotManager_AddBot_BotNavIgnoreSkill
- find-CCSGameRules__sm_mapGcBanInformationSkill
- find-CCSPlayer_MovementServices_CheckJumpButton_WaterPatchSkill
- find-CCSPlayer_MovementServices_FullWalkMove_SpeedClampSkill
- find-CEntitySystem_Init-decompilesSkill
- find-CEntitySystem_m_entityNamesSkill
- find-CNetworkGameServerBase_CheckTimeouts-decompilesSkill
- find-CNetworkGameServerBase_CreateFakeClientSkill
- find-CNetworkGameServerBase_GetChallengeTypeSkill
- find-CNetworkGameServer_GetFreeClientSkill
- find-CNetworkMessages_dtorSkill
- find-CNetworkMessages_GetIsForServerSkill
- find-CNetworkMessages_GetNetworkSerializationContextDataSkill
- find-CNetworkMessages_vtable-decompilesSkill
- find-CServerSideClientBase_GetUserIDStringSkill
- find-CSource2Server_Shutdown-decompilesSkill
- find-CSteam3ServerS1_InitGameServer-decompilesSkill
- find-INetworkServerService_GetServerSerializersCRCSkill
- find-INetworkServerService_IsActiveInGameSkill
- find-INetworkServerService_IsServerRunningSkill
- find-IVEngineServer2_GetClientSteamIDSkill
- find-OnServerVoiceData_IsPlayingDemo_CalleeSkill
- fix-cppheadersSkill
- generate-reference-yamlSkill
- generate-signature-for-functionSkill
- generate-signature-for-globalvarSkill
- generate-signature-for-patchSkill
- generate-signature-for-structoffsetSkill
- generate-signature-for-vfuncoffsetSkill
- get-vtable-addressSkill
- get-vtable-from-yamlSkill
- get-vtable-indexSkill
- init-gamebinSkill
- rename-preprocessor-scriptsSkill
- resolve-pr-conflictSkill
- run-validation-until-no-failureSkill
- run-vcall-finderSkill
- trigger-release-buildSkill
- write-func-as-yamlSkill
- write-globalvar-as-yamlSkill
- write-patch-as-yamlSkill
- write-structoffset-as-yamlSkill
- write-vfunc-as-yamlSkill
- write-vtable-as-yamlSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Run the following code with the appropriate func_name:
- Distinctive: line 66
If some fields are missing, use only the fields that exist in YAML and do not fabricate values.
- Distinctive: line 74
Do NOT proceed with any remaining steps in the calling skill.
- Distinctive: line 78
When a skill needs function information, use this skill first:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Get Function from YAML
Load function information from a pre-generated {func_name}.{platform}.yaml file beside the binary.
Parameters
func_name: The function name to look up (e.g.,CBaseModelEntity_SetModel,CCSPlayerController_ChangeTeam,CEntityInstance_AcceptInput)
Method
1. Check and Load Function YAML
Run the following code with the appropriate func_name:
mcp__ida-pro-mcp__py_eval code="""
import idaapi
import os
func_name = "<FUNC_NAME>" # Replace with actual function name
input_file = idaapi.get_input_file_path()
dir_path = os.environ.get('CS2VIBE_ARTIFACT_DIR') or os.path.dirname(input_file)
platform = 'windows' if input_file.endswith('.dll') else 'linux'
yaml_path = os.path.join(dir_path, f"{func_name}.{platform}.yaml")
if os.path.exists(yaml_path):
with open(yaml_path, 'r', encoding='utf-8') as f:
print(f.read())
print("FUNC_YAML_EXISTS: True")
else:
print(f"ERROR: Required file {func_name}.{platform}.yaml not found.")
"""2. Handle Result
If YAML exists (FUNC_YAML_EXISTS: True), extract available values from the output:
func_name: Function name (if present)func_va: Function virtual address (if present)func_rva: Function relative virtual address (if present)func_size: Function size in bytes (if present)func_sig: Function signature bytes (if present)vtable_name: Related vtable class name (optional, virtual-function YAML only)vfunc_offset: Offset from vtable start (optional, virtual-function YAML only)vfunc_index: Index in vtable (optional, virtual-function YAML only)
Example YAML content:
func_name: CCSPlayerController_Respawn
func_va: 0x180A8CA10
func_rva: 0xA8CA10
func_size: 0x3F
func_sig: 41 B8 80 00 00 00 48 8D 99 10 05 00 00
vtable_name: CCSPlayerController
vfunc_offset: 0x330
vfunc_index: 102If some fields are missing, use only the fields that exist in YAML and do not fabricate values.
If YAML does NOT exist, ERROR OUT and report to user:
ERROR: Required file {func_name}.{platform}.yaml not found.
Please run `/write-func-as-yaml` with func_name={func_name} first.
For virtual functions, `/write-vfunc-as-yaml` is also acceptable.Do NOT proceed with any remaining steps in the calling skill.
Usage in Other Skills
When a skill needs function information, use this skill first:
### 1. Get {FuncName} Function Info
**ALWAYS** Use SKILL `/get-func-from-yaml` with `func_name={FuncName}`.
If the skill returns an error, stop and report to user.
Otherwise, extract `func_va`, `func_sig`, and other available fields for subsequent steps.Example Output
| Field | Description | Example |
func_name | Function name | CCSPlayerController_Respawn |
func_va | Virtual address of function (optional in some virtual-function YAML) | 0x180A8CA10 |
func_rva | Relative virtual address (optional) | 0xA8CA10 |
func_size | Function size in bytes (optional) | 0x3F |
func_sig | Byte signature (optional) | 41 B8 80 00 00 00 ... |
vtable_name | Related class name for virtual function (optional) | CCSPlayerController |
vfunc_offset | Offset from vtable start (optional) | 0x330 |
vfunc_index | Index in vtable (optional) | 102 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

