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

locations

Skill17 starsChanged 5 months agoMITView on GitHub

Schema and rules for creating locations

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not set visualTags on areas.

    line 52
  2. Distinctive:

    Use Title Case for area names (they are display strings, not programmatic identifiers)

    line 59
  3. Distinctive:

    All paths must be bidirectional (if A links to B, B must list A)

    line 60
  4. Very specific:

    Check locationSettings.regionSize in tabs/settings.json to determine bounds

    line 65
  5. Distinctive:

    No two locations can overlap (distance between centers must be >= sum of radii)

    line 68
  6. Very specific:

    Check tabs/locations.json for existing locations and their coordinates to avoid overlap

    line 69

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

Locations

Edit tabs/locations.json.

Required Fields

FieldRequirement
nameMust match object key exactly
basicInfoFreeform descriptive paragraph about the location
xX coordinate - generate random value within the region
yY coordinate - generate random value within the region
radiusInfer from description (see radius guidelines below)
regionMust exist in tabs/regions.json
complexityTypeAlways "complex"
detailTypeAlways "detailed"
hiddenInfoFull paragraph with location secrets - always include
images.establishingShotThe location's establishing-shot image: { crop: { focus: { x, y }, zoom }, imageUrl }. crop (focus x/y and zoom) is required whenever the image object is present; imageUrl is optional. Focus x/y run 0..100 (50 = centered), zoom 100..300 (100 = no zoom); out-of-range values are clamped

Conditional Fields

FieldWhen to Include
knownSet to false to hide from map at game start. Omit or set true for visible by default
areasOptional - include when the location has distinct internal spaces
factionsOnly for major plot-relevant faction presence
npcLevelRange{ min, max } band for NPCs generated here whose level you don't set explicitly. Use it to keep a low-level village or a high-level dungeon on-theme regardless of party level

Never Include

Omit these fields (auto-set at runtime):

  • visited, lastVisitedTick, visitedAreas
  • visualTags, embeddingId

areas Format

For locations with distinct internal spaces, define interconnected areas.

Each area needs:

  • description: Freeform description of the area
  • paths: Array of connected area names
  • name (optional): Display label only. The area's key is its identity for paths, story starts, and NPC placement
  • images.establishingShot: The area's establishing-shot image, { crop: { focus: { x, y }, zoom }, imageUrl }. crop (focus x/y and zoom) is required whenever the image object is present; imageUrl is optional. When imageUrl is absent, the engine generates an image during play and saves it back; an existing image is never regenerated

Do not set visualTags on areas.

Gated Locations and Areas

Travel to a location or area is only impossible when its text explicitly establishes a lock: a boss guarding it, sealed access, a required access item, or authority clearance. Without such a statement, players get a skill check at most and can always attempt to go there. Even naming a destination that is not a defined location does not fail; the party simply travels toward it as an untracked destination. If a place should be gated, say so plainly in its basicInfo, hiddenInfo, or the area description.

Rules:

  • Use Title Case for area names (they are display strings, not programmatic identifiers)
  • All paths must be bidirectional (if A links to B, B must list A)
  • Areas can be 0 or more - no minimum required

Coordinate System

  • Check locationSettings.regionSize in tabs/settings.json to determine bounds
  • Valid range is -regionSize/2 to regionSize/2
  • The location's radius must not extend beyond bounds (x ± radius and y ± radius must stay within range)
  • No two locations can overlap (distance between centers must be >= sum of radii)
  • Check tabs/locations.json for existing locations and their coordinates to avoid overlap

Radius Guidelines

Radius is a size class — author exactly 1, 2, or 3:

RadiusSizeUse for
1smallRooms, single buildings, small structures
2mediumVillages, camps, modest settlements
3largeTowns, cities, sprawling sites

Values above 3 don't make the map marker bigger (everything above 2 renders as large) — they only inflate the location's travel catchment (arrivals within 2×radius km resolve to it) and its encounter-free zone.

Schema

interface Location {
  name: string
  basicInfo: string
  x: number
  y: number
  radius: number
  region: string
  complexityType: 'complex'
  detailType: 'detailed'
  hiddenInfo: string
  known?: boolean
  areas?: Record<string, Area>
  factions?: string[]
  npcLevelRange?: { min: number; max: number }
  images?: { establishingShot?: SceneImage }
}

interface Area {
  name?: string
  description: string
  paths: string[]
  images?: { establishingShot?: SceneImage }
  visualTags?: string[]
}

interface SceneImage {
  crop: { focus: { x: number; y: number }; zoom: number }
  imageUrl?: string
}

Reference

For detailed documentation, see locations-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.