SPINE Demos Context Stack Builder

Context Stack Builder

Build and visualize SPINE context stacks interactively. Create reproducible AI prompts with structured layers.

The 6-Layer Context Stack

Context stacks provide reproducible, structured prompts. Each layer builds on the previous, from foundational principles to specific requests.

6
INPUT
User request (changes per request)
5
CONTEXT
Background info & references
4
CONSTRAINTS
Tone, format, do/don't rules
3
COMMAND
Task specification & success criteria
2
CHARACTER
AI persona & target audience
1
GLOBAL
Operator, brand, principles (the "constitution")
GLOBAL Layer
The foundational "constitution" for all interactions
scenario.yaml

                    

How Context Stacks Work

Bottom-up composition: Each layer builds on the one below it. GLOBAL sets the foundation, INPUT makes the specific request.

Reproducibility: The same stack produces consistent outputs. Perfect for standardized workflows.

Separation of concerns: Change the INPUT without touching the CHARACTER. Update CONSTRAINTS without redefining the COMMAND.