Skip to content

⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.

fix: resolve aesthetic conflict and improve installation docs

Daniel Miessler43d106715051
diff --git a/.claude/skills/art/SKILL.md b/.claude/skills/art/SKILL.md
index 34bf25cd..2d54a315 100644
--- a/.claude/skills/art/SKILL.md
+++ b/.claude/skills/art/SKILL.md
@@ -1,191 +1,99 @@
---
name: art
-description: Complete visual content system for Unsupervised Learning. FOURTEEN workflows - (1) VISUALIZE (adaptive multi-modal orchestrator), (2) MERMAID (Excalidraw-style technical diagrams), (3) Editorial illustrations, (4) Technical diagrams, (5) Visual taxonomies, (6) Timelines, (7) Frameworks, (8) Comparisons, (9) Annotated screenshots, (10) Recipe cards, (11) Aphorisms, (12) Conceptual maps, (13) Stats, (14) Comics. USE WHEN user requests any visual content: 'visualize', 'mermaid', 'flowchart', 'sequence diagram', 'state diagram', 'infographic', 'art', 'illustration', 'diagram', 'taxonomy', 'timeline', 'framework', 'comparison', 'screenshot', 'recipe', 'aphorism', 'quote card', 'map', 'stat card', 'comic'. Note: Blogging skill auto-routes header images here.
----
-
-# Art - Complete Visual Content System
-
-Creates editorial-quality visuals for ALL content types using the UL color scheme.
-
-**Fourteen Workflows:**
-1. **Visualize** — Adaptive orchestrator combining optimal approaches
-2. **Mermaid** — Excalidraw-style technical diagrams (flowcharts, sequences, states) (NEW)
-3. **Editorial Illustrations** — Abstract metaphors for blog posts
-4. **Technical Diagrams** — Hand-drawn architecture/system diagrams
-5. **Visual Taxonomies** — Classification grids and periodic tables
-6. **Timelines** — Illustrated chronological progressions
-7. **Frameworks** — Mental models and 2x2 matrices
-8. **Comparisons** — Side-by-side X vs Y illustrations
-9. **Annotated Screenshots** — Real images with editorial overlays
-10. **Recipe Cards** — Step-by-step process visuals
-11. **Aphorisms** — Typography-dominant quote cards
-12. **Conceptual Maps** — Idea territory landscapes
-13. **Stats** — Illustrated data point cards
-14. **Comics** — Sequential panel narratives
-
----
-
-## 🔀 ROUTING: Which Workflow to Use?
-
-### **🎯 Visualize (ADAPTIVE ORCHESTRATOR)** → `workflows/visualize.md`
-**When to use:**
-- User says 'visualize this', 'create visualization', 'what's the best way to show this'
-- Content has multiple dimensions (data + narrative + concepts)
-- User says 'infographic', 'dashboard', 'data viz', 'mixed media'
-- You're not sure which single workflow fits (let Visualize analyze and choose)
-- Need to combine approaches (data + metaphor, charts + illustrations)
-- Want optimal visualization strategy, not predetermined format
-
-**Key:** Intelligent analysis → strategic combination → professional infographics/dashboards
+description: |
+ Complete visual content system for PAI.
+ Tron-meets-Excalidraw aesthetic - dark backgrounds, neon accents, hand-drawn sketch style.
-**🚨 CRITICAL: Visualize is the META-WORKFLOW. It analyzes content and orchestrates the optimal combination of the 13 specialized workflows below. Use when content doesn't fit neatly into one category or needs sophisticated multi-modal visualization.**
+# Skill Triggers
+triggers:
+ - USE WHEN user wants to create visual content, illustrations, or diagrams
+ - USE WHEN user mentions art, header images, visualizations, or any visual request
+ - USE WHEN user references mermaid, flowchart, technical diagram, or infographic
+# Workflow Routing
+workflows:
+ - USE WHEN user wants blog header or editorial illustration: workflows/workflow.md
+ - USE WHEN user wants visualization or is unsure which format: workflows/visualize.md
+ - USE WHEN user wants mermaid flowchart or sequence diagram: workflows/mermaid.md
+ - USE WHEN user wants technical or architecture diagram: workflows/technical-diagrams.md
+ - USE WHEN user wants taxonomy or classification grid: workflows/taxonomies.md
+ - USE WHEN user wants timeline or chronological progression: workflows/timelines.md
+ - USE WHEN user wants framework or 2x2 matrix: workflows/frameworks.md
+ - USE WHEN user wants comparison or X vs Y: workflows/comparisons.md
+ - USE WHEN user wants annotated screenshot: workflows/annotated-screenshots.md
+ - USE WHEN user wants recipe card or step-by-step: workflows/recipe-cards.md
+ - USE WHEN user wants aphorism or quote card: workflows/aphorisms.md
+ - USE WHEN user wants conceptual map or territory: workflows/maps.md
+ - USE WHEN user wants stat card or big number visual: workflows/stats.md
+ - USE WHEN user wants comic or sequential panels: workflows/comics.md
---
-### **Mermaid Diagrams** → `workflows/mermaid.md`
-**When to use:**
-- User says 'mermaid', 'flowchart', 'sequence diagram', 'state diagram'
-- User says 'draw a flowchart', 'show the sequence', 'state machine'
-- Content describes process flows, decision logic, state transitions
-- Need structured diagram types (not freeform architecture)
-- Want Excalidraw whiteboard sketch aesthetic
-- Deriving diagram structure from content via /cse
+# Art Skill
-**Key:** Mermaid structure (flowchart/sequence/state/class/ER) + Excalidraw sketchy hand-drawn aesthetic + UL colors
-
-**Diagram types supported:** Flowcharts, Sequence diagrams, State diagrams, Class diagrams, ER diagrams, Gantt charts, Git graphs
+Complete visual content system using the **PAI Visual Aesthetic**.
---
-### **Editorial Illustrations** → `workflows/workflow.md`
-**When to use:**
-- Blog header images (auto-routed from blogging skill)
-- User says 'art', 'UL illustration', 'editorial image', 'blog header'
-- Need abstract visual metaphor for narrative content
-- Physical objects representing concepts (scissors, hands, mountains)
-
-**Key:** Abstract metaphor, NO text labels, full illustration
+## Core Aesthetic
----
+**Tron-meets-Excalidraw** - Digital warmth combining:
+- Hand-drawn Excalidraw-style sketch lines (NOT clean vectors)
+- Dark slate backgrounds for modern contrast
+- Neon orange (warmth) + cyan (tech) accents
+- Subtle glows on key elements
-### **Technical Diagrams** → `workflows/technical-diagrams.md`
-**When to use:**
-- User says 'technical diagram', 'architecture diagram', 'system diagram'
-- User says 'draw diagram', 'process flow', 'show the architecture'
-- Explaining systems, components, relationships with labels
-- Need boxes, arrows, text labels showing structure
+**Full aesthetic documentation:** `${PAI_DIR}/skills/CORE/aesthetic.md`
-**Key:** Shows actual structure with text labels and connections
+**This is the SINGLE SOURCE OF TRUTH for all visual styling.**
---
-### **Visual Taxonomies** → `workflows/taxonomies.md`
-**When to use:**
-- User says 'taxonomy', 'classification', 'periodic table', 'categorize'
-- User says 'organize into categories', 'framework grid', 'capability matrix'
-- Need organized classification system with categories
-- "The Periodic Table of X" style visuals
+## Workflow Routing
-**Key:** Grid structure organizing concepts into categories
+| Content Type | Workflow |
+|--------------|----------|
+| Blog headers / Editorial | `workflows/workflow.md` |
+| Adaptive orchestrator | `workflows/visualize.md` |
+| Flowcharts / Sequences | `workflows/mermaid.md` |
+| Architecture diagrams | `workflows/technical-diagrams.md` |
+| Classification grids | `workflows/taxonomies.md` |
+| Chronological | `workflows/timelines.md` |
+| 2x2 matrices | `workflows/frameworks.md` |
+| X vs Y | `workflows/comparisons.md` |
+| Screenshot markup | `workflows/annotated-screenshots.md` |
+| Step-by-step | `workflows/recipe-cards.md` |
+| Quote cards | `workflows/aphorisms.md` |
+| Idea territories | `workflows/maps.md` |
+| Big numbers | `workflows/stats.md` |
+| Sequential panels | `workflows/comics.md` |
---
-### **Timelines** → `workflows/timelines.md`
-**When to use:**
-- User says 'timeline', 'evolution', 'history', 'progression over time'
-- User says 'show how X changed', 'before and after', 'trend analysis'
-- Need chronological progression with milestones
-- "The Evolution of X" style visuals
-
-**Key:** Temporal flow with illustrated milestones
-
----
-
-### **Frameworks** → `workflows/frameworks.md`
-**When to use:**
-- User says 'framework', '2x2 matrix', 'mental model', 'Venn diagram'
-- User says 'quadrant model', 'conceptual model', 'thinking framework'
-- Need structured mental model or decision framework
-- "The Daniel Miessler Framework for X" style visuals
-
-**Key:** Structured conceptual diagrams (matrices, Venns, pyramids)
-
----
-
-### **Comparisons** → `workflows/comparisons.md`
-**When to use:**
-- User says 'X vs Y', 'compare', 'before vs after', 'this vs that'
-- User says 'side by side', 'contrast', 'difference between'
-- Need split composition showing two contrasting concepts
-- "Junior vs Senior" or "Old Way vs New Way" visuals
-
-**Key:** Split screen showing contrasts
-
----
-
-### **Annotated Screenshots** → `workflows/annotated-screenshots.md`
-**When to use:**
-- User says 'annotate screenshot', 'mark up this image', 'add notes to screenshot'
-- User says 'point out', 'highlight this', 'show the problem in UI'
-- Need real screenshot/code with editorial commentary overlay
-- Product reviews, tutorials, UX critiques
-
-**Key:** Real image + hand-drawn annotations
-
----
-
-### **Recipe Cards** → `workflows/recipe-cards.md`
-**When to use:**
-- User says 'recipe', 'step-by-step', 'process card', 'how-to guide'
-- User says 'methodology', 'playbook', '5-step X', 'workflow'
-- Need numbered steps with icons for each action
-- Consulting deliverables, process documentation
-
-**Key:** Numbered steps with simple illustrated icons
-
----
-
-### **Aphorisms** → `workflows/aphorisms.md`
-**When to use:**
-- User says 'aphorism', 'quote card', 'visual quote', 'make this a card'
-- User says 'social media quote', 'typography card', 'statement'
-- Need Daniel's quote as shareable visual
-- Newsletter pull quotes, social media content
-
-**Key:** Massive typography with minimal accent illustration
-
----
+## Image Generation
-### **Conceptual Maps** → `workflows/maps.md`
-**When to use:**
-- User says 'map', 'landscape', 'territory', 'domain map', 'field overview'
-- User says 'map of X', 'landscape of Y', 'conceptual geography'
-- Need illustrated map showing idea territories and relationships
-- "The Landscape of AI Safety" style visuals
+**Default model:** nano-banana-pro (Gemini 3 Pro)
-**Key:** Cartographic metaphor for conceptual domains
-
----
-
-### **Stats** → `workflows/stats.md`
-**When to use:**
-- User says 'stat card', 'number', 'statistic', 'by the numbers', 'data point'
-- User says 'illustrate this stat', '78% of', 'visualize this number'
-- Need single striking statistic as visual
-- Newsletter data sections, social media facts
-
-**Key:** Dominant number with tiny illustration
+```bash
+bun run ${PAI_DIR}/skills/art/tools/generate-ulart-image.ts \
+ --model nano-banana-pro \
+ --prompt "[PROMPT]" \
+ --size 2K \
+ --aspect-ratio 1:1 \
+ --output /path/to/output.png
+```
----
+### Alternative Models
-### **Comics** → `workflows/comics.md`
-**When to use:**
-- User says 'comic', 'comic strip', 'panels', 'sequential', 'storyboard'
-- User says 'illustrate this scenario', 'show this story', '3-panel', '4-panel'
-- Need sequential panels telling a story or explaining concept
-- Narrative explanations, thought experiments
+| Model | When to Use |
+|-------|-------------|
+| **flux** | Maximum quality |
+| **gpt-image-1** | Different interpretation |
-**Key:** 3-4 panels with editorial sophistication (NOT cartoonish)
+**API keys in:** `${PAI_DIR}/.env`
+- `REPLICATE_API_TOKEN` - Flux and Nano Banana
+- `OPENAI_API_KEY` - GPT-image-1
+- `GOOGLE_API_KEY` - Nano Banana Pro
+- `REMOVEBG_API_KEY` - Background removal
---
@@ -194,12 +102,11 @@ Creates editorial-quality visuals for ALL content types using the UL color schem
```
What does user need?
-├─ Unsure which approach? Complex multi-dimensional content? → VISUALIZE (analyzes & orchestrates)
-├─ Infographic/dashboard/data viz with multiple elements? → VISUALIZE
-├─ Flowchart/sequence/state diagram with Excalidraw sketchy feel? → MERMAID
-├─ Abstract metaphor for article? → Editorial Illustration
+├─ Unsure which approach? → VISUALIZE (analyzes & orchestrates)
+├─ Flowchart/sequence/state diagram? → MERMAID
+├─ Abstract metaphor for article? → Editorial (workflow.md)
├─ System/architecture with labels? → Technical Diagram
-├─ Categories organized in grid? → Taxonomy
+├─ Categories in grid? → Taxonomy
├─ Change over time? → Timeline
├─ 2x2 matrix or mental model? → Framework
├─ Side-by-side contrast? → Comparison
@@ -209,244 +116,8 @@ What does user need?
├─ Idea territories as map? → Conceptual Map
├─ Single striking number? → Stat Card
└─ Multi-panel story? → Comic
-
-NOTE: Visualize is the ORCHESTRATOR - it can choose and combine any of the 13 specialized workflows
-NOTE: Mermaid = structured diagram types (flowchart, sequence, state, etc.) + Excalidraw whiteboard aesthetic
-```
-
----
-
-## 🚨 MANDATORY WORKFLOW — EDITORIAL ILLUSTRATIONS
-
-**This section describes the EDITORIAL ILLUSTRATION workflow. For TECHNICAL DIAGRAMS, see `workflows/technical-diagrams.md`**
-
-**CRITICAL: These steps are MANDATORY and must be executed IN ORDER. Do NOT skip steps. Do NOT make up your own process.**
-
-### Step 0: Read Required Files (MANDATORY)
-1. **Read workflow:** `workflows/workflow.md` (editorial) OR `workflows/technical-diagrams.md` (technical)
-2. **Read aesthetic:** `${PAI_DIR}/skills/CORE/aesthetic.md`
-
-### Step 1: Run 24-Item Story Explanation on Content (MANDATORY)
-**You MUST use the story-explanation skill with 24-item length. Do NOT skip this step. Do NOT derive concepts yourself without the 24-item story explanation.**
-
```
-Use story-explanation skill with 24-item length for [content or URL]
-```
-
-The 24-item output gives you the FULL narrative arc: setup, tension, transformation, resolution.
-
-### Step 2: Derive Visual Metaphor from FULL NARRATIVE ARC (MANDATORY)
-Only AFTER running 24-item story explanation, derive ONE visual metaphor that captures the JOURNEY/TRANSFORMATION/PROCESS using ALL 24 items (not just the final item).
-
-### Step 3-6: Continue with workflow.md
-Follow the remaining steps in `workflows/workflow.md` exactly.
-
----
-
-### Aesthetic Source (REQUIRED READING)
-
-**Always read first:** `${PAI_DIR}/skills/CORE/aesthetic.md`
-
-This defines the Anthropic editorial style:
-- Flat solid colors (NO gradients)
-- Hand-drawn black linework (imperfect, gestural)
-- Muted earth-tone backgrounds (cream, terracotta, sage, peach)
-- Abstract conceptual metaphors
-- 30-40% negative space
-
----
-
-## Color System
-
-### Background
-- **WHITE #FFFFFF** for generation → **remove.bg** creates TRANSPARENCY
-- Final images have transparent background (blog CSS applies sepia)
-
-### Primary: Black Linework
-- **Pure Black #000000** — DOMINANT, carries the entire composition
-
-### Accent Colors (MUST BE VISIBLE - not primary fills)
-| Color | Hex | Usage |
-|-------|-----|-------|
-| Deep Purple | #4A148C | Brand accent - REQUIRED and MUST BE NOTICEABLE |
-| Deep Teal | #00796B | Secondary accent option |
-| Charcoal | #2D2D2D | Kai signature, subtle details |
-
-**CRITICAL COLOR REQUIREMENT:**
-- Purple (#4A148C) MUST be visible and noticeable in every image
-- "Accent" means visible color, NOT microscopic hints
-- Color should be immediately apparent when viewing the image
-- If you can't see the purple/teal without zooming in, it's TOO SUBTLE
-- Balance: Not dominant, but definitely present and visible
-
-### Color Hierarchy
-1. **BLACK LINEWORK is PRIMARY** — dominates composition
-2. **Purple as ACCENT** — hints/details, NOT solid fills, but MUST BE VISIBLE
-3. **Secondary accent** — sparingly, but noticeable
-4. **No gradients, no shadows**
-5. **COLOR VALIDATION** — Must pass visual inspection for color presence
-
----
-
-## Core Visual Rules
-
-1. **Background:** Single flat muted earth tone
-2. **Style:** Hand-drawn, gestural black linework — NOT smooth vectors
-3. **Composition:** Full-bleed edge-to-edge, elements fill 100% of frame (NO whitespace or margins)
-4. **Aspect Ratio:** Square 1:1 format (NOT 16:9 rectangle)
-5. **Elements:** 2-3 abstract elements maximum
-6. **Lines:** Variable weight, imperfect, wobbly, brush-like texture
-7. **NO TEXT** (except Kai signature)
-8. **KAI SIGNATURE:** Small subtle "Kai" in charcoal (#2D2D2D) bottom right
-9. **COLOR PRESENCE:** Purple (#4A148C) and/or Teal (#00796B) MUST be visible and noticeable as accents
-
----
-
-## Style Direction
-
-### Think
-- Saul Steinberg (New Yorker)
-- Matisse cutouts
-- Christoph Niemann (Abstract Sunday)
-- Risograph editorial aesthetic
-
-### AVOID
-- Gradients or shading
-- Glossy/shiny surfaces
-- 3D rendering
-- Photorealistic elements
-- Smooth perfect vector lines
-- "AI slop" (too perfect, too shiny)
-- Cartoonish or clip-art
-
----
-
-## Environment Setup
-
-The CLI automatically loads API keys from `${PAI_DIR}/.env`. Required keys:
-- `REPLICATE_API_TOKEN` - For Flux and Nano Banana models
-- `OPENAI_API_KEY` - For GPT-image-1 model
-- `GOOGLE_API_KEY` - For Nano Banana Pro (Gemini 3 Pro)
-- `REMOVEBG_API_KEY` - For background removal
-
----
-
-## Default Model
-
-**nano-banana-pro** (Gemini 3 Pro)
-
-```bash
-bun run ${PAI_DIR}/skills/art/tools/generate-ulart-image.ts \
- --model nano-banana-pro \
- --prompt "[PROMPT]" \
- --size 2K \
- --aspect-ratio 1:1 \
- --output /path/to/output.png
-```
-
-### Alternative Models
-
-| Model | When to Use | Command |
-|-------|-------------|---------|
-| **flux** | Maximum quality | `--model flux --size 1:1` |
-| **gpt-image-1** | Different interpretation | `--model gpt-image-1 --size 1536x1024` |
-
----
-
-## File Structure
-
-```
-art/
-├── SKILL.md # This file (routing + overview)
-├── workflows/
-│ ├── visualize.md # ADAPTIVE orchestrator
-│ ├── mermaid.md # Mermaid + Excalidraw diagrams (NEW)
-│ ├── workflow.md # Editorial illustration workflow
-│ ├── technical-diagrams.md # Technical diagram workflow
-│ ├── taxonomies.md # Visual taxonomies workflow
-│ ├── timelines.md # Timeline workflow
-│ ├── frameworks.md # Mental models workflow
-│ ├── comparisons.md # Side-by-side comparisons workflow
-│ ├── annotated-screenshots.md # Screenshot annotation workflow
-│ ├── recipe-cards.md # Process recipe workflow
-│ ├── aphorisms.md # Quote cards workflow
-│ ├── maps.md # Conceptual maps workflow
-│ ├── stats.md # Illustrated statistics workflow
-│ └── comics.md # Sequential panels workflow
-└── tools/
- └── generate-ulart-image.ts # CLI tool for generation
-```
-
----
-
-## The Concept Generation Process
-
-**24-ITEM STORY → NARRATIVE ARC → VISUAL JOURNEY → FLAT EDITORIAL PROMPT → GENERATE**
-
-### The 6-Step Workflow
-
-1. **Run 24-item story explanation** on the content to extract FULL narrative arc
-2. **Derive visual metaphor** from ALL 24 items — ONE abstract concept showing TRANSFORMATION/JOURNEY, 2-3 elements
-3. **Apply aesthetic** — Flat colors, black linework, white background for transparency
-4. **Construct prompt** — Specify hand-drawn, gestural, no gradients, Saul Steinberg style, process/movement
-5. **Execute generation** via CLI with --remove-bg flag
-6. **Validate** — Flat? Hand-drawn quality? No gradients? Shows journey/process?
-
-**For complete workflow instructions, read:** `workflows/workflow.md`
-
----
-
-## Prompt Template
-
-```
-Editorial conceptual illustration in Saul Steinberg / New Yorker style.
-
-BACKGROUND: Solid flat [CREAM #F5E6D3 | TERRACOTTA #C17A5B | SAGE #A8A89A | PEACH #E8C4A8] — NO gradients.
-
-STYLE: Hand-drawn black ink linework. Variable stroke weight. Imperfect wobbly lines.
-Gestural brush quality. NOT smooth vectors. NOT photorealistic. Risograph aesthetic.
-
-COMPOSITION (2-3 elements):
-[Describe abstract metaphor with 2-3 simple elements]
-
-NEGATIVE SPACE: 30-40% of image is empty background.
-Objects occupy 40-60% of frame.
-
-CRITICAL:
-- NO gradients anywhere
-- NO shadows
-- NO 3D effects
-- NO glossy/shiny surfaces
-- Lines should be imperfect, hand-drawn quality
-
-Sign "Kai" small in charcoal (#2D2D2D) bottom right corner.
-NO other text.
-```
-
----
-
-## CONCEPT EXAMPLES
-
-These demonstrate the conceptual translation pattern:
-
-### Example: "Leave the Em Dash Alone"
-**Narrative Arc (from 24 items):** AI copies human creativity → people react by abandoning what they love → Daniel refuses to be evicted from his own preferences → standing ground on authentic choices
-**Visual Concept:** Robot hand and human hand pulling opposite ends of an em dash (tug-of-war) — shows CONFLICT IN PROGRESS
-**Why:** Captures the ongoing struggle/ownership battle, not just endpoint
-
-### Example: "Humans Need Entropy"
-**Narrative Arc (from 24 items):** Childhood wonder → adult collapse into repetition → discovery that entropy prevents stagnation → actively seeking novelty → renewal cycle
-**Visual Concept:** Human head split vertically — left half: dense packed identical circles (collapse); right half: circles scattering outward (entropy dispersing) — shows STATE TRANSFORMATION
-**Why:** Captures the before→after transformation journey, duality of states
-
-### Pattern
-| Article Theme | Visual Strategy |
-|---------------|-----------------|
-| Conflict/Ownership | Two forces pulling one object |
-| Loss/Absence | Empty spaces that should be full |
-| Duality/States | Split composition showing both |
-| Collaboration | Hands working together |
---
-**The best concepts are immediately readable without explanation, yet reward deeper looking.**
+**For complete visual styling rules, ALWAYS read:** `${PAI_DIR}/skills/CORE/aesthetic.md`
diff --git a/README.md b/README.md
index ffe7820f..09eede6f 100644
--- a/README.md
+++ b/README.md
@@ -112,10 +112,16 @@ cp .claude/.env.example .claude/.env
### 3. Copy to Your System
```bash
-# Copy .claude directory to your home directory
+# Backup existing Claude config (if any)
+[ -d ~/.claude ] && mv ~/.claude ~/.claude.backup.$(date +%Y%m%d_%H%M%S)
+
+# Copy PAI's .claude directory to your home
cp -r .claude ~/.claude
+```
-# Or symlink if you prefer
+**Alternative: Symlink** (keeps PAI updatable via git pull)
+```bash
+[ -d ~/.claude ] && mv ~/.claude ~/.claude.backup.$(date +%Y%m%d_%H%M%S)
ln -s $(pwd)/.claude ~/.claude
```
@@ -123,7 +129,7 @@ ln -s $(pwd)/.claude ~/.claude
```bash
# PAI loads automatically via the CORE skill
-claude-code
+claude
```
**That's it!** The CORE skill loads at session start and provides all PAI functionality.