A recipe is only as good as its instructions. These are the patterns we’ve seen work — and the traps that quietly break recipes in production.Documentation Index
Fetch the complete documentation index at: https://fromhazel.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Start with a clear description
The description field is what Hazel reads to decide whether to run your recipe. Two sentences, concrete and specific.Good
“Calculate and segment customer lifetime value from order data. Covers cohort analysis, distribution, and LTV:CAC payback.”
Too vague
“Helps with customer analysis.”
Be opinionated
Recipes that hedge produce hedged answers. State defaults and stick to them.- “Default: Net Lifetime Revenue. Upgrade to Gross Margin when COGS exists.”
- “Default horizon: 12 months. 24 for subscription businesses.”
- “Never blend subscription and one-time revenue — segment them.”
Front-load the recon step
Tell Hazel what to check before it starts analyzing. This prevents it from inventing assumptions or asking unnecessary questions.Specify inclusions and exclusions
Data gotchas are where analyses silently go wrong. Spell them out.Exclude: PR/gifted, influencer seeding, internal/employee, $0 comped, draft. Include: free replacements, sub trials, 100%-off acquisition offers (flag first-order impact). Exclude orders, not customers — a PR recipient who later pays keeps their paid orders.
Define the output
Tell Hazel what the final artifact should look like: chart type, columns, color scale, segments to surface.Artifact: cohort heatmap Rows: cohort month. Columns: month 0, 1, 2, … Cells: cumulative revenue per customer.
- Color by column (each period gets its own scale so cohorts are comparable at the same age)
- No download buttons inside the HTML
Keep it under 5,000 characters
The instructions field has a hard 5k character limit. Shorter usually produces better results anyway — Hazel has to re-read the whole thing on every invocation. Tricks for staying tight:- Tables > paragraphs for decision logic
- Bullet fragments > full sentences where clarity allows
- Cut throat-clearing (“This recipe will help you…”)
- Remove anything Hazel already knows about ecommerce in general
Use markdown structure
Hazel reads markdown, so use it:##headings for sections (Starting the analysis, Cohort analysis, Data gotchas, Artifact)- Tables for decision matrices
- Code fences for SQL patterns or exact question formats
- Bold for must-follow rules
Patterns that work
Across the cookbook, the recipes that perform best share a common shape:
Not every recipe needs every section — but use this as a checklist when you’re stuck.
Iterate in the open
Recipes are versioned, so there’s no cost to shipping an imperfect first draft. Install it, try it on a few real questions, edit, try again. The version number ticks up each save so you can see how your thinking has evolved.Next up: Browse the prompt library for ready-to-use questions, or head back to Recipes overview.
