agentleFS
nikolaj-latnikolaj-lat/World-Puppeteer/.claude/skills/npc-types/SKILL.md

npc-types

Skill17 starsChanged 5 months agoMITView on GitHub

Schema and rules for creating NPC types

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
  1. Very specific:

    When an NPC has type: "goblin", it looks up npcTypes.goblin for damage interactions:

    line 30
  2. Very specific:

    Use damage types from combatSettings.damageTypes in settings.

    line 44

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

NPC Types

Edit tabs/npc-types.json.

Required Fields

FieldRequirement
nameMust match object key exactly
descriptionA paragraph describing this type and their typical physical features and personality
vulnerabilitiesArray of damage types (use [] if none)
resistancesArray of damage types (use [] if none)
immunitiesArray 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.