find-SDL_PreInitMouse
Agent fallback for SDL_PreInitMouse (auto-generated, category: func). Locate SDL_PreInitMouse in the CS2 SDL3 module via IDA Pro MCP and emit a fresh, minimal-unique artifact. The deterministic prepro
SKILL.md.claude/skills/find-SDL_PreInitMouse/SKILL.md
GitHubFind SDL_PreInitMouse
Target: SDL_PreInitMouse (func) in the module loaded in THIS session.
The old artifact/preprocessor anchors no longer match this build. Use anchors only to locate candidates; derive the artifact from the ACTUAL bytes you read. Produce ONLY this session's platform output. NEVER open another binary.
Method
Locate via distinctive constants/strings in the body, cross-references from known callers/callees, or the owning class vtable (RTTI) if virtual. Verify by decompilation before committing to a candidate.
Mandatory self-check before emitting
The pipeline re-reads the bytes at your func_va and regenerates func_sig from
them - a mismatch aborts the run. Therefore: read the real bytes via IDA MCP,
derive the artifact FROM those bytes (wildcard relocated operands as ??), start
at the TRUE function head, and only then write the YAML. A mismatch is always a
bug in YOUR output.
Output schema (STRICT)
Write SDL_PreInitMouse.{platform}.yaml with EXACTLY these fields:
func_name: <TASK>
func_va: "<hex virtual address>"
func_rva: "<hex rva>"
func_size: "<hex size>"
func_sig: "<byte pattern, ?? wildcards, function head, minimal-unique>"
NEVER include vfunc_* or struct fields.
Verification
- Decompile and confirm the behavior matches the symbol's semantics.
- Uniqueness: the pattern must match exactly ONE location in the loaded binary.
- If no candidate can be confirmed, report the shortlist - a skipped symbol is safer than a wrong signature.