regions
Skill17 starsChanged 5 months agoMITView on GitHub
Schema and rules for creating regions
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
- npc-typesSkill
- orchestratorSkill
- premade-charactersSkill
- questsSkill
- realmsSkill
- reflectSkill
- 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
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
Check existing regions in tabs/regions.json before assigning coordinates
- Distinctive: line 63
Place related regions adjacent to each other
- Distinctive: line 64
Consider travel routes when positioning
≈ “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
Regions
Edit tabs/regions.json.
Required Fields
| Field | Requirement |
name | Must match object key exactly |
basicInfo | One paragraph describing geography, climate, and atmosphere |
x | Integer grid coordinate - must be adjacent to other regions in the same realm |
y | Integer grid coordinate - must be adjacent to other regions in the same realm |
realm | Which realm this region belongs to |
images.map | The region's map 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. When imageUrl is absent, the engine generates a map during play and saves it back; an existing map is never regenerated |
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 |
factions | Only when region has dominant faction presence affecting the entire area |
npcLevelRange | { min, max } band for NPCs generated anywhere in this region whose level you don't set explicitly. A location's own band overrides it. Use it to set a baseline difficulty for the whole region |
Never Include
| Field | Reason |
hiddenInfo | Unused field — region secrets belong in location or NPC entries instead |
basicInfo Format
One paragraph covering three aspects:
- Geography - Terrain, landmarks, natural features
- Climate/Atmosphere - Weather patterns, sensory details, mood
- Inhabitant hints - Who or what lives here, without full faction details
Format: "[Terrain description]. [Climate and atmospheric details]. [Brief mention of inhabitants or dangers]."
Coordinate System
Regions use integer grid coordinates. Within a realm, regions must be adjacent (differ by 1 in x or y, not diagonal).
(0,0) (1,0) (2,0)
(0,1) (1,1) (2,1)
(0,2) (1,2) (2,2)Rules:
- Regions in the same realm must form a connected grid (no isolated regions)
- Adjacent means sharing an edge, not diagonal
- Check existing regions in
tabs/regions.jsonbefore assigning coordinates
Design guidance:
- Place related regions adjacent to each other
- Consider travel routes when positioning
- North is -y, South is +y, East is +x, West is -x
- Regions at same coordinates in different realms can represent parallel locations
Region Scope
Regions are large geographic areas containing multiple locations. Think:
- A forest, not a single grove
- A mountain range, not a single peak
- A coastal stretch, not a single beach
- A district or quarter, not a single building
Each region typically contains various locations.
Schema
interface Region {
name: string
basicInfo: string
x: number
y: number
realm?: string
known?: boolean
hiddenInfo?: string
factions?: string[]
npcLevelRange?: { min: number; max: number }
images?: { map?: SceneImage }
}
interface SceneImage {
crop: { focus: { x: number; y: number }; zoom: number }
imageUrl?: string
}Reference
For detailed documentation, see regions-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.

