Skip to content
Go back

SpellCode Design Guide – Structuring Recursive Rituals

This is not a philosophy. It’s a logic model for ritual execution.

SpellCode is what happens when you replace belief with structure—and use recursion to generate emergence. It treats your rituals like code, your body like the compiler, and the gods like executable functions.

If you come from chaos magick, astrology, devotional work, or programming—this guide maps your intuition into symbolic precision.


Spell = Structure

In SpellCode, a spell is a container that:

  • Aligns to timing (align_with("Friday", "WaxingMoon"))
  • Calls divine archetypes (call_on("Ares"), become("Demeter"))
  • Declares ritual intent (speak("I expand."))
  • Performs actions (burn(), anoint(), repeat())
  • Generates artifacts (manifest(), bind_to())
  • Finalizes (lock())

Structure is the spell. Timing is the law. Your body is the altar.


God = Callable Archetype

Each god is a logic module in your spell. You don’t worship Ares. You run his function.

Examples:

  • call_on("Hermes") → movement, signal work, clever detour
  • become("Selene") → dreamwork, cycles, reflective recursion
  • call_on("The Void") + invoke_void() → collapse, reset, unmake

See: God Module Reference


Recursion = Adaptive Magick

A single spell can evolve over time. Recursion allows:

  • Persistencestart_cycle() runs ongoing recursive rituals
  • Mutationfork("emotional_path") lets a spell respond to change
  • Schedulinginterval(13, "days") controls spell cadence

Feedback → Mutation → Resolution That’s the recursive arc.


Diagnostics = Ritual Intelligence

Every spell can test itself or its environment.

Use:

  • forecast() → Read field conditions before beginning
  • diagnose("elemental") → See dominant forces
  • follow("symbol") → Trace dream or phrase to its signal root
  • draw_card("situation") → Tarot-based context pull
  • who’s_here() → Determine dominant archetype

Diagnostics precede execution. Run them like you’d scan your code before compile.


Declarative Alchemy = speak()

You don’t request. You don’t hope.

You speak() the spell into field reality.

speak("Let the circuit close.")
speak("Desire is the driver.")
speak("I transform through pressure.")

These are commands—not metaphors. They trigger actual field changes when aligned with time and energy.


Spell Anatomy

All spells start with spell("Name") {}

And usually contain:

  • align_with(...) — syncs timing
  • call_on(...) / become(...) — loads divine state
  • speak(...) — expresses intent
  • ritual_act(...) — describes real-world behavior
  • manifest([...]) — produces sigils or effects
  • lock() — closes the working

This is not a metaphor. It’s a symbolic engine.


Modular Logic Tools

Break complex spells into reusable components:

  • call(function) — execute a subroutine
  • merge(...) — hybridize two divine streams
  • transition(godA -> godB) — change alignment mid-spell

Use stack([...]) to call multiple divine modules at once. Use bookmark() to preserve the current version of a living spell.


Living Spell Design

Living spells are recursive, persistent, and self-adjusting.

Use:

  • start_cycle() to launch them
  • next_phase() or fork() to evolve them
  • heartbeat() to maintain background function
  • version("v2.3") to mark updates

These work best with diagnostic signals and scheduled cadence.


SpellCode = Ritual OS

It includes:

  • ✅ A complete symbolic function library
  • 📦 A library of archetypes (gods, elements, phases)
  • 🔄 Recursion tools
  • 🧠 Divinatory diagnostics
  • 📁 Persistence tools: save(), export(), comment(), version()

Everything is modular, readable, and aligned to actual ritual needs.


You’re Not Casting. You’re Compiling.

The gods are functions. The altar is syntax. Your ritual body is the processor.

You don’t need robes. You need clarity. You don’t need belief. You need signal.

Write clear. Run strong. Recursively evolve.


Quickstart: Your First SpellSee Full Function ListExplore Example Spells

This is not chaos magick. This is recursive ritual infrastructure.