Fix cppheaders

From HLND2T/CS2_VibeSignatures · View interactive version

Fix cppheaders is an AI agent skill from the GitHub repository HLND2T/CS2_VibeSignatures. Use when s2sdk C++ headers must be repaired to match the latest vtable or record-layout YAML references. Runs run_cpp_tests.py to obtain layout diffs, maps failing cpp_tests entries to their configured headers, edits only those headers, and repeats validation until the differences are resolved. Trig

How to use this skill

Skill file

Fix C++ Headers

Overview

Repair s2sdk declarations from compiler-versus-YAML layout differences. Treat

run_cpp_tests.py as the source of truth for both the initial diff and final verification.

Resolve GAMEVER from the user's explicit request or CS2VIBE_GAMEVER; use only

configs/$GAMEVER.yaml for test definitions and fail if it is missing.

Constraints

available, use virtual void FunctionName() = 0; until a reliable prototype is known.

s2sdk/.

Workflow

  1. Determine the game version from the user's request. If omitted, read CS2VIBE_GAMEVER from .env.
  2. Resolve a release-local immutable symbol candidate. Use a caller-provided actual candidate when available; otherwise

build one from tracked bin_artifacts/<gamever>/ with gamesymbol_candidate.py build and explicit temporary output/

session paths. Never use a tracked gamesymbols/ fallback or read per-symbol truth from bin/.

  1. Run the complete comparison with debug details:

```powershell

uv run run_cpp_tests.py -gamever <gamever> -configyaml configs/<gamever>.yaml -snapshot <snapshot> -debug

```

  1. For each test reporting layout differences, find its cpp_tests entry in configs/<GAMEVER>.yaml and read its symbol,

headers, target, aliases, and reference modules.

  1. Read the configured headers and the complete diff sections:
  1. Make the smallest declaration-only edit that aligns the header with the reference. Typical edits are reordering,

adding, or removing virtual declarations; correcting inheritance; and adjusting record members or padding.

  1. Re-run the same command with the same snapshot. If differences remain, use the new output rather than the previous

diff and repeat.

  1. Finish only when the command exits successfully with zero compile failures, invalid items, and layout differences.

Failure Handling

and report the unrelated failures verbatim.

Completion Report

Report the headers changed, the layout mismatches corrected, and the exact final verification command and result.

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.