# Cs2 ag2 npc runtime

> Cs2 ag2 npc runtime is an open-source agent skill for developer tools. Guides an agent through diagnosing and driving CS2 AnimGraph2 NPC animation safely. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/AbsilDylan/cs2-skills/tree/main/cs2-ag2-npc-runtime
- **Repository:** https://github.com/absildylan/cs2-skills
- **GitHub stars:** 10
- **License:** Apache-2.0
- **Skill name:** cs2-ag2-npc-runtime
- **Collection:** https://github.com/AbsilDylan/cs2-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill helps an AI coding agent work on animation presentation for server-owned NPCs in Counter-Strike 2, built around an existing AnimGraph2 model on a prop_dynamic_override or similar entity. It sets a strict investigation order: read the compiled graph contract first, then confirm that the graph definition and instance actually materialize, and only then write parameters through typed engine calls.

The workflow covers graph inspection with a bundled Python summary script, packaging the full resource closure for a Workshop addon, controller diagnostics, a typed parameter bridge for Linux with fail-closed signature handling, and mapping gameplay states to graph inputs. It also lays out layered validation from static resources through clean-client Workshop tests, and it directs general NPC gameplay, asset porting and weapon graph work to other skills.

The skill expects a CS2 server plugin setup, most examples use ModSharp, and it requires the user to supply their own lawful model assets since none are distributed.

## When your agent uses it

> Diagnose and drive CS2 AnimGraph2 NPC presentation: graph contracts, controllers, typed parameters, Linux signatures, and Workshop delivery. Excludes gameplay AI/nav/combat and asset authoring.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/AbsilDylan/cs2-skills/tree/HEAD/cs2-ag2-npc-runtime)
- [No network calls found in its scripts](https://github.com/AbsilDylan/cs2-skills/tree/HEAD/cs2-ag2-npc-runtime)
- [License: Apache-2.0](https://github.com/AbsilDylan/cs2-skills/tree/HEAD/cs2-ag2-npc-runtime)

## Features

- **Graph contract discovery:** Reads compiled AnimGraph2 resources to list control parameters, types, transitions, clips and events.
- **Controller materialization checks:** Confirms the primary, definition and instance layers of an animated NPC step by step.
- **Typed parameter bridge:** Describes strict, game-thread native setters for Bool, Float and ID parameters on Linux.
- **Behavior-to-animation mapping:** Turns server-side NPC states, velocity and one-shot actions into graph parameter updates.
- **Workshop packaging validation:** Covers compiling the complete resource closure and testing it from a clean client download.
- **Fail-closed signature policy:** Disables native writes when signatures are missing or ambiguous after a game update.

## Good for

- Diagnose why a CS2 NPC model stays in its static pose
- List the animation parameters a compiled AnimGraph2 graph exposes
- Map NPC attack and recovery states to graph inputs
- Package an animated NPC model for a Workshop addon
- Validate an NPC animation bridge after a CS2 update

## Install

### Claude Code

This skill ships in the `cs2-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add AbsilDylan/cs2-skills
/plugin install cs2-skills@absildylan-cs2-skills
```

Or copy only this skill to `~/.claude/skills/cs2-ag2-npc-runtime`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbsilDylan/cs2-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cs2-ag2-npc-runtime &&
cp -R "$tmp/cs2-ag2-npc-runtime" ~/.claude/skills/cs2-ag2-npc-runtime &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/cs2-ag2-npc-runtime` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/cs2-ag2-npc-runtime` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbsilDylan/cs2-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cs2-ag2-npc-runtime &&
cp -R "$tmp/cs2-ag2-npc-runtime" ~/.agents/skills/cs2-ag2-npc-runtime &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/cs2-ag2-npc-runtime` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/cs2-ag2-npc-runtime` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbsilDylan/cs2-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cs2-ag2-npc-runtime &&
cp -R "$tmp/cs2-ag2-npc-runtime" ~/.cursor/skills/cs2-ag2-npc-runtime &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/cs2-ag2-npc-runtime` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/AbsilDylan/cs2-skills.git --path cs2-ag2-npc-runtime
```

Or copy the folder to `~/.gemini/skills/cs2-ag2-npc-runtime` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/cs2-ag2-npc-runtime`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbsilDylan/cs2-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cs2-ag2-npc-runtime &&
cp -R "$tmp/cs2-ag2-npc-runtime" ~/.copilot/skills/cs2-ag2-npc-runtime &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/cs2-ag2-npc-runtime` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/AbsilDylan/cs2-skills.git
```

Then copy `cs2-skills/cs2-ag2-npc-runtime` into your agent's skills folder as `cs2-ag2-npc-runtime`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Cs2 ag2 npc runtime apply instead of the server NPC skill?

It covers animation presentation for model entities with a CBaseAnimGraphController. Targeting, navigation, combat and cleanup belong to cs2-server-npc-runtime, and weapon or item graphs belong to cs2-animgraph2-authoring.

### Does Cs2 ag2 npc runtime write animation parameters directly into memory?

No. It requires writes through engine functions with the exact discovered parameter type, and it forbids direct graph or controller memory writes and pointer scanning.

### Are the model assets included?

No. The skill states that extracted Valve or third-party compiled assets are not redistributed, and users must supply their own lawful resource closure.

### Which framework does the bundled example use?

The bundled example targets ModSharp. The skill says other frameworks need their own scanner, gamedata and entity APIs.

### How do I install Cs2 ag2 npc runtime in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/cs2-ag2-npc-runtime to use it in all your projects, or to .claude/skills/cs2-ag2-npc-runtime in one project. Or install the cs2-skills plugin, which includes it: /plugin marketplace add AbsilDylan/cs2-skills, then /plugin install cs2-skills@absildylan-cs2-skills.

### Does Cs2 ag2 npc runtime run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Cs2 ag2 npc runtime?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Cs2 ag2 npc runtime?

The closest alternatives to Cs2 ag2 npc runtime are Cs2 animgraph2 authoring, Cs2 server npc runtime, Cs2 player model porting, Rpgmaker authoring and Orchestration.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Cs2 animgraph2 authoring](https://ai-powered.com/skills/cs2-animgraph2-authoring): Cs2 animgraph2 authoring is an open-source agent skill for developer tools.
- [Cs2 server npc runtime](https://ai-powered.com/skills/cs2-server-npc-runtime): Cs2 server npc runtime is an open-source agent skill for developer tools.
- [Cs2 player model porting](https://ai-powered.com/skills/cs2-player-model-porting): Cs2 player model porting is an open-source agent skill for developer tools.
- [Rpgmaker authoring](https://ai-powered.com/skills/rpgmaker-authoring): Rpgmaker authoring is an open-source agent skill for developer tools.
- [Orchestration](https://ai-powered.com/skills/orchestration-xiaolai): Orchestration is an open-source agent skill for developer tools.
- [Craftcms](https://ai-powered.com/skills/craftcms): Craftcms is an open-source agent skill for developer tools.
- [Minecraft plugin development](https://ai-powered.com/skills/minecraft-plugin-development): Minecraft plugin development is an open-source agent skill for developer tools.
- [Safe execution edho ferdian](https://ai-powered.com/skills/safe-execution-edho-ferdian): Safe execution edho ferdian is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/cs2-ag2-npc-runtime
