context-blocks
Installation
SKILL.md
Context Blocks API
Context blocks are named sections of the system prompt. They come from multiple sources (framework, strategy, skills, developer) and are managed through a single unified interface.
Core Concept
Every context block entry is a dict mapping {key: value}:
from nooa import Context
context = {
"role": "You are a security expert", # str: literal text, volatile suffix
"shell": Context(expr="doc(self.shell)", prefix=True), # evaluated each turn, cacheable prefix
"config": Context("stable config text", prefix=True), # literal, cacheable prefix
"status": Context(expr="f'{self.done}/{self.total}'"), # evaluated each turn, volatile suffix
"self": None, # suppress block from prompt
}