npc-types
Skill17 starsChanged 5 months agoMITView on GitHub
Schema and rules for creating NPC types
In this repository33 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- abilitiesSkill
- ai-instructionsSkill
- archetypesSkill
- build-skillSkill
- canon-npcsSkill
- chartsSkill
- countSkill
- creator-apiSkill
- factionsSkill
- image-genSkill
- itemsSkill
- japanese-romanizationSkill
- locationsSkill
- mapsSkill
- name-filter-settingsSkill
- narrative-eventsSkill
- npcsSkill
- npc-type-reviewSkill
- orchestratorSkill
- premade-charactersSkill
- questsSkill
- realmsSkill
- reflectSkill
- regionsSkill
- review-npcsSkill
- settingsSkill
- skillsSkill
- story-startsSkill
- traitsSkill
- triggersSkill
- world-backgroundSkill
- world-loreSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
When an NPC has type: "goblin", it looks up npcTypes.goblin for damage interactions:
- Very specific: line 44
Use damage types from combatSettings.damageTypes in settings.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
NPC Types
Edit tabs/npc-types.json.
Required Fields
| Field | Requirement |
name | Must match object key exactly |
description | A paragraph describing this type and their typical physical features and personality |
vulnerabilities | Array of damage types (use [] if none) |
resistances | Array of damage types (use [] if none) |
immunities | Array of damage types (use [] if none) |
When to Create Types
Create an NPC type when:
- Multiple NPCs share the same damage profile (vulnerabilities/resistances/immunities)
- The type represents a species, creature category, or profession
Damage Type Inheritance
When an NPC has type: "goblin", it looks up npcTypes.goblin for damage interactions:
- NPC's vulnerabilities = union of type's vulnerabilities + NPC's vulnerabilities
- NPC's resistances = union of type's resistances + NPC's resistances
- NPC's immunities = union of type's immunities + NPC's immunities
This means types provide baseline damage profiles that individual NPCs can extend.
description Format
A paragraph describing this type and their typical physical features and personality. Keep descriptions focused on what the type IS, not specific individuals.
Damage Type Reference
Use damage types from combatSettings.damageTypes in settings.
Schema
interface NPCType {
name: string // Must match object key
description: string // What this type is
vulnerabilities: string[] // 1.5x damage from these types
resistances: string[] // 0.5x damage from these types
immunities: string[] // 0x damage from these types
}Species NPC Types
When creating an NPC type that represents a species (playable race or sentient creature type), you must also create corresponding Trait and World Lore entries. The description contains lore paragraphs + skill blocks separated by \n. The lore paragraphs are shared identically with the Trait description and Trait traitNarrativeEffects; the skill block format differs per field.
See Species Consistency Rules for the full requirements.
Reference
For detailed documentation, see npc-types-reference.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

