---
name: world-building-logic
description: "Engineers internally consistent fictional worlds using Brand's Pace Layers for social structure and Sanderson's Laws of Magic for system constraints. Use when building settings, designing magic or tech systems, or auditing a world for logical contradictions."
license: MIT
compatibility: "Claude Code and compatible agent products"
metadata:
  type: "domain"
  family: "narrative"
  rigor: "standard"
  keywords: "consistency, world-building, internal-logic, setting, magic-system, design"
  requires: ""
  enhances: "fiction-architect, character-vulnerability, prompt-optimizer"
  sources_pdf: "How Buildings Learn (Brand), Science of Storytelling (Storr), The Hero With a Thousand Faces (Campbell)"
  sources_web: "Sanderson magic system lectures"
title: world-building-logic
canonical_url: https://skilld.dev/gh/joellewis/skill-library/world-building-logic
last_updated: 2026-10-03T07:00:32.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install joellewis/skill-library/world-building-logic`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/world-building-logic`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/joellewis/skill-library/world-building-logic) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/world-building-logic`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/world-building-logic --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/world-building-logic --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

## Overview
World-building logic is the engineering of "internal consistency." It moves beyond mere imagination to create a setting that feels "lived-in" and logical. By applying Brand's Pace Layers to social and physical structures and Sanderson's Laws of Magic to the world's limitations, the builder creates a "controlled hallucination" that supports rather than distracts from the plot.

## Guiding Principles

### Principle 1: The Six Pace Layers (Source: Brand, How Buildings Learn)
A world is not a static monolith; it is a stack of layers moving at different speeds:
1. **Site:** The eternal (geography, climate).
2. **Structure:** The centuries (foundations, deep traditions).
3. **Skin:** The decades (exterior appearances, fashion).
4. **Services:** The years (infrastructure, technology, systems).
5. **Space Plan:** The months (interior layouts, social groups).
6. **Stuff:** The daily (ephemera, personal belongings).
Friction (Shearing) occurs where a fast layer (Technology) tries to override a slow layer (Geography).

### Principle 2: Limitations > Powers (Source: Sanderson, magic lectures)
Internal consistency is defined by what characters *cannot* do. A character with unlimited power has no story. Drama is found in the clever application of a world's specific limitations. The more powerful the tool (magic/tech), the more restrictive the rules must be.

### Principle 3: Environmental Storytelling (Source: Storr, Science of Storytelling)
The world is an extension of character. Use "Behavioural Residue" (clues left behind) and "Identity Claims" (broadcasted symbols) to show the history of a setting. Instead of telling the history of a city, show a "High Road" monument next to a "Low Road" slum.

### Principle 4: The Understanding Threshold (Source: Sanderson, magic lectures)
An author's ability to solve a conflict with a world-rule is proportional to how well the reader understands that rule. 
- **Hard Systems:** Rules are known; the solution is a logical payoff. 
- **Soft Systems:** Rules are mysterious; the solution must be character-driven, not rule-driven.

### Principle 5: The "Known" vs. The "Unknown" (Source: Campbell, Hero With a Thousand Faces)
A world must have an "Ordinary" logic and a "Special" logic. The transition between them (The Threshold) must be marked by a shift in rules, stakes, or environment.

## When to Use This Skill
- Designing a fantasy world, magic system, or sci-fi infrastructure.
- Establishing the "social rules" of a specific historical or corporate setting.
- Troubleshooting "Deus Ex Machina" plot points where world-rules feel arbitrary.
- Mapping the geography or history of a long-form narrative.

## When NOT to Use This Skill
- Writing minimalist "slice-of-life" fiction where the world is exactly as the reader's own.
- Ideation phases where "cool ideas" should flow without immediate logic-checking.

## Core Process

### Step 1: Establish the "Site" and "Structure" (Source: Brand)
Define the physical and social constants that cannot be easily changed. 
- What is the geography? 
- What are the deep, unchanging traditions? 
- This layer provides the "Gravity" of the world.

### Step 2: Define the Limitations (Source: Sanderson)
Before giving a character a power or a tool, list the three things it *cannot* do and the cost of using it. 
- Cost could be physical, social, or moral. 
- A rule with no cost is a plot-killer.

### Step 3: Map the Shearing Layers (Source: Brand)
Identify where the world is changing too fast for its foundations. 
- E.g., A digital economy trying to function in a medieval castle. 
- This friction is the primary source of world-based conflict.

### Step 4: Flesh out the "Stuff" (Source: Storr)
Add specific, sensory details. Use the "Rule of Three Qualities": a "heavy, tarnished, silver locket" is more real than a "pretty locket." These details must reveal character history (Environmental Storytelling).

### Step 5: Test the Logic Chain (Source: Sanderson)
Take a world-rule to its logical conclusion. If people can fly, how does that affect the architecture? If people can read minds, how does that affect the justice system? Consistency comes from these "second-order effects."

## Frameworks & Models

### Sanderson's Laws of Magic (Source: Sanderson, magic lectures)
1. **First Law:** Capability to solve conflict is proportional to user/reader understanding.
2. **Second Law:** Limitations > Powers.
3. **Third Law:** Expand on existing elements before adding new ones.

### The Six S's Hierarchy (Source: Brand, How Buildings Learn)
- **Slowest:** Site -> Structure -> Skin -> Services -> Space Plan -> **Fastest:** Stuff.
- *Rule:* Slow components dominate and constrain rapid ones.

## Cross-Skill Invocations
REQUIRED SUB-SKILL: **fiction-architect** — to integrate world-rules into the plot.
RECOMMENDED SUB-SKILL: **prompt-optimizer** — to translate world-building logic into consistent AI character personas or descriptions.

## Common Mistakes
1. **World-Building Disease:** Focusing on the "Site" and "Structure" (history/maps) while ignoring the "Stuff" and "Space Plan" (daily life/character experience).
2. **Arbitrary Rules:** Changing the world's logic halfway through to help the protagonist escape a corner. (Source: Sanderson)
3. **Floating Setting:** The world feels like a neutral backdrop rather than an active character that constraints the plot. (Source: Storr)

## Diagnostic Checklist
- [ ] Are the world's limitations more clearly defined than its powers?
- [ ] Does the setting reflect the history and psychology of the characters?
- [ ] Is there a clear logical consequence for every rule established?
- [ ] Does the world have both "High Road" (stable) and "Low Road" (adaptable) elements?
- [ ] Have I cross-checked the "second-order effects" of the technology/magic?

## Sources
- Brand, Stewart. *How Buildings Learn*. Ch. 2 (Shearing Layers), Ch. 3-4 (Low Road/High Road).
- Storr, Will. *The Science of Storytelling*. Ch. 1 (Creating a World).
- Campbell, Joseph. *The Hero With a Thousand Faces*. Ch. 1 (The Call to Adventure).
- Sanderson, Brandon. "Laws of Magic" (BYU Lectures).
