Examples
Bundled example books, each runnable locally and live in the browser.
Two example books ship in the repo. Each is a real, self-contained prompts folder you can cd into and run the CLI against, and each has a live, interactive page on this site.
Sports broadcast
A synthetic broadcaster persona across 10 compositions and six context axes. Demonstrates the two cascades that incumbents tend to need:
- Multi-model output cascade. The
post-game-analysiscomposition swaps its output-format fragment based onmodel: prose by default, JSON forgpt, XML tagged forclaude. One logical prompt, three output contracts. - Forbid-wins compliance cascade. The
social-postcomposition adds a sponsor block whentier=vipand forbids it whencompliance=kid-safe.forbidis the final filter, sovip+kid-safestill produces a clean post with no sponsor content.
cd examples/sports-broadcast
promptbook ls
promptbook resolve post-game-analysis \
--ctx sport=football --ctx model=claude --ctx tier=vip --explainSupport assistant
The minimal quickstart book. Two compositions (reply, escalation) share a small fragment pool. Same multi-model output cascade as the sports book, scaled down to the smallest interesting example.
cd examples/support-assistant
promptbook ls
promptbook resolve reply --ctx model=gpt --ctx tone=warm --ctx locale=EnglishRun any book in the browser, locally
You don't need a deployed demo to interact with a prompts folder. Point the local viewer at the folder and it spins up the same UI:
promptbook view --dir examples/sports-broadcast
# or, from inside a single-book folder:
cd examples/sports-broadcast
promptbook view