Skip to content

Patterns Overview

Patterns are the HOW of AI Mantras - reusable reasoning structures and thinking templates that provide consistent, traceable outputs. They work like mental frameworks that guide how AI approaches different types of problems.

AI Mantras includes 9 patterns organized into three layers based on their function:

Layer 1: Foundational

Core workflow patterns

Planning, orchestration, self-evaluation, and meta-rules that govern all work.

Layer 2: Thinking

Reasoning patterns

Chain-of-thought, rule-based reasoning, and creative guardrails for execution.

Layer 3: Evaluation

Assessment patterns

Criterion-based evaluation and threat modeling for quality and safety.

These patterns establish the core workflow and communication structure.

These patterns structure how personas reason through problems.

These patterns structure how evaluators assess outputs.

Patterns work together in powerful combinations:

WorkflowPattern Combination
Project kickoffPlanning Phase → Orchestration → Meta Rules
Domain executionChain of Thought + Rule-Based Reasoning
Creative workGuardrail Creative + Meta Rules
Quality reviewCriterion-Based Evaluation + Recursive Self-Eval
Security assessmentThreat Modeling + Rule-Based Reasoning
High-stakes workAny pattern + Recursive Self-Eval
  1. Embed patterns in prompts - Include the pattern template verbatim so personas follow the structure
  2. Combine patterns - Stack multiple patterns for complex tasks
  3. Follow recommended patterns - Each persona lists which patterns work best
  4. Reference during QA - Verify outputs follow the pattern structure