find-CCSBotManager_AddBot_BotNavIgnore
Skill67 starsChanged 58 days agoMITView on GitHub
Find and patch the g_pNavMesh null-check inside CCSBotManager_AddBot in CS2 binary using IDA Pro MCP. This patch removes the navigation mesh requirement so bots can be added even without a nav mesh loaded. Use this skill when reverse engineering CS2 server.dll or libserver.so to locate and patch the nav mesh check in AddBot. Trigger: bot nav ignore, AddBot nav mesh patch, bot without nav, CCSBotManager nav ignore
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-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-func-from-yamlSkill
- 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
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
ALWAYS: Use SKILL /get-func-from-yaml with func_name=CCSBotManager_AddBot.
- Distinctive: line 45
If the skill returns an error, stop and report to user.
- Distinctive: line 69
Look for this assembly pattern:
- Very specific: line 85
Read the original bytes of the jz instruction:
- Very specific: line 101
ALWAYS: Use SKILL /generate-signature-for-patch to generate and validate the signature.
- Very specific: line 113
ALWAYS: Use SKILL /write-patch-as-yaml to persist the results.
≈ “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
CCSBotManager_AddBot_BotNavIgnore Patch Workflow
Overview
Locate the g_pNavMesh null-check at the beginning of CCSBotManager_AddBot and generate a patch that converts the conditional jz (jump-if-zero) into an unconditional jmp past the early-return, so bots can be added even when no navigation mesh is loaded.
The target code pattern in pseudocode:
if ( !g_pNavMesh || !*(_BYTE *)(g_pNavMesh + 264) ) // <-- patch target: skip this check
return 0;In assembly, the first branch of this check is:
mov rax, cs:g_pNavMesh
...
test rax, rax
jz loc_XXXXXXXX ; <-- patch this: jz -> jmp to loc after the nav checkThe jz is a near conditional jump (0F 84 rel32 — 6 bytes). Patching it to jmp rel32 (E9 <new_rel32> 90 — 5 bytes + 1 NOP) makes it always jump past both the null-pointer check and the g_pNavMesh + 264 byte check, landing at the code that continues bot creation.
The jump target should be the loc_ label that is reached after both nav mesh checks pass (the code right after the second jz that also targets the same early-return).
Prerequisites
CCSBotManager_AddBotmust already be identified. Use SKILL/get-func-from-yamlwithfunc_name=CCSBotManager_AddBotto load its address. If YAML does not exist, run SKILL/find-CCSBotManager_AddBot-AND-g_pCSBotManager-AND-g_pNavMeshfirst.
Location Steps
1. Get CCSBotManager_AddBot Function Address
ALWAYS Use SKILL /get-func-from-yaml with func_name=CCSBotManager_AddBot.
If the skill returns an error, stop and report to user.
2. Decompile and Locate the Nav Mesh Check
Decompile the function:
mcp__ida-pro-mcp__decompile(addr="<func_va>")In the decompiled output, search for the nav mesh check pattern at the very beginning of the function body. The key indicators are:
if ( !g_pNavMesh || !*(_BYTE *)(g_pNavMesh + 264) )or equivalent- Immediately followed by
return 0;
Note the address annotation on the if-statement line.
3. Disassemble the Function Prologue
Disassemble the first ~30 instructions of the function to find the exact test rax, rax + jz pair:
mcp__ida-pro-mcp__disasm(addr="<func_va>", max_instructions=30)Look for this assembly pattern:
mov rax, cs:g_pNavMesh
...
test rax, rax
jz loc_XXXXXXXX ; early return if g_pNavMesh == NULL
cmp byte ptr [rax+108h], 0
jz loc_XXXXXXXX ; early return if nav mesh not loadedRecord:
- patch_va: Address of the first
jzinstruction (thetest rax, rax/jzpair) - jump_target: The address of the code right AFTER the second
jz— this is where execution continues when both checks pass. This is the label we want to jump to unconditionally.
4. Determine Patch Bytes
Read the original bytes of the jz instruction:
mcp__ida-pro-mcp__get_bytes(regions={"addr": "<patch_va>", "size": 6})The jz is a near conditional jump: 0F 84 rel32 (6 bytes).
Compute the new unconditional jump to the target (the code after both nav checks):
new_rel32 = jump_target - (patch_va + 5)patch_bytes=E9 <new_rel32_le> 90
Where <new_rel32_le> is the 4-byte little-endian encoding of new_rel32.
5. Generate Patch Signature
ALWAYS Use SKILL /generate-signature-for-patch to generate and validate the signature.
Required context for the skill:
func_name:CCSBotManager_AddBotfunc_va: From step 1patch_va: Address of thejzinstruction from step 3original_instruction: e.g.,jz loc_1802A1485patched_instruction: e.g.,jmp loc_1802A104F+nopdescription:Remove g_pNavMesh null-check in CCSBotManager_AddBot - patch conditional jz to unconditional jmp to skip nav mesh validation
6. Write YAML Output
ALWAYS Use SKILL /write-patch-as-yaml to persist the results.
Required parameters:
patch_name:CCSBotManager_AddBot_BotNavIgnorepatch_sig: The validated signature from step 5patch_bytes: The computed patch bytes from step 4patch_sig_disp: From step 5 result (omit if 0)
Output YAML Files
CCSBotManager_AddBot_BotNavIgnore.windows.yamlCCSBotManager_AddBot_BotNavIgnore.linux.yaml
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.

