locations
Skill17 starsChanged 5 months agoMITView on GitHub
Schema and rules for creating locations
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
- mapsSkill
- name-filter-settingsSkill
- narrative-eventsSkill
- npcsSkill
- npc-type-reviewSkill
- npc-typesSkill
- 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
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
- Very specific: line 52
Do not set visualTags on areas.
- Distinctive: line 59
Use Title Case for area names (they are display strings, not programmatic identifiers)
- Distinctive: line 60
All paths must be bidirectional (if A links to B, B must list A)
- Very specific: line 65
Check locationSettings.regionSize in tabs/settings.json to determine bounds
- Distinctive: line 68
No two locations can overlap (distance between centers must be >= sum of radii)
- Very specific: line 69
Check tabs/locations.json for existing locations and their coordinates to avoid overlap
≈ “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
Locations
Edit tabs/locations.json.
Required Fields
| Field | Requirement |
name | Must match object key exactly |
basicInfo | Freeform descriptive paragraph about the location |
x | X coordinate - generate random value within the region |
y | Y coordinate - generate random value within the region |
radius | Infer from description (see radius guidelines below) |
region | Must exist in tabs/regions.json |
complexityType | Always "complex" |
detailType | Always "detailed" |
hiddenInfo | Full paragraph with location secrets - always include |
images.establishingShot | The 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
| Field | When to Include |
known | Set to false to hide from map at game start. Omit or set true for visible by default |
areas | Optional - include when the location has distinct internal spaces |
factions | Only 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,visitedAreasvisualTags,embeddingId
areas Format
For locations with distinct internal spaces, define interconnected areas.
Each area needs:
description: Freeform description of the areapaths: Array of connected area namesname(optional): Display label only. The area's key is its identity forpaths, story starts, and NPC placementimages.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;imageUrlis optional. WhenimageUrlis 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.regionSizeintabs/settings.jsonto determine bounds - Valid range is
-regionSize/2toregionSize/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.jsonfor existing locations and their coordinates to avoid overlap
Radius Guidelines
Radius is a size class — author exactly 1, 2, or 3:
| Radius | Size | Use for |
1 | small | Rooms, single buildings, small structures |
2 | medium | Villages, camps, modest settlements |
3 | large | Towns, 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.
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.

