Npc Actions logo

Npc Actions

Community
christos-antono
npc-actions

Make NPCs physically react to a conversation and follow spoken orders. Pick an action (punch, slap, hug, kneel and beg, flee, flip off, square up, nothing...) from what the player said and what the NPC replied, with TypeSafe's Jev returning a typed choice and a probability in ~0.1 s, per-action thresholds, a repeat cooldown, orders ("get on your knees") that override mood and make the LLM rewrite the line, and mapping action names onto the game's animations with checks at load. Use when NPCs should act out what they say, obey commands, or when actions picked by an LLM are too random, too timid or too frequent.

Overview

Publisherchristos-antono
RepositoryNPCTalk
Skill namenpc-actions
Stars
201
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by christos-antono on GitHub. Read the source before you install it.

Installation

Install the Npc Actions AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/christos-antono/NPCTalk/tree/main/.agents/skills/npc-actions
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/christos-antono/NPCTalk.git /tmp/NPCTalk
mkdir -p .claude/skills
cp -r /tmp/NPCTalk/.agents/skills/npc-actions .claude/skills/npc-actions
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Npc Actions in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Npc Actions on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Npc Actions is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

NPC actions

Two questions per exchange, both asked to TypeSafe's Jev (a typed-judgment model: it returns one choice from a fixed set, with a probability, in ~0.1 s; key TYPESAFE_API_KEY, https://docs.typesafe.ai):

  1. Before the reply (in parallel with the LLM): is the player giving an order? "Take your shirt off", "get on your knees", "give me a hug", "run". If Jev picks an action with ≥ 0.6 probability, it's an order: the NPC does it, and the LLM writes the line again knowing "you're right now", so they grumble or joke while they comply instead of refusing. Costs ~0.1 s more, only then.
  2. After the reply (in parallel with the voice): what does their mood call for? From the player's words and the NPC's reply, pick the action, or none.

The catalog (examples/gta-v/mod/ActionCatalog.cs)

Each action has a name, a description Jev reads, and the probability Jev must reach before it happens:

ActionMin. probabilityNotes
none-just talk: most exchanges
slap, punch, facepalm, square_up, threaten_gun, hug, kiss0.45
headbutt, shirt_off (men), pants_off (to underwear), bend_over, kneel_beg0.5
shoot, run_away0.6need real certainty: they end the conversation
middle_finger0.7Jev picks it a lot, so it needs more
  • Thresholds per action, not one global cut-off: tune the ones that fire too often upward.
  • Cooldown: the same NPC doesn't repeat an action within 60 s unless ordered to.
  • Descriptions are the prompt. Write when it applies ("only when the reply clearly means killing them right now"), not just what it is.
  • Gender rules (men only) and content rules (underwear stays on) live in code, not in the prompt.

Mapping to the game (NpcActions.cs)

  • Each name maps to candidates: animation dictionary + clip, a task (flee, fight), or a clothing swap. Check every candidate exists when the mod loads and log what was found (action anims:); fall back to the next.
  • Play the action while the line is spoken, aimed at the player (or at whoever the scene says).
  • A director or scripted scene can pin an action (do: kneel_beg) to skip the picker.

Test it

npcvoice-check actions (GTA example) runs 25 exchanges through Jev, 10 of them orders, and checks each pick (25/25 expected). In game, dev mode's PgUp/PgDn pick an action and End makes the target do it, to check the animation without a conversation.

Without Jev

A second LLM call with a JSON schema works, but it's slower (0.3-1 s) and its "confidence" isn't calibrated, so thresholds are guesswork. Whatever picks, keep the shape: a fixed set, a probability, per-action thresholds, orders checked first.

Frequently asked questions

What does the Npc Actions AI skill do?

Make NPCs physically react to a conversation and follow spoken orders. Pick an action (punch, slap, hug, kneel and beg, flee, flip off, square up, nothing...) from what the player said and what the NPC replied, with TypeSafe's Jev returning a typed choice and a probability in ~0.1 s, per-action thresholds, a repeat cooldown, orders ("get on your knees") that override mood and make the LLM rewrite the line, and mapping action names onto the game's animations with checks at load. Use when NPCs should act out what they say, obey commands, or when actions picked by an LLM are too random, too ti...

Why use Npc Actions on TypingMind?

Because you install it once and use it with any model. Npc Actions is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Npc Actions in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/christos-antono/NPCTalk/tree/main/.agents/skills/npc-actions. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Npc Actions?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Npc Actions?

As many as you like. As long as a model supports skills, you can use Npc Actions with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Npc Actions AI skill free?

Yes. It is published on GitHub by christos-antono under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇