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:
- Standard keys — Always present (adventure, player, room, turn)
- Extended keys — Contextual (object, target, npc)
- Skill namespaces — Skills register state under
world.skills.skill_name - Utility functions — API for interacting with the world