Home | Competencies | Projects | Templates
Reusable approaches for building reliable AI systems.
Patterns are proven solutions to recurring problems. They're not code to copy—they're mental models to apply. Each pattern captures hard-won insight about how to build AI systems that work in the real world.
Patterns help you:
- Recognize situations where established solutions exist
- Communicate design decisions with shared vocabulary
- Avoid reinventing solutions to solved problems
- Learn from collective experience
How to structure AI systems for reliability.
| Pattern | One-Line Summary | When to Use |
|---|---|---|
| Evaluation-First | Define success before building | Starting any AI feature |
| Defense in Depth | Multiple independent safety layers | Any user-facing AI system |
| Human-in-the-Loop | Strategic human oversight points | High-stakes decisions |
| Graceful Degradation | Fail partially, not completely | Production AI systems |
How to run AI systems reliably.
| Pattern | One-Line Summary | When to Use |
|---|---|---|
| Circuit Breaker | Automatic failure containment | Agents, pipelines, any loop |
| Blameless Post-Mortem | Learn from failures without blame | After any incident |
| Confidence-Weighted Decisions | Explicit uncertainty in estimates | Planning, prioritization |
How to evaluate AI outputs critically.
| Pattern | One-Line Summary | When to Use |
|---|---|---|
| Structured Skepticism | Systematic doubt for AI outputs | Reviewing any AI-generated content |
Each pattern follows a consistent structure:
## [Pattern Name]
### The Problem
What recurring challenge does this address?
### The Solution
Core insight in 2-3 sentences.
### How It Works
Step-by-step application.
### When to Use
Situations where this pattern applies.
### When NOT to Use
Situations where this pattern is wrong.
### Examples
Concrete illustrations.
### Anti-Patterns
Common mistakes when applying this.
### Related Patterns
What else to consider.
Patterns solve specific problems. Before applying a pattern, confirm you're facing the problem it addresses.
Wrong: "I'll use Defense in Depth because it's a best practice."
Right: "I have untrusted inputs and high-stakes outputs—Defense in Depth addresses this."
Patterns are principles, not prescriptions. Your context matters. A startup prototype and a financial services production system will implement the same pattern differently.
Patterns work together. A production AI agent might use:
- Evaluation-First to define success criteria
- Defense in Depth for safety
- Circuit Breaker for failure containment
- Human-in-the-Loop for high-stakes decisions
- Graceful Degradation for partial failures
Every pattern has trade-offs. Defense in Depth adds latency. Human-in-the-Loop adds operational cost. Circuit Breakers can cause false positives. Understand what you're trading.
| Patterns | Templates |
|---|---|
| Mental models | Fill-in documents |
| "How to think about X" | "Document X this way" |
| Adapt to context | Copy and customize |
| Principles | Artifacts |
Use patterns to guide design decisions. Use templates to document those decisions.
Good patterns come from real experience. If you've discovered an approach that works:
- Validate it — Has it worked in multiple contexts?
- Name it — Give it a memorable, descriptive name
- Structure it — Follow the pattern format
- Document trade-offs — What does it cost?
- Include examples — Show it in action
These patterns are extracted from the Core Projects:
| Pattern | Source Project |
|---|---|
| Evaluation-First | RAG Evaluation Pipeline |
| Defense in Depth | Agent with Guardrails |
| Human-in-the-Loop | Agent with Guardrails |
| Graceful Degradation | Agent with Guardrails |
| Circuit Breaker | Agent with Guardrails |
| Blameless Post-Mortem | Incident Response |
| Confidence-Weighted | Cost-Benefit Analysis |
| Structured Skepticism | AI Code Review |
Patterns support the five competencies. Each pattern maps to one or more competency areas.