Overview

Prompt composition turns a set of layers into the final prompt sent to the provider. It is deterministic for a given skill version and input set, and it is fully inspectable via preview and run traces.

What you get

  • Clear separation between base context, task instructions, policies, and output formatting.
  • Versioned changes you can test before publishing.
  • A composition trace that explains exactly how the final prompt was built.

Core primitives

  • Layers (promptLayerSchema[]) with type, mode, and content.
  • Preview to render and validate without running a full execution.
  • Composition trace to inspect how layers were applied.

See also

Was this page helpful?