Skip to content

REAL-WORLD-SCHEMAS-09: Prompt-library card for AI agents

A prompt card pinning a model enum and a fenced code block holding the system prompt.

Builds on: REAL-WORLD-SCHEMAS-08: Postmortem: timeline table plus action items

The declarative YAML artifact, verbatim — no code required.

frontmatter:
fields:
model: { enum: [opus, sonnet, haiku] }
temperature: { type: number, min: 0, max: 2 }
body:
sections:
- section: System prompt
content:
code: { lang: md }
- section: Example output
  • code content leaf pinned to lang -> content/code/lang
  • number frontmatter with min/max -> frontmatter/type; an enum field