agentleFS
HLND2THLND2T/CS2_VibeSignatures/.claude/skills/find-CServerSideClientBase_GetUserIDString/SKILL.md

find-CServerSideClientBase_GetUserIDString

Skill67 starsChanged 58 days agoMITView on GitHub

Final-guarantee fallback for CServerSideClientBase_GetUserIDString when its deterministic string-xref preprocessor cannot resolve the function. Locate the concrete user-ID formatting helper in engine2.dll / libengine2.so and write the semantic artifact for the active platform. Trigger: CServerSideClientBase_GetUserIDString

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this fallback only after ida_preprocessor_scripts/find-CServerSideClientBase_GetUserIDString.py fails.

    line 13
  2. Very specific:

    If CServerSideClientBase_GetUserIDString.<platform>.yaml already exists as a non-empty mapping in the active artifact module directory, …

    line 19
  3. Distinctive:

    Search the current binary for exact string literals matching the user-ID fallback values:

    line 25
  4. Distinctive:

    Write only the active platform output:

    line 54
  5. Very specific:

    If no candidate combines the identity fallbacks with CServerSideClientBase receiver semantics, stop and report the ambiguity rather than …

    line 63
  6. Distinctive:

    Never emit a Windows result while analyzing Linux, or vice versa.

    line 65
  7. Distinctive:

    If the output cannot be uniquely signed, retain only fields accepted by the analyzer's schema and report why the signature was omitted.

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Find CServerSideClientBase_GetUserIDString (Agent fallback)

Use this fallback only after ida_preprocessor_scripts/find-CServerSideClientBase_GetUserIDString.py fails. The target is the CServerSideClientBase member that returns/formats a client's user-ID string; it is not the nearby network-ID helper, HLTV/replay formatter, or a console command.

Step 0. Skip an existing output

If CServerSideClientBase_GetUserIDString.<platform>.yaml already exists as a non-empty mapping in the active artifact module directory, skip it. Never derive the artifact path from bin or write into checkout expected artifacts while analyzing.

Step 1. Locate the target in IDA

Search the current binary for exact string literals matching the user-ID fallback values:

  • STEAM_ID_LAN
  • STEAM_ID_PENDING
  • HLTV
  • REPLAY
  • UNKNOWN

Enumerate code xrefs and decompile candidate functions. Prefer the function whose first argument is the CServerSideClientBase object (rcx on Windows, normally rdi on Linux) and which returns or writes the formatted user ID. The deterministic finder intentionally excludes unrelated matches such as %.3f min, for %.2f minutes, removeid: couldn't find %s, FULLMATCH:%s %s, and banid 0 %s.

Confirm the candidate's semantics: it reads the client's identity/auth state, selects a fallback such as STEAM_ID_LAN, STEAM_ID_PENDING, HLTV, REPLAY, or UNKNOWN, and returns the resulting string (or a pointer to it). Reject functions that only produce the network ID, register a command, or log a diagnostic. The old build-14167 values are orientation only; do not copy an address without checking the current binary.

Step 2. Generate and write the artifact

Rename the verified function with IDA MCP. Use /generate-signature-for-function to generate a unique signature from the current function body, then use /write-func-as-yaml with:

  • func_name=CServerSideClientBase_GetUserIDString
  • verified current func_addr
  • func_rva relative to the current image base
  • current func_size
  • validated func_sig

Write only the active platform output:

  • CServerSideClientBase_GetUserIDString.windows.yaml beside engine2.dll
  • CServerSideClientBase_GetUserIDString.linux.yaml beside libengine2.so

The trusted analyzer performs final canonical serialization; this skill supplies semantic fields only.

Failure handling

  • If no candidate combines the identity fallbacks with CServerSideClientBase receiver semantics, stop and report the ambiguity rather than guessing from reference addresses.
  • Never emit a Windows result while analyzing Linux, or vice versa.
  • If the output cannot be uniquely signed, retain only fields accepted by the analyzer's schema and report why the signature was omitted; do not invent a signature.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.