Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Find CCSGameRules PostCleanUp

ASecurity

Find and identify the CCSGameRules_PostCleanUp function in CS2 server binary using IDA Pro MCP. Use this skill when reverse engineering CS2 server.dll or libserver.so to locate the post-round entity-cleanup routine. It is non-virtual and has no unique string of its own, so it is found via the CCSGameRules_ResetRound predecessor: PostCleanUp is the entity-cleanup call ResetRound makes. Emits a unique IDA-style byte signature and a func YAML. Mirrors the find-CCSGameRules_PostCleanUp.py preproc...

3 stars
0 votes
0 copies
0 views
Added 9/27/2026
devops

Works with

mcp

Security Analysis

A100/100

Scanned 9/27/2026

Install to Claude Code

$npx -y skills add mrc4tt/CS2_VibeSignatures --skill find-CCSGameRules_PostCleanUp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Find CCSGameRules PostCleanUp?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Find CCSGameRules PostCleanUp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mrc4tt-find-ccsgamerules-postcleanup/badge)](https://www.skillsdirectory.com/skills/mrc4tt-find-ccsgamerules-postcleanup)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: find-CCSGameRules_PostCleanUp
description: |
  Find and identify the CCSGameRules_PostCleanUp function in CS2 server binary using IDA Pro MCP.
  Use this skill when reverse engineering CS2 server.dll or libserver.so to locate the post-round
  entity-cleanup routine. It is non-virtual and has no unique string of its own, so it is found via
  the CCSGameRules_ResetRound predecessor: PostCleanUp is the entity-cleanup call ResetRound makes.
  Emits a unique IDA-style byte signature and a func YAML. Mirrors the find-CCSGameRules_PostCleanUp.py
  preprocessor (LLM_DECOMPILE CCSGameRules_ResetRound).
  Trigger: CCSGameRules_PostCleanUp, PostCleanUp, CGameRules::PostCleanUp
disable-model-invocation: true
---

# Find CCSGameRules_PostCleanUp

Locate `CCSGameRules_PostCleanUp` in CS2 `server.dll` or `libserver.so` using IDA Pro MCP tools.

This is a **non-virtual, direct-call** member function (no vtable slot — emit a byte sig, not an
offset). It has **no unique string of its own**: it references `"cs_respawn"`, which is shared with
another large function — so a pure string anchor is **not** unique. It is found via its predecessor
`CCSGameRules_ResetRound`, which calls it.

**Primary resolution = decompile the ResetRound predecessor and pick the entity-cleanup callee.**

## Concrete anchors for THIS target (use these first)

- `xrefs fra/kaldt af TerminateRound (kendt sig i CSSharp gamedata); post-round cleanup`

## KNOWN CONTAMINATION WARNING

VA 0x20c2700 (BuyState_OnUpdate) has WRONGLY been emitted for this target before.
It is NOT this function. If your best candidate is 0x20c2700, you have NOT found
the target - keep searching or report the shortlist instead of guessing.

## Method

### 1. Reuse previous signature (fast path)

If a prior `CCSGameRules_PostCleanUp.{platform}.yaml` exists, try its `func_sig` via
`mcp__ida-pro-mcp__find_bytes`. Single match → resolve to function start, skip to Step 5. Else continue.

### 2. Load CCSGameRules_ResetRound (the anchor)

**ALWAYS** use SKILL `/get-func-from-yaml` with `func_name=CCSGameRules_ResetRound`.

If it errors (not yet found), run SKILL `/find-CCSGameRules_ResetRound` first, then retry.
Extract `func_va` of `CCSGameRules_ResetRound`.

### 3. Enumerate ResetRound's callees

```
mcp__ida-pro-mcp__callees   addrs="<ResetRound_func_va>"
mcp__ida-pro-mcp__decompile addr="<ResetRound_func_va>" include_addresses=false
```

### 4. Identify PostCleanUp among the callees

`PostCleanUp` is the callee of ResetRound that performs the post-round entity cleanup. Decompile the
candidate and confirm ALL:

1. **Iterates the global entity list** (walks entity handles via the entity-system helpers).
2. **dynamic-casts** to `CCSWeaponBase`, `CBombTarget`, and `CHostageRescueZone` (RTTI typeinfo refs
   `_ZTI13CCSWeaponBase`, `_ZTI11CBombTarget`, `_ZTI18CHostageRescueZone`). ← key fingerprint.
3. **References the `"cs_respawn"` string** (and the `ai_network` / `ai_hint` entity-name pointers).
4. Frees/cleans up the matched entities (calls into the mem-free / entity-destroy path).

The `"cs_respawn"` string has two referencers; PostCleanUp is the one reached as a callee of
ResetRound (the other is a much larger think/restart function, not called by ResetRound).

Record `func_addr`. Optionally rename to `CCSGameRules_PostCleanUp`.

### 5. Generate signature

**ALWAYS** use SKILL `/generate-signature-for-function` with `addr=<func_addr>`. Emit IDA style
verbatim (space hex, `?` wildcards) — do NOT convert to CSS `\x2A` unless a `gamedata.json` entry
is explicitly requested.

Reference sig (build 14165 — sanity check only, regenerate per binary):
- linux: `55 48 89 E5 41 57 49 89 FF 41 56 41 55 41 54 53 48 81 EC ? ? ? ? E8 ? ? ? ? 66 83 F8`

### 6. Write func YAML

**ALWAYS** use SKILL `/write-func-as-yaml`:
- `func_name`: `CCSGameRules_PostCleanUp`
- `func_addr`: `<func_addr>`
- `func_sig`: validated sig from step 5

## Function Characteristics

- **Linkage**: non-virtual, direct-call (no vtable entry)
- **Binary**: `server.dll` / `libserver.so`
- **Caller**: `CCSGameRules_ResetRound` (and one other round-restart path)
- **Distinguishing trait**: entity-list walk + dynamic_cast to CCSWeaponBase/CBombTarget/
  CHostageRescueZone + `"cs_respawn"` reference

## Discovery Strategy (why this is stable across updates)

1. `ResetRound` is the durable anchor (found via the unique `"GMR_ResetRound\n"` string).
2. PostCleanUp is pinned as ResetRound's entity-cleanup callee — deterministic, not address-based.
3. The final byte sig is regenerated per binary, so it self-heals each game update once the
   functions are re-resolved.

## Preprocessor pipeline equivalent

```
find-CCSGameRules_ResetRound        [xref_strings "GMR_ResetRound\n"]
 -> find-CCSGameRules_PostCleanUp    [LLM_DECOMPILE ResetRound, entity-cleanup callee]
```

Reference YAML lives in `references/server/CCSGameRules_ResetRound.{platform}.yaml`.

## Output YAML Format

- `server.dll`   -> `CCSGameRules_PostCleanUp.windows.yaml`
- `libserver.so` -> `CCSGameRules_PostCleanUp.linux.yaml`

Attribution

mrc4ttmrc4tt
View sourceMore from mrc4tt →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Terraform Module Library

Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

400051 votes

sematext-otel

Wire a service's OpenTelemetry output to Sematext Cloud. Walks through region, App-type, instrumentation flow (managed OTLP endpoint vs Sematext Agent), and signal selection (traces/metrics/logs), then produces the exact env-var block and points at a runnable reference example in this repo. Invoke when instrumenting a new app for Sematext.

01 votes

Deployment Patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.

2672080 votes

Babysit

Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.

947440 votes

V7 Roster

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

813270 votes
View all in devops →