/npctalk:npc-dialoguefrom npctalk
Generates authentic NPC dialogue for games using LLMs with persona files, scene context, and conversation history. Fixes generic, robotic, or out-of-character replies.
Ships in npctalk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The voice can be perfect and the NPC still sounds like a chatbot. What fixes it is in the prompt: who they are, how they really talk, where they are, and hard rules about the shape of a spoken line.
examples/gta-v/mod/Dialogue.cs sends)system: RULES (shared by everyone; the game's tone and the shape of a line)
You are <Name>. <persona>
Lines you've actually said (situation|line): <30 random lines from their own list, fresh every call>
Examples of how you talk: <8 written examples, optional>
Right now: <scene facts>
history: the last exchanges with this NPC (per NPC, so each one remembers you)
user: what the player said
examples/gta-v/sample-lines/franklin.txt), or the game's own lines kept locally if the user extracts them
for a private build (NpcVoice/lines/<Voice>.txt, never committed).NpcVoice/characters/<Key>.txt):
name: Lamar Davis
voice: LamarDavis folder in voices/ (default: the file name)
models: ... other model names that are this character
slurs: no yes only if the source character uses them (see Content)
---
Franklin's loud, cocky best friend ... calls Franklin "busta", says "homie", "dog" ...
_npc.txt is the persona for everyone without a file.[angry], [laughing], [whispering]...): the voice model acts
it, and the game can pick a mood voice folder from it.npc-actions).The tone rules are per game. GTA V's are M-rated: foul-mouthed, hostile, roasting the player back harder. A cozy farming game wants the opposite. Write them for the game, in the game's register.
Dialogue.Clean drops refusals (an empty reply, so an NPC never reads out a safety lecture), strips quotes,
*actions* and a Name: or [Name] prefix wherever the model put it, applies the content rules, and cuts to 45
words at the last full sentence.
slurs: yes in a persona allows them only for a
character who uses them in the source material, the way they do; every persona in this repo has it off.qwen-3.8-27b answers in ~0.3 s (DisableReasoning = true).
Reasoning models add 1-5 s, and the player hears every millisecond.MaxTokens = 160, Temperature = 0.9.npcvoice-check talk <Character> "<what the player says>" (GTA example) builds exactly the prompt the mod sends
and runs the LLM and the action picker; npcvoice-check talk runs a set of exchanges for several characters.
Read ten replies per character before tuning anything.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npc-dialogue, game-writing, character-persona, llm-prompting
npx claudepluginhub christos-antono/npctalk --plugin npctalk8 skills in this plugin
/fish-voice-serverHost Fish Audio's open-weights voice models (Drama 3 and S2 Pro) on a serverless GPU (Modal, or fal) behind one small HTTP API a game can call. POST /speak takes text and a voice and streams 16-bit PCM back with first audio in ~0.4 s, cloned zero-shot from a reference clip, with [tags] like [angry] or [laughing] for delivery. Covers deploying with SGLang-Omni, the API, preparing voices at startup, keep-warm and cold starts, scaling to zero and cost, sampling settings that measurably help likeness, picking the best of several takes for pre-rendered lines, an optional S2 Pro fine-tune, and the setup gotchas. Use when a game, mod or app needs realtime cloned character voices, the user mentions Fish Audio, Fish Speech, S2 Pro, Drama 3 or a self-hosted TTS server, or a voice server is slow, cold or failing./make-npcs-talkMake NPCs in a game talk back. The player speaks or types, the NPC answers in character, in a cloned voice, about 1-2 seconds later, and can act on what was said. Covers the whole loop and the order to build it in (who is being talked to, what the scene is, speech-to-text, an LLM in character, Fish Audio voices on a GPU, streamed playback from the NPC, subtitles, mouth movement, actions), the four hooks a game has to provide, latency budgets, costs, testing in the real game, and the rules (single-player, voices you have the rights to, nothing of the game shipped). Use when the user wants NPCs, characters, villagers, companions or enemies in any game to hold conversations, react to the player's voice, or be voiced by Fish Audio (S2 Pro or Drama 3) and an LLM./npc-actionsMake 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./npc-showcase-clipsRecord short clips of NPC conversations that look like real gameplay, ready to post. Covers scripted exchanges at chosen places and times, the gameplay camera held still behind the player, both lines rendered before the clip rolls so it plays back to back, the game's own HUD and subtitles with nothing of the mod on screen, timeline markers for cutting, screen and audio sync, 5-10 s cuts in 16:9 (and 9:16), pinning lines to re-voice an approved take, and re-taking clips that run long. Use when the user wants demo videos, clips or a montage of talking NPCs./voice-inputLet the player talk to NPCs out loud. Covers an always-on open mic with voice activity detection against the room's noise floor, push-to-talk and typing as fallbacks, ignoring the NPC's own voice coming out of the speakers, dropping coughs, clicks and filler words, fast speech-to-text (fal's Nemotron ASR, ~0.4 s, audio sent inline), and routing what was heard to the right NPC. Use when building or debugging mic input for a game, when the open mic triggers on noise or misses speech, when NPCs answer things the player didn't say, or when "nobody answers"./voice-likeness-evalMeasure how much a cloned voice sounds like the real character, and whether a change really helped. Covers speaker-embedding similarity (ECAPA) against the centroid of held-out real clips, word error rate with Whisper, comparing per line with paired t-tests, how many runs it takes to beat sampling noise, checking a take-picker with an independent speaker model, and simulating picking strategies on many scored takes. Use when comparing voice engines or settings (Fish Audio Drama 3 vs S2 Pro vs ElevenLabs, sampling, reference clips, best-of-N, fine-tuning), or before telling anyone that one voice setup is better than another.Other plugins' skills for the same job