context

SKILL.md

Context

"The context IS the world as seen from inside the closure." — Dave Ungar, on lexical scope


What Is It?

The world object is passed to every compiled closure. It provides:

  1. Standard keys — Always present (adventure, player, room, turn)
  2. Extended keys — Contextual (object, target, npc)
  3. Skill namespaces — Skills register state under world.skills.skill_name
  4. Utility functions — API for interacting with the world

Why "world" not "ctx"?

Installs
5
First Seen
Mar 27, 2026