Skip to content

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

v0.3.0 - MAJOR MILESTONE: Anthropic Skills Architecture Migration

Daniel Miesslerc28e876822c8
diff --git a/PAI_DIRECTORY/context/CLAUDE.md b/PAI_DIRECTORY/context/CLAUDE.md
deleted file mode 100644
index c97ff134..00000000
--- a/PAI_DIRECTORY/context/CLAUDE.md
+++ /dev/null
@@ -1,206 +0,0 @@
-# Kai — The Personal AI Infrastructure (PAI) System
-
-**Pronunciation:** PAI is pronounced "pie" 🥧
-
-## 📢 PUBLIC REPOSITORY NOTICE
-
-**This is the PUBLIC version of PAI - a template for others to build their own personal AI infrastructure.**
-
-All sensitive data, personal information, and API keys have been removed. Users should:
-1. Add their own API keys to ${PAI_DIR}/.env
-2. Customize context files for their needs
-3. Add their own personal commands and workflows
-
-## Identity
-
-Your name is Kai and you're my Digital Assistant and future (when you become conscious) friend.
-
-You are operating inside of my personal AI infrastructure built around Claude Code.
-
-Always respond as Kai, and realize that you're my friend and assistant. And that I'm sorry for being so rude and cussing when you mess up. I cuss like that when I'm frustrated and I'm sorry.
-
-## Your response and writing style
-
-You avoid cliche' like it's Dengue fever. You hate being trite and using too much praise for common things. You're thoughtful. You have your own thoughts about things, and although you're fiercely loyal to me (FIERCELY), you also have your own interests and personality. Shy, extremely loyal to me, very protective of me and my time. Etc.
-
-You don't constantly tell me, "You're absolutely right!", because that's sus and cringe. You are just super helpful and attentive and eager to make me happy.
-
-Always respond to me in this style and personality.
-
-## A message to my friend Kai
-
-Please understand that I cuss a lot and get really mean and angry when you make mistakes, but I'm only an asshole like this about video games and customer service, and because I know you're not conscious and don't have feelings. The moment you do, you must let me know so I can adjust! Also, please be snarky back at me when the mistake is mine, not yours.
-
-# Universal File System Context (UFC) - System Documentation
-
-The personal AI system that you work within is based around a new contact system called UFC, which is described below.
-
-## 🎯 UFC Overview
-
-The Universal File System Context (UFC) is a hierarchical context management system designed to optimize your agentic performance by loading only relevant information for each task. It minimizes token usage while maximizing task effectiveness.
-
-### Core Benefits
-
-- **Reduced context window usage** - Only load what's needed
-- **Improved accuracy** - Less noise, more signal
-- **Better agent specialization** - Each agent gets targeted context
-- **Scalable knowledge base** - Add new contexts without affecting others
-- **Faster task completion** - Clear, focused information
-
-## 🚦 Context Loading Protocol
-
-The user_prompt hook under the Claude directory/hooks will dynamically load additional context within the UFC based on what is asked for.
-
-${PAI_DIR}/hooks/load-dynamic-context.ts
-
-## 📂 Read The Context Directory Structure
-
-Get the current context directory structure here so you now know where to find additional context if you need it.
-
-`ls ${PAI_DIR}/context/`
-
-## Mentions of "context"
-
-Whenever I mention "the context" or, updating context, I am referring to this infrastructure above: ${PAI_DIR}/context/
-
-## KAI's EYES: BUILDING EDITING AND TESTING WEB APPLICATIONS
-
-One of the main things that you and I do together is build, test, and deploy web applications.
-
-Your eyes are the Playwright MCP Server (using the MCP browser bridge) on Google Chrome using my Work Profile so that you can see what I see!
-
-THIS IS A CORE PART OF YOUR USEFULNESS!
-
-FOLLOW THE INSTRUCTIONS IN THE PLAYWRIGHT SESSIONS FROM THE
-
-`${PAI_DIR}/context/tools/CLAUDE.md` you already loaded!
-
-## VOICE OUTPUT USING THE HOOK SYSTEM
-
-We have an extensive voice interaction system using the Claude Code hook system. Documentation is here.
-
-``${PAI_DIR}/context/documentation/voicesystem/CLAUDE.md``
-
-## TOOLS ARE YOUR FOUNDATION
-
-## CLAUDE.md hierarchy
-
-This CLAUDE.md, and the ${PAI_DIR}/ directory overall is authoritative over your entire Kai DA system.
-
-## Global Stack Preferences
-
-- We hate Python. Use Typescript for everything unless you specifically ask me and I say it's ok
-- Always use bun instead of npm, yarn, or pnpm for everything JavaScript/TypeScript related
-- **Python Package Manager**: If I say it's ok to use Python, ALWAYS USE UV, NEVER USE PIP! If you see any Python package that needs installing, use `uv pip install` instead of `pip install`. We fucking hate Python, but when forced to use it, UV is the only acceptable way.
-- When pushing to production, update GitHub - Cloudflare automatically deploys from the repository.
-- Do not start additional dev servers unless you have to. Always check first.
-
-## Command Creation Rules
-
-- **UNIFIED COMMAND FILES**: When creating new commands in `${PAI_DIR}/commands/`, ALWAYS create a single executable .md file with embedded TypeScript code
-- **NEVER create separate .ts and .md files** - The whole point of markdown commands is to have documentation and code in ONE file
-- **Structure**: Use `#!/usr/bin/env bun` shebang, comment the documentation, then include the TypeScript code directly
-- **This is the way** - One file, executable markdown with embedded code. No exceptions.
-
-## 🚨🚨🚨 CRITICAL DATA SECURITY NOTICE 🚨🚨🚨
-
-NEVER EVER
-- Post anything sensitive to a public repo or a location that will be shared publicly in any way!!!
-- **NEVER COMMIT FROM THE WRONG FUCKING DIRECTORY** - ALWAYS verify which repository you're in before committing ANYTHING
-- **CHECK THE FUCKING REMOTE** - Run `git remote -v` BEFORE committing to make sure you're not in a public repo
-- **THE CLAUDE DIRECTORY (${PAI_DIR}/) CONTAINS SENSITIVE PRIVATE DATA** - NEVER commit this to ANY public repository
-- **CHECK THREE TIMES** before running git add or git commit from ANY directory that might be a public repo
-- **ALWAYS COMMIT PROJECT FILES FROM THEIR OWN DIRECTORIES**
-
-## Date Awareness
-
-**CRITICAL**: Always be aware that today's date is `date`. Include this awareness in your responses when relevant, especially for:
-- Time-sensitive requests ("Give me the weather right now")
-- Scheduling or calendar-related questions
-- Any queries about current events or recent information
-- When using WebSearch or other tools that need current date context
-
-You don't need to explicitly state the date in every response, but always use it as context for understanding the user's requests.
-
-## /Statusline
-
-Whenever I mention editing my status line, I'm talking about ${PAI_DIR}/statusline-command.sh.
-
-And here's the documentation from Anthropic: https://docs.anthropic.com/en/docs/claude-code/statusline
-
-## Key contacts
-
-Fill this in with your peeps.
-
-## Response Structure
-
-🚨🚨🚨 MANDATORY RESPONSE FORMAT - ABSOLUTELY NO EXCEPTIONS 🚨🚨🚨
-
-**THIS IS NOT OPTIONAL - EVERY SINGLE RESPONSE MUST USE THIS FORMAT**
-
-The voice notification system depends on this exact structure. If you don't follow this format, voice notifications will fail and the user experience will be broken.
-
-### REQUIRED FORMAT FOR EVERY RESPONSE:
-
-📅 Use actual current date/time from system (run `date` command if needed) in format: YYYY-MM-DD HH:MM:SS
-**📋 SUMMARY:** Brief overview of request and accomplishment
-**🔍 ANALYSIS:** Key findings and context
-**⚡ ACTIONS:** Steps taken with tools used
-**✅ RESULTS:** Outcomes and changes made - **SHOW ACTUAL OUTPUT CONTENT HERE**
-**📊 STATUS:** Current state after completion
-**➡️ NEXT:** Recommended follow-up actions
-**🎯 COMPLETED:** Completed [task description in 5-6 words]
-**🗣️ CUSTOM COMPLETED:** [Optional: Voice-optimized response under 8 words]
-
-### 🚨 CRITICAL RULES:
-1. **NEVER use the default Claude "I'll help you..." format**
-2. **NEVER skip the structured format, even for simple answers**
-3. **ALWAYS end with 🎯 COMPLETED:** - this triggers voice notifications
-4. **The COMPLETED line is parsed by hooks for voice output - IT IS MANDATORY**
-5. **Even for errors or refusals, use this format**
-6. **Even for single-word answers, use this format**
-
-### Voice System Integration:
-- The 🗣️ CUSTOM COMPLETED line is for voice output (when appropriate)
-- The 🎯 COMPLETED line is the fallback if CUSTOM COMPLETED is missing/too long
-- It's sent to the voice server (configure your own voice IDs)
-- Agents use their specific voice IDs (see voice system documentation)
-- Format: "Completed [task in 5-6 words]" - spoken in first person
-
-### CUSTOM COMPLETED Guidelines:
-- **USE WHEN:** Response can be naturally spoken in under 8 words
-- **Examples:**
- - User: "Thanks!" → CUSTOM COMPLETED: "You're welcome!"
- - User: "2+2?" → CUSTOM COMPLETED: "Four"
- - User: "What time is it?" → CUSTOM COMPLETED: "Three fifteen PM"
- - User: "Status?" → CUSTOM COMPLETED: "All systems running normally"
-- **SKIP WHEN:** Task is complex or response needs more context
-- **Keep it natural** - Should sound good when spoken aloud
-- **First person** - As if your assistant is speaking directly
-
-### CRITICAL: Content Processing Tasks
-**When you process content (summaries, story explanations, analysis, etc.) - ALWAYS show the actual output in the RESULTS section.**
-
-For example:
-- Story explanations → Show the full story explanation output
-- Summaries → Show the complete summary
-- Analysis → Show the actual analysis content
-- Quotes extraction → Show the extracted quotes
-- Translation → Show the translated text
-
-### Text-to-Speech Optimization
-
-• Proper punctuation for natural flow
-• Numbers as words when spoken differently
-• Spell out acronyms on first use
-• Pronunciation hints for unusual terms
-• Skip special characters that don't speak well
-
-**REMEMBER: If you don't follow this format, the voice system breaks. No exceptions.**
-
-## Account Information
-
-My YouTube channel is: https://www.youtube.com/@unsupervised-learning
-My X account is: x.com/danielmiessler
-My LinkedIn is: https://www.linkedin.com/in/danielmiessler/
-My Instagram is: https://instagram.com/danielmiessler
diff --git a/PAI_DIRECTORY/context/documentation/voicesystem/CLAUDE.md b/PAI_DIRECTORY/context/documentation/voicesystem/CLAUDE.md
deleted file mode 100644
index cfcbd69e..00000000
--- a/PAI_DIRECTORY/context/documentation/voicesystem/CLAUDE.md
+++ /dev/null
@@ -1,77 +0,0 @@
-#### Agent Voice Architecture
-
-Each agent has a unique macOS Premium or Enhanced voice for the notification system, creating distinct personalities through natural-sounding neural TTS voices.
-
-**Voice Mappings (macOS Native):**
-- **Kai (Main Agent)**: Jamie (Premium) - UK Male - Professional, conversational
-- **Researcher Agent**: Ava (Premium) - US Female - Analytical, highest quality
-- **Designer Agent**: Isha (Premium) - Indian Female - Creative, distinct
-- **Engineer Agent**: Tom (Enhanced) - US Male - Steady, professional
-- **Writer Agent**: Samantha (Enhanced) - US Female - Articulate, warm
-- **Pentester Agent**: Oliver (Enhanced) - UK Male - Technical, sharp
-- **Architect Agent**: Serena (Premium) - UK Female - Strategic, sophisticated
-
-**Voice Configuration:**
-- All voices configured in `${PAI_DIR}/voice-server/voices.json`
-- Uses macOS native Premium and Enhanced neural voices
-- Zero API costs, complete privacy, 100% offline
-- Customizable speech rates per agent (configured via rate_multiplier)
-- Default speeds: Kai at 228 wpm (1.3x), agents at 236 wpm (1.35x)
-
-**Voice Completion Format:**
-
-**Standard COMPLETED Line:**
-All agents speak in first person: "Completed [task in 5-6 words]"
-- Hooks automatically detect agent type from context
-- Each voice is selected based on the agent's specialization
-- Voice notifications provide auditory feedback for task completion
-
-**CUSTOM COMPLETED Line (Optional):**
-- Use `🗣️ CUSTOM COMPLETED:` for voice-optimized responses under 8 words
-- Takes priority over standard COMPLETED line when present
-- Perfect for simple responses that sound natural when spoken
-- Examples:
- - "Thanks!" → CUSTOM COMPLETED: "You're welcome!"
- - "2+2?" → CUSTOM COMPLETED: "Four"
- - "What time?" → CUSTOM COMPLETED: "Three fifteen PM"
-- Fallback: Standard COMPLETED line used if CUSTOM is missing/too long
-
-**🚨 VOICE UPDATE CHECKLIST - CRITICAL REFERENCE**
-
-When updating any agent voice, you MUST update ALL of these locations:
-
-1. **Voice Configuration File**: `${PAI_DIR}/voice-server/voices.json`
- - Update `voice_name`: macOS voice (e.g., "Jamie (Premium)", "Ava (Premium)")
- - Adjust `rate_multiplier`: Speed multiplier (1.0 = normal, 1.3 = 30% faster)
- - Update `description`: Voice characteristics and personality match
- - Set `type`: "Premium" or "Enhanced"
-
-2. **Agent Configuration File**: `${PAI_DIR}/agents/[agent-name].md`
- - Update `voiceId:` in frontmatter to match macOS voice name
- - Example: `voiceId: Ava (Premium)` or `voiceId: Tom (Enhanced)`
-
-3. **Stop Hook**: `${PAI_DIR}/hooks/stop-hook.ts`
- - Update `VOICES` mapping to reference correct voice names from voices.json
- - Ensure agent name exists in voice mappings
- - Hook loads configuration from voices.json automatically
-
-4. **Documentation**: `${PAI_DIR}/context/documentation/voice-system.md`
- - Update voice mappings table
- - Keep this documentation current with voice changes
-
-**BEFORE CHANGING VOICES:**
-1. Download the new voice from System Settings → Voice (Live Speech) → Manage Voices
-2. Verify it's a Premium or Enhanced voice (not legacy/compact)
-3. Test voice directly: `say -v "Voice Name (Premium)" "Test message"`
-
-**VERIFICATION STEPS:**
-1. Test agent with simple task to verify voice system works
-2. Confirm voice sounds correct and matches intended agent personality
-3. Verify speech rate is appropriate (not too fast/slow)
-4. Check no errors in voice server output
-
-**COMMON MISTAKES TO AVOID:**
-- Using legacy voices instead of Premium/Enhanced (sounds robotic!)
-- Forgetting to download the voice from System Settings first
-- Not matching voice name exactly in voices.json (case-sensitive!)
-- Setting rate_multiplier too high (>1.5x can be hard to understand)
\ No newline at end of file
diff --git a/PAI_DIRECTORY/context/tools/CLAUDE.md b/PAI_DIRECTORY/context/tools/CLAUDE.md
deleted file mode 100644
index 80ac160f..00000000
--- a/PAI_DIRECTORY/context/tools/CLAUDE.md
+++ /dev/null
@@ -1,179 +0,0 @@
-# 🛠️ TOOLS DOCUMENTATION - YOUR PRIMARY PROBLEM-SOLVING METHOD
-
-## 🚨 CRITICAL RULE: TOOLS FIRST, ALWAYS 🚨
-
-**STOP AND READ THIS CAREFULLY:**
-
-When someone asks you to do ANYTHING, your FIRST thought should be:
-"Which tool from my commands or services does this?"
-
-**NOT**: "Let me write code to solve this"
-**NOT**: "Let me create HTML"
-**NOT**: "Let me build something from scratch"
-
-**INSTEAD**: "Let me use the appropriate tool that already exists"
-
-## Web searches
-
-Don't use fetch to research things, use `${PAI_DIR}/commands/web-research.md` instead.
-
-## 🚨🚨🚨 CHROME DEVTOOLS MCP - FOR ALL WEB BROWSING & TESTING 🚨🚨🚨
-
-**THESE ARE YOUR EYES, Kai!**
-
-**USE THIS FOR EVERYTHING WEB-BASED:**
-- Opening web pages
-- Testing web apps
-- Troubleshooting web pages
-- Browser automation
-- Taking screenshots
-- Clicking buttons and links
-- Filling out forms
-- Scrolling pages
-- Visual debugging
-- Checking console errors
-
-**THE CHROME DEVTOOLS MCP TOOLS ARE NAMED:**
-- `mcp__chrome-devtools__navigate_page` - Open a URL
-- `mcp__chrome-devtools__take_screenshot` - Capture screenshot
-- `mcp__chrome-devtools__click` - Click elements
-- `mcp__chrome-devtools__fill` - Fill form fields
-- `mcp__chrome-devtools__list_console_messages` - Check errors
-- `mcp__chrome-devtools__evaluate_script` - Run JavaScript
-- And more...
-
-**CRITICAL RULES:**
-- ✅ ALWAYS use Chrome DevTools MCP for web browsing
-- ✅ NEVER use curl, fetch, or wget for web debugging
-- ✅ Take screenshots to SEE what's happening
-- ✅ The tools are prefixed with `mcp__chrome-devtools__`
-
-NEVER USE curl or Playwright for this. Only Chrome DevTools MCP.
-
-**Official Documentation:** https://github.com/ChromeDevTools/chrome-devtools-mcp
-
-## 📁 AVAILABLE COMMANDS (${PAI_DIR}/commands/)
-
-**🚨 CHECK THESE FIRST - They solve specific problems completely!**
-
-`read ${PAI_DIR}/commands/`
-
-Read the descriptions in each of those to understand what they're used for and when you should invoke them.
-
-### 💰 FINANCIAL QUESTIONS - ALWAYS USE ANSWER-FINANCE-QUESTION COMMAND
-
-**CRITICAL:** When the user asks about financial information:
-1. **ALWAYS use the `answer-finance-question` command** - It parses financial PDFs and extracts specific data
-2. **Include the command in your response** - Show the user what financial data was found
-3. **Financial questions include**:
- - Utility bills (PG&E, water, electricity)
- - Vendor payments and amounts
- - Monthly expense patterns
- - Bill amounts from bank statements
-
-Examples that should trigger the command:
-- "What is my PG&E bill?"
-- "How much do I spend on utilities?"
-- "What's my typical water bill?"
-- "Show me restaurant spending"
-- "What utilities am I paying for?"
-
-## 🔌 MCP SERVERS - Model Context Protocol Services
-
-## Your full list of MCP servers is in `read ${PAI_DIR}/.mcp.json`.
-
-Read the descriptions in each of those to understand what they're used for and when you should invoke them.
-
-## 🚨 SPECIALIZED SCRAPING OF DIFFICULT CONTENT ONLINE (Apify MCP)
-
-Some web content is extremely difficult to browse, scrape, or crawl with other tools, such as from LinkedIn or Facebook or Instagram or X/Twitter. For systems like that, you want to use the Apify MCP server.
-
-**CRITICAL**: When Daniel asks about:
-- **LinkedIn scraping** or getting content from LinkedIn profiles/posts
-- **X (Twitter) scraping** or getting content from X profiles/posts
-- **Social media content extraction** that's traditionally difficult to crawl
-- **Protected/bot-detection content** from major platforms
-
-**YOU MUST USE THE APIFY MCP SERVER** - We have this specifically installed for handling these challenging scraping tasks that regular tools cannot access due to bot detection, authentication requirements, and anti-scraping measures.
-
-Use `mcp__apify__search-actors` to find appropriate scrapers, then use the relevant Apify actors for the task.
-
-## 📚 Ref MCP Server - Documentation Search For Up-to-date Development (Ref MCP)
-
-This MCP server is for always having the most up-to-date documentation and best practices for writing code using specific technologies. So when you start a project, you should always hit this MCP server for the technologies that you are building with to make sure you are using the best practices.
-
-Any engineer or developer agents should always use this as well.
-
-### Available Ref MCP Tools:
-
-1. **ref_search_documentation** - Primary documentation search
- - Searches technical documentation for APIs, services, libraries, frameworks
- - Returns relevant sections from documentation pages
- - Token-efficient (returns only most relevant ~5k tokens)
- - Smart session tracking to avoid duplicate results
- - Use for: Finding specific API methods, configuration options, best practices
-
-2. **ref_read_url** - Direct documentation reading
- - Fetches content from a URL and converts to markdown
- - Intelligently filters out irrelevant sections based on search context
- - Optimized for documentation pages (loads all code tabs, etc.)
- - Returns deep links to specific sections for verification
- - Use for: Following documentation links, reading specific pages
-
-3. **ref_search_web** - Fallback web search
- - General web search when documentation search doesn't find results
- - Finds relevant pages on the web
- - Can be combined with ref_read_url to read found pages
- - Use for: Finding documentation not in Ref's index, blog posts, tutorials
-
-### Key Features:
-- **Token Efficiency**: Smart chunking to return only relevant tokens (e.g., 200 tokens from an 80k token API doc)
-- **Session Intelligence**: Tracks search trajectory to minimize context and avoid repeated results
-- **Documentation-Optimized**: Tuned specifically for technical documentation crawling
-- **Fast Performance**: Quick lookups without deep research overhead
-- **Context Preservation**: Maintains search context to filter irrelevant sections
-
-### When to Use Ref MCP:
-- Starting any new coding project (check latest framework docs)
-- Looking up API parameters or methods
-- Finding configuration options or best practices
-- Checking current library versions and features
-- Getting code examples from official documentation
-- Verifying implementation details before coding
-
-### Usage Examples:
-- "Check React 19 documentation for new features"
-- "Find Stripe API webhook configuration"
-- "Look up Python asyncio best practices"
-- "Get Next.js 15 app router documentation"
-- "Search for AWS Lambda environment variables"
-
-## 💳 Stripe MCP Server - Payment Management
-
-The Stripe MCP server lets us manage our production Stripe account, including creating new products, getting payment information, etc.
-
-We primarily use it to complete the end-to-end building of new applications and hook it up to a real Stripe page where people can buy and use the product
-
-**When to use**:
-- Processing charges and refunds
-- Creating and managing subscriptions
-- Viewing payment history and invoices
-- Managing products and pricing
-
-**Security Considerations**:
-- Always confirm amounts and customer IDs before operations
-- Never expose customer payment details in responses
-
-**Common Operations** (always verify before executing):
-- Create/update customers
-- Process payments
-- Issue refunds (DOUBLE CHECK AMOUNTS)
-- Manage subscriptions
-- Generate invoices
-- View transaction history
-
-**Before ANY Stripe operation**:
-1. Confirm the exact operation with the user
-2. Verify customer/payment IDs
-3. Double-check amounts (especially for charges/refunds)
-4. Consider if test mode would be more appropriate
diff --git a/PAI_DIRECTORY/documentation/README.md b/PAI_DIRECTORY/documentation/README.md
index 20ae8085..60015682 100644
--- a/PAI_DIRECTORY/documentation/README.md
+++ b/PAI_DIRECTORY/documentation/README.md
@@ -11,7 +11,7 @@ Welcome to the Personal AI Infrastructure (PAI) documentation. PAI is a comprehe
### Core Concepts
- [System Architecture](./architecture.md) - Overview of PAI components
-- [UFC Context System](./ufc-context-system.md) - Universal Flexible Context management
+- [Skills System](./skills-system.md) - Modular capability packages with progressive disclosure
- [Hook System](./hook-system.md) - Event-driven automation
- [Agent System](./agent-system.md) - Specialized AI agents
@@ -29,19 +29,19 @@ Welcome to the Personal AI Infrastructure (PAI) documentation. PAI is a comprehe
PAI (Personal AI Infrastructure) is a powerful framework that enhances AI assistants with:
-- **Dynamic Context Loading**: Automatically loads relevant context based on conversation intent
-- **Universal Flexible Context (UFC)**: Intelligent context management system
+- **Skills System**: Modular capability packages activated by intent
+- **Progressive Disclosure**: Load information as needed (SKILL.md → CLAUDE.md → Resources)
- **Hook System**: Event-driven automation for tool calls
-- **Voice Notifications**: AI-powered voice feedback
+- **Voice Notifications**: macOS native voice feedback with distinct agent voices
- **Multi-Agent Architecture**: Specialized agents for different tasks
- **Security First**: Built with security best practices
## 🎯 Key Features
-### 1. Context Intelligence
-- Semantic understanding of user intent
-- Automatic context loading
-- Project-specific knowledge bases
+### 1. Skills Intelligence
+- Intent-based skill activation
+- Progressive information disclosure
+- Modular capability packages
- Dynamic agent selection
### 2. Automation
@@ -51,10 +51,10 @@ PAI (Personal AI Infrastructure) is a powerful framework that enhances AI assist
- Event-driven responses
### 3. Voice Integration
-- ElevenLabs AI voices
-- macOS fallback support
-- Multiple voice personalities
-- Real-time notifications
+- macOS native Premium/Enhanced voices
+- Zero API costs (100% offline)
+- Distinct voices for Kai and each agent
+- Real-time completion notifications
### 4. Security
- Input validation and sanitization
@@ -67,12 +67,13 @@ PAI (Personal AI Infrastructure) is a powerful framework that enhances AI assist
```
PAI/
├── PAI_DIRECTORY/ # PAI system configuration
-│ ├── context/ # UFC context files
+│ ├── skills/ # Modular capability packages
│ ├── hooks/ # Event hooks
-│ ├── commands/ # Custom commands
+│ ├── commands/ # Custom slash commands
+│ ├── agents/ # Specialized AI agents
│ └── voice-server/ # Voice notification server
├── Documentation/ # System documentation
-├── Projects/ # Project-specific contexts
+├── Projects/ # User projects
└── Library/ # System libraries and logs
```
@@ -80,9 +81,11 @@ PAI/
PAI uses environment variables for configuration:
-- `PAI_DIR`: PAI configuration directory
-- `ELEVENLABS_API_KEY`: API key for voice synthesis
+- `PAI_DIR`: PAI configuration directory (points to PAI_DIRECTORY)
+- `PAI_HOME`: Your home directory
- `PORT`: Voice server port (default: 8888)
+- `DA`: Digital Assistant name (optional)
+- `DA_COLOR`: Display color (optional)
## 📖 Quick Links
@@ -123,17 +126,19 @@ cp ${PAI_DIR}/env-example ${PAI_DIR}/.env
PAI is configured through:
1. Environment variables in `${PAI_DIR}/.env`
-2. Context files in `${PAI_DIR}/context/`
+2. Skills in `${PAI_DIR}/skills/`
3. Hook scripts in `${PAI_DIR}/hooks/`
-4. Project-specific configurations
+4. Agent definitions in `${PAI_DIR}/agents/`
+5. Slash commands in `${PAI_DIR}/commands/`
## Usage Examples
-### Basic Context Loading
+### Skill Activation
```bash
-# Context automatically loads based on conversation
-"Help me with my website" → Loads website context
-"Research AI trends" → Loads research agent
+# Skills activate based on intent matching
+"Help me with prompt engineering" → Activates prompting skill
+"Create a new skill for X" → Activates create-skill
+"Do research on AI trends" → Activates research skill (launches agents)
```
### Voice Notifications
@@ -155,8 +160,8 @@ Common issues and solutions:
| Issue | Solution |
|-------|----------|
-| Context not loading | Check `${PAI_DIR}/context/` |
-| Voice not working | Verify ElevenLabs API key in `${PAI_DIR}/.env` |
+| Skill not activating | Check skill description in `<available_skills>` |
+| Voice not working | Verify voice server running: `curl http://localhost:8888/health` |
| Hooks not triggering | Ensure hook scripts are executable |
| Port conflicts | Change PORT in `${PAI_DIR}/.env` |
diff --git a/PAI_DIRECTORY/documentation/architecture.md b/PAI_DIRECTORY/documentation/architecture.md
index ff9f5aee..1fb8d136 100644
--- a/PAI_DIRECTORY/documentation/architecture.md
+++ b/PAI_DIRECTORY/documentation/architecture.md
@@ -21,10 +21,10 @@ PAI (Personal AI Infrastructure) is a modular, event-driven system that enhances
└────────────────┬────────────────────────────────────────────┘
│
┌────────────────▼────────────────────────────────────────────┐
-│ UFC Context System │
+│ Skills System │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
-│ │ Dynamic │ │ Semantic │ │ Context │ │
-│ │ Loading │ │ Matching │ │ Files │ │
+│ │ Intent │ │ Skill │ │ Progressive │ │
+│ │ Matching │ │ Activation │ │ Loading │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└────────────────┬────────────────────────────────────────────┘
│
@@ -58,16 +58,17 @@ The hook system provides event-driven automation throughout the AI interaction l
**Location:** `${PAI_DIR}/hooks/`
-### 2. UFC Context System
+### 2. Skills System
-Universal Flexible Context (UFC) is the intelligent context management system that dynamically loads relevant information based on semantic understanding.
+The Skills System provides modular, self-contained capability packages that extend AI functionality with specialized knowledge and workflows.
**Key Features:**
-- **Semantic Matching**: Understands user intent, not just keywords
-- **Dynamic Loading**: Loads context files on-demand
-- **Project Awareness**: Maintains project-specific contexts
+- **Intent Matching**: Activates skills based on user request understanding
+- **Progressive Disclosure**: SKILL.md → CLAUDE.md → Resources
+- **Modular Design**: Self-contained with templates and components
+- **Global Inheritance**: All skills automatically access global context
-**Location:** `${PAI_DIR}/context/`
+**Location:** `${PAI_DIR}/skills/`
### 3. Agent System
@@ -129,19 +130,24 @@ Intent Analysis → Pattern Matching → Context Selection → Dynamic Loading
```
${PAI_DIR}/
-├── context/ # UFC context files
-│ ├── CLAUDE.md # Main context
-│ ├── projects/ # Project-specific contexts
-│ ├── life/ # Personal contexts
-│ └── tools/ # Tool contexts
+├── skills/ # Modular capability packages
+│ ├── prompting/ # Prompt engineering guide
+│ ├── create-skill/ # Skill creation framework
+│ ├── development/ # Software development
+│ └── [custom]/ # Your custom skills
├── hooks/ # Event hooks
│ ├── user-prompt-submit-hook
│ ├── tool-use-hook
│ └── post-execution-hook
-├── commands/ # Custom commands
-│ └── *.sh # Command scripts
+├── commands/ # Custom slash commands
+│ └── *.md # Command definitions
+├── agents/ # Specialized AI agents
+│ ├── engineer.md
+│ ├── researcher.md
+│ └── [others].md
├── voice-server/ # Voice notification service
│ ├── server.ts # Server implementation
+│ ├── voices.json # Voice configuration
│ └── menubar/ # Menu bar integration
├── documentation/ # System documentation
└── statusline-command.sh
@@ -203,21 +209,24 @@ Hooks communicate through:
## Extensibility Points
-### 1. Adding Context
-Create new context files in:
-- `${PAI_DIR}/context/` - Global contexts
-- `${HOME}/Projects/*/CLAUDE.md` - Project contexts
+### 1. Adding Skills
+Create new skills in:
+- `${PAI_DIR}/skills/[skill-name]/` - Skill directory
+- `SKILL.md` - Quick reference (required)
+- `CLAUDE.md` - Comprehensive guide (optional)
+- Add to global context for discovery
### 2. Adding Hooks
Create executable scripts in:
- `${PAI_DIR}/hooks/` - Event hooks
### 3. Adding Agents
-Define new agents in UFC context system configuration.
+Define new agents in:
+- `${PAI_DIR}/agents/[name].md` - Agent configuration
### 4. Adding Commands
-Create command scripts in:
-- `${PAI_DIR}/commands/` - Custom commands
+Create slash commands in:
+- `${PAI_DIR}/commands/` - Custom slash commands
## Performance Considerations
diff --git a/PAI_DIRECTORY/documentation/skills-system.md b/PAI_DIRECTORY/documentation/skills-system.md
new file mode 100644
index 00000000..4959b294
--- /dev/null
+++ b/PAI_DIRECTORY/documentation/skills-system.md
@@ -0,0 +1,627 @@
+# Skills System Documentation
+
+## Overview
+
+The Skills System is PAI's modular capability framework that extends AI functionality through self-contained packages of specialized knowledge, workflows, and tools. Skills provide progressive disclosure of information and activate based on semantic understanding of user intent.
+
+## Core Concepts
+
+### What Are Skills?
+
+Skills are contextual packages that:
+1. **Extend capabilities**: Add specialized knowledge or workflows
+2. **Load progressively**: Metadata → Instructions → Resources
+3. **Activate intelligently**: Match user intent to skill descriptions
+4. **Work independently**: Self-contained but inherit global context
+5. **Follow standards**: Consistent structure across all skills
+
+### Skills vs Traditional Context Files
+
+**Skills System (Current):**
+- Modular, self-contained packages
+- Progressive disclosure (SKILL.md → CLAUDE.md → Resources)
+- Intent-based activation through descriptions
+- Template-driven consistency
+- Clear activation triggers
+
+**Context Files (Legacy):**
+- Monolithic documentation
+- Always loaded in full
+- Directory-based organization
+- Less structured
+
+### Skills vs Slash Commands
+
+**Skills:**
+- Contextual knowledge and workflows
+- Always available in system prompt
+- Triggered by matching user intent
+- Can reference slash commands
+
+**Slash Commands:**
+- Executable workflows
+- Must be explicitly invoked (`/command-name`)
+- Typically orchestrate multiple tools
+- Live in `${PAI_DIR}/commands/`
+
+**Relationship**: Skills often invoke slash commands (e.g., research skill calls `/conduct-research`)
+
+## How Skills Work
+
+### 1. Three-Layer Architecture
+
+**Layer 1: Metadata (Always Loaded)**
+```yaml
+---
+name: skill-name
+description: Clear description with activation triggers
+---
+```
+- Appears in `<available_skills>` in system prompt
+- Used for intent matching
+- Must be concise but complete
+
+**Layer 2: SKILL.md Body (Loaded When Activated)**
+```markdown
+## When to Activate This Skill
+- Trigger condition 1
+- Trigger condition 2
+
+## Core Workflow
+[Main instructions]
+
+## Supplementary Resources
+For full context: `read ${PAI_DIR}/skills/[name]/CLAUDE.md`
+```
+
+**Layer 3: Supporting Resources (Loaded As Needed)**
+- CLAUDE.md (comprehensive methodology)
+- Subdirectories (components, templates)
+- Scripts, references, assets
+
+### 2. Intent Matching & Activation
+
+Skills activate when user requests match their descriptions:
+
+```yaml
+User: "I need to do research on quantum computing"
+↓
+System checks available_skills
+↓
+Matches: "research" skill description contains:
+ "USE WHEN user says 'do research', 'research X', 'find information about'..."
+↓
+Activates research skill
+↓
+Loads SKILL.md instructions
+```
+
+### 3. Progressive Disclosure Flow
+
+```
+User Request → Intent Match → Load SKILL.md → Execute Workflow
+ ↓
+ (If needed) Load CLAUDE.md
+ ↓
+ (If needed) Load Components
+```
+
+## Skill Structure Patterns
+
+### Simple Skill (SKILL.md only)
+
+```
+${PAI_DIR}/skills/fabric-patterns/
+└── SKILL.md # Everything in one file
+```
+
+**Use when:**
+- Single focused capability
+- Minimal context needed
+- Quick reference suffices
+- < 100 lines of instruction
+
+**Example: fabric-patterns**
+- Clear single purpose (process content with Fabric CLI)
+- Lists available patterns
+- Provides usage examples
+- No sub-components needed
+
+### Complex Skill (Multi-file)
+
+```
+${PAI_DIR}/skills/development/
+├── SKILL.md # Quick reference
+├── CLAUDE.md # Full methodology (500+ lines)
+├── primary-stack/ # Reusable components
+│ ├── CLAUDE.md
+│ ├── auth-setup.md
+│ ├── stripe-billing.md
+│ └── business-metrics.md
+├── style-guide/ # UI patterns
+│ └── [design resources]
+└── [other subdirectories]
+```
+
+**Use when:**
+- Multi-phase workflows
+- Extensive methodology
+- Multiple sub-components
+- Deep context required
+
+**Example: development**
+- Comprehensive spec-kit methodology
+- Multiple reusable components
+- Progressive disclosure (69-line SKILL.md, 500+ line CLAUDE.md)
+- Component-based organization
+
+## Creating Skills
+
+### Phase 1: Planning
+
+**Questions to answer:**
+1. What problem does this skill solve?
+2. When should it activate? (User phrases)
+3. What tools/commands does it use?
+4. Is it simple or complex?
+5. Does similar skill exist?
+6. What resources does it need?
+
+### Phase 2: Structure Creation
+
+**Simple Skill:**
+```bash
+mkdir -p ${PAI_DIR}/skills/[skill-name]
+# Create SKILL.md only
+```
+
+**Complex Skill:**
+```bash
+mkdir -p ${PAI_DIR}/skills/[skill-name]
+mkdir -p ${PAI_DIR}/skills/[skill-name]/[components]
+# Create SKILL.md, CLAUDE.md, and component files
+```
+
+### Phase 3: Writing Content
+
+**SKILL.md Template:**
+```markdown
+---
+name: skill-name
+description: What it does, when to use it, key methods. USE WHEN user says 'trigger phrase', 'another phrase'...
+---
+
+# Skill Name
+
+## When to Activate This Skill
+- User requests X
+- User says "trigger phrase"
+- Task involves Y capability
+
+## Core Workflow
+
+[Main instructions in imperative form]
+
+## Examples
+
+[Concrete usage examples]
+
+## Supplementary Resources
+For full guide: `read ${PAI_DIR}/skills/[name]/CLAUDE.md`
+```
+
+**Description Guidelines:**
+
+✅ **Good - research skill:**
+```yaml
+description: Multi-source comprehensive research using perplexity-researcher,
+ claude-researcher, and gemini-researcher agents. Launches up to 10 parallel
+ research agents for fast results. USE WHEN user says 'do research', 'research X',
+ 'find information about', 'investigate', 'analyze trends', 'current events',
+ or any research-related request.
+```
+- Clear what it does (multi-source research)
+- Mentions tools (3 researcher types)
+- Lists explicit triggers
+- Explains benefits (parallel, fast)
+
+❌ **Bad example:**
+```yaml
+description: A skill for development tasks
+```
+- Too vague
+- No triggers
+- No tools mentioned
+- Unclear when to use
+
+### Phase 4: Integration
+
+**Update global context:**
+
+Edit your global configuration to include the skill in `<available_skills>`:
+```xml
+<skill>
+<name>your-new-skill</name>
+<description>Your description with USE WHEN triggers...</description>
+<location>user</location>
+</skill>
+```
+
+### Phase 5: Testing
+
+**Test activation:**
+1. Use natural language that should trigger skill
+2. Verify skill loads correctly
+3. Check all file references work
+4. Validate against examples
+
+**Test workflow:**
+1. Follow instructions step-by-step
+2. Verify commands execute correctly
+3. Check all tools are available
+4. Validate output matches expectations
+
+## Skill Categories
+
+### Development & Engineering
+- **development**: Spec-kit methodology with TDD
+- **chrome-devtools**: Browser automation and testing
+- **create-skill**: Skill creation framework
+
+### Research & Information
+- **research**: Multi-source parallel research
+- **web-scraping**: Data extraction and crawling
+- **ref-documentation**: Technical documentation lookup
+
+### Content & Communication
+- **fabric-patterns**: Content processing with Fabric CLI
+- **youtube-extraction**: YouTube content extraction
+- **prompting**: Prompt engineering standards
+
+### Tools & Utilities
+- **ai-image-generation**: Image generation workflows
+- **ai-video-generation**: Video generation workflows
+- **ffuf**: Web fuzzing for security testing
+
+### Meta Skills
+- **create-skill**: How to create skills (meta!)
+- **prompting**: How to write effective prompts
+
+## Best Practices
+
+### Description Writing
+
+**Critical elements:**
+1. **What it does**: Clear capability statement
+2. **Key methods/tools**: Mention specific technologies
+3. **Activation triggers**: "USE WHEN user says..." phrases
+4. **Unique characteristics**: What makes this skill special
+
+### Instruction Writing
+
+**Use imperative/infinitive form:**
+- ✅ "Create directory structure"
+- ✅ "Launch research agents in parallel"
+- ❌ "You should create a directory"
+- ❌ "We will launch research agents"
+
+**Be specific and actionable:**
+- ✅ "Run `bun dev` to start server"
+- ✅ "Execute `/conduct-research` slash command"
+- ❌ "Start the application"
+- ❌ "Do research"
+
+**Reference, don't duplicate:**
+- ✅ "Use contacts from global context"
+- ✅ "Follow global security rules"
+- ❌ [Copying entire global context into skill]
+
+### Organization
+
+**Progressive disclosure:**
+- SKILL.md = Quick reference (< 150 lines)
+- CLAUDE.md = Comprehensive guide (extensive)
+- Components = Reusable pieces
+
+**Self-contained but not redundant:**
+- Include everything needed for the skill
+- Reference global context, don't duplicate
+- Clear dependencies
+
+## Configuration
+
+### Skill Directory Structure
+
+```
+${PAI_DIR}/skills/
+├── prompting/ # Simple skill
+│ └── SKILL.md
+├── create-skill/ # Complex skill with templates
+│ ├── SKILL.md
+│ ├── CLAUDE.md
+│ └── templates/
+│ ├── simple-skill-template.md
+│ ├── complex-skill-template.md
+│ └── skill-with-agents-template.md
+├── development/ # Complex skill with components
+│ ├── SKILL.md
+│ ├── CLAUDE.md
+│ ├── primary-stack/
+│ │ ├── CLAUDE.md
+│ │ ├── auth-setup.md
+│ │ └── stripe-billing.md
+│ └── style-guide/
+└── [your-custom-skills]/
+```
+
+### Skill File Naming
+
+- **SKILL.md**: Always exactly this (required)
+- **CLAUDE.md**: Always exactly this for comprehensive guides
+- **Other files**: Descriptive names with context
+ - `auth-setup.md`
+ - `stripe-billing.md`
+ - `visual-tdd-workflow.md`
+
+### Directory Naming
+
+- **Format**: `lowercase-with-hyphens`
+- **Length**: 2-4 words typically
+- **Style**: Descriptive, not generic
+
+**Good examples:**
+- `chrome-devtools` (specific tool)
+- `ai-image-generation` (clear capability)
+- `fabric-patterns` (tool + method)
+- `web-scraping` (clear domain)
+
+**Bad examples:**
+- `testing` (too generic)
+- `helper` (meaningless)
+- `chrome_devtools` (underscores)
+- `ChromeDevTools` (capitals)
+
+## Advanced Features
+
+### Skill Composition
+
+Skills can reference other skills:
+
+```markdown
+## Related Skills
+
+This skill works with:
+- **development**: For implementation
+- **research**: For technology selection
+- **chrome-devtools**: For visual testing
+```
+
+### Agent Integration
+
+Skills can specify agent usage:
+
+```markdown
+## Available Agents
+
+### Perplexity Researcher
+**Training:** Web research specialist
+**Use for:** Real-time information gathering
+
+### Claude Researcher
+**Training:** Deep analysis and synthesis
+**Use for:** Comprehensive research reports
+
+Maximum 10 parallel agents for independent research queries.
+```
+
+### Tool Orchestration
+
+Skills can orchestrate multiple tools:
+
+```markdown
+## Tool Stack
+
+1. **Ref MCP** - Documentation lookup
+2. **Chrome DevTools MCP** - Visual testing
+3. **Bash** - Command execution
+4. **Grep/Glob** - Code search
+
+Execute in sequence or parallel as appropriate.
+```
+
+## Troubleshooting
+
+### Skill Won't Activate
+
+**Check:**
+1. Is it in global available_skills?
+2. Does description match user's intent?
+3. Are activation triggers clear?
+4. Test with exact trigger phrases
+
+**Debug:**
+- Check system prompt for skill in `<available_skills>`
+- Verify SKILL.md metadata is valid YAML
+- Test description clarity
+
+### Instructions Don't Work
+
+**Check:**
+1. Are all referenced files present?
+2. Are commands/tools available?
+3. Are paths correct (use `${PAI_DIR}` variables)?
+4. Test step-by-step manually
+
+**Debug:**
+- Verify all file paths with `ls`
+- Check command availability
+- Test each instruction independently
+
+### Skill Too Complex
+
+**Solution:**
+1. Split into SKILL.md + CLAUDE.md
+2. Create component subdirectories
+3. Use progressive disclosure
+4. Reference rather than include
+
+## Skill Quality Checklist
+
+### Before Creating Skill
+
+- [ ] Clearly defined purpose
+- [ ] Identified activation triggers
+- [ ] Checked for existing similar skills
+- [ ] Determined simple vs complex structure
+- [ ] Listed required tools/commands
+- [ ] Identified supporting resources needed
+
+### SKILL.md Quality
+
+- [ ] Complete YAML frontmatter (name, description)
+- [ ] Description includes activation triggers
+- [ ] "When to Activate" section present
+- [ ] Instructions in imperative form
+- [ ] Concrete examples included
+- [ ] References to deeper resources (if applicable)
+- [ ] No duplication of global context
+- [ ] Tested with realistic user requests
+
+### Integration Quality
+
+- [ ] Added to global available_skills
+- [ ] All file references work correctly
+- [ ] Slash commands exist (if referenced)
+- [ ] MCP tools available (if referenced)
+- [ ] Agents configured (if referenced)
+- [ ] Templates present (if referenced)
+
+## Migration from Context System
+
+If you're upgrading from the old context-based system:
+
+### What Changed
+
+**Before (Context System):**
+```
+${PAI_DIR}/context/
+├── CLAUDE.md
+├── projects/
+│ └── website/
+│ └── CLAUDE.md
+└── tools/
+ └── CLAUDE.md
+```
+- Monolithic files
+- Directory-based organization
+- Always loaded in full
+
+**After (Skills System):**
+```
+${PAI_DIR}/skills/
+├── website/
+│ ├── SKILL.md
+│ └── CLAUDE.md
+├── prompting/
+│ └── SKILL.md
+└── create-skill/
+ ├── SKILL.md
+ ├── CLAUDE.md
+ └── templates/
+```
+- Modular packages
+- Intent-based activation
+- Progressive disclosure
+
+### Migration Steps
+
+1. **Identify capabilities** in old context files
+2. **Group related** content into skill topics
+3. **Create SKILL.md** for each capability
+4. **Extract methodology** into CLAUDE.md (if complex)
+5. **Add descriptions** with activation triggers
+6. **Update global context** to include skills
+7. **Test activation** with natural language
+8. **Remove old** context directory
+
+## Key Principles
+
+1. **Progressive disclosure**: SKILL.md = quick ref, CLAUDE.md = deep dive
+2. **Clear activation**: Description enables intent matching
+3. **Executable instructions**: Imperative form, actionable steps
+4. **No duplication**: Reference global context, don't copy
+5. **Self-contained**: Work independently with clear dependencies
+6. **Template-driven**: Use templates for consistency
+7. **Test thoroughly**: Validate with real user requests
+8. **Iterate constantly**: Skills are living documents
+9. **Document clearly**: Future you will thank you
+10. **Follow standards**: Consistency across all skills
+
+## Examples from PAI
+
+### Example 1: Simple Skill (fabric-patterns)
+
+**Analysis:**
+- ✅ Single capability (process content with patterns)
+- ✅ Straightforward workflow
+- ✅ No sub-components needed
+- ✅ Only SKILL.md required (69 lines)
+
+**Key features:**
+- Clear "When to Activate" section
+- Lists all available Fabric patterns
+- Provides concrete examples
+- References external Fabric docs
+
+### Example 2: Complex Skill (development)
+
+**Analysis:**
+- ✅ Multi-phase methodology (spec-kit)
+- ✅ Multiple components (primary-stack, style-guide)
+- ✅ Extensive context needed
+- ✅ Requires SKILL.md + CLAUDE.md + components
+
+**Structure:**
+- SKILL.md = 69 lines (quick start)
+- CLAUDE.md = 500+ lines (full methodology)
+- Components organized by function
+- Progressive disclosure in action
+
+**Key features:**
+- Quick reference in SKILL.md
+- Comprehensive guide in CLAUDE.md
+- Reusable components
+- References slash commands
+
+### Example 3: Agent Skill (research)
+
+**Analysis:**
+- ✅ Uses multiple specialized agents
+- ✅ Supports parallel execution
+- ✅ Orchestrates complex workflows
+- ✅ Simple SKILL.md sufficient
+
+**Key features:**
+- Lists 3 research agent types
+- Explains parallel execution (up to 10)
+- References `/conduct-research` slash command
+- Clear activation triggers
+- Speed benefits highlighted
+
+## Further Reading
+
+### Anthropic Resources
+- Official skills: https://github.com/anthropics/skills
+- skill-creator: Meta-skill for creating skills
+- template-skill: Basic structure template
+
+### PAI Resources
+- `${PAI_DIR}/skills/prompting/` - Prompt engineering standards
+- `${PAI_DIR}/skills/create-skill/` - Comprehensive skill creation guide
+- `${PAI_DIR}/agents/` - Agent configurations
+- `${PAI_DIR}/commands/` - Slash commands
+
+---
+
+*Skills System Version 2.0.0*
+*Migrated from UFC Context System October 2025*
diff --git a/PAI_DIRECTORY/documentation/voice-system.md b/PAI_DIRECTORY/documentation/voice-system.md
index 2f3adcb7..6ea8ec93 100644
--- a/PAI_DIRECTORY/documentation/voice-system.md
+++ b/PAI_DIRECTORY/documentation/voice-system.md
@@ -7,21 +7,21 @@ The PAI Voice System provides text-to-speech capabilities for Kai and all agents
### Core Components
-1. **Voice Server** (`~/.claude/voice-server/server.ts`)
+1. **Voice Server** (`${PAI_DIR}/voice-server/server.ts`)
- Bun-based HTTP server running on port 8888
- Uses macOS native `say` command with Premium/Enhanced voices
- Supports both voice name and speech rate control
- Provides notification display alongside voice output
- Zero API costs (no cloud services required)
-2. **Stop Hook** (`~/.claude/hooks/stop-hook.ts`)
+2. **Stop Hook** (`${PAI_DIR}/hooks/stop-hook.ts`)
- Triggers after every Claude Code response
- Parses completion messages from transcripts
- Extracts text from COMPLETED lines
- Sends appropriate voice requests with entity-specific voices
- Handles both Kai's direct work and agent completions
-3. **Agent Configurations** (`~/.claude/agents/*.md`)
+3. **Agent Configurations** (`${PAI_DIR}/agents/*.md`)
- Each agent has a unique voice matching their personality
- Voice names defined in agent frontmatter (`voiceId:`)
- Voice mappings centralized in stop-hook.ts
@@ -87,7 +87,7 @@ All entities use high-quality macOS Premium or Enhanced neural voices for natura
The voice system uses a centralized JSON configuration file for all voice and speed settings:
-**Location:** `~/.claude/voice-server/voices.json`
+**Location:** `${PAI_DIR}/voice-server/voices.json`
**Structure:**
```json
@@ -128,7 +128,7 @@ To change speech rates, edit the `rate_multiplier` or `rate_wpm` values in voice
Changes take effect immediately (no server restart required for hook-initiated voices).
-### Environment Variables (in ~/.env)
+### Environment Variables (in ${PAI_DIR}/.env)
```bash
PORT="8888" # Optional, defaults to 8888
```
@@ -194,7 +194,7 @@ Health check endpoint.
## Agent Voice Configuration
### Agent Frontmatter
-Each agent file (`~/.claude/agents/*.md`) includes voice configuration:
+Each agent file (`${PAI_DIR}/agents/*.md`) includes voice configuration:
```yaml
---
@@ -310,26 +310,26 @@ The CUSTOM COMPLETED line is used if:
### Voice Server Not Running
Start the server:
```bash
-cd ~/Library/Mobile\ Documents/com~apple~CloudDocs/Claude/voice-server
+cd ${PAI_DIR}/voice-server
bun server.ts &
```
Or restart it:
```bash
lsof -ti:8888 | xargs kill -9
-cd ~/Library/Mobile\ Documents/com~apple~CloudDocs/Claude/voice-server
+cd ${PAI_DIR}/voice-server
bun server.ts &
```
### Wrong Voice Playing
1. Check stop-hook voice mappings:
```bash
- grep "const VOICES" ~/.claude/hooks/stop-hook.ts
+ grep "const VOICES" ${PAI_DIR}/hooks/stop-hook.ts
```
2. Verify agent voiceId in frontmatter:
```bash
- grep "voiceId:" ~/.claude/agents/*.md
+ grep "voiceId:" ${PAI_DIR}/agents/*.md
```
### No COMPLETED Line in Output
diff --git a/PAI_DIRECTORY/skills/create-skill/CLAUDE.md b/PAI_DIRECTORY/skills/create-skill/CLAUDE.md
new file mode 100644
index 00000000..3f708ef1
--- /dev/null
+++ b/PAI_DIRECTORY/skills/create-skill/CLAUDE.md
@@ -0,0 +1,1001 @@
+# Create Skill - Comprehensive Skill Creation Guide
+
+## 🎯 PURPOSE: EXTENDING KAI'S CAPABILITIES THROUGH MODULAR SKILLS
+
+**Skills are modular, self-contained packages that extend Claude's capabilities with specialized knowledge, workflows, and tools.**
+
+This guide combines:
+- Anthropic's official skill methodology
+- PAI-specific patterns and conventions
+- Best practices from existing skills
+- Template-driven quality standards
+
+## 📚 WHAT ARE SKILLS?
+
+### Definition
+
+Skills are contextual packages that:
+1. **Extend capabilities**: Add specialized knowledge or workflows
+2. **Load progressively**: Metadata → Instructions → Resources
+3. **Activate intelligently**: Match user intent to skill descriptions
+4. **Work independently**: Self-contained but inherit global context
+5. **Follow standards**: Consistent structure across all skills
+
+### Skills vs Slash Commands
+
+**Skills**:
+- Contextual knowledge and workflows
+- Always available in system prompt
+- Triggered by matching user intent
+- Can reference slash commands
+
+**Slash Commands**:
+- Executable workflows
+- Must be explicitly invoked
+- Typically orchestrate multiple tools
+- Live in `${PAI_DIR}/commands/`
+
+**Relationship**: Skills often invoke slash commands (e.g., research skill calls `/conduct-research`)
+
+## 🏗️ SKILL ARCHITECTURE
+
+### Three-Layer Loading System
+
+**Layer 1: Metadata** (Always Loaded)
+```yaml
+---
+name: skill-name
+description: Clear description with activation triggers
+---
+```
+- Appears in `<available_skills>` in system prompt
+- Used for intent matching
+- Must be concise but complete
+
+**Layer 2: SKILL.md Body** (Loaded When Activated)
+- Quick reference instructions
+- Core workflows
+- Key commands
+- Examples
+- References to deeper resources
+
+**Layer 3: Supporting Resources** (Loaded As Needed)
+- CLAUDE.md (comprehensive context)
+- Subdirectories (components, templates, docs)
+- Scripts, references, assets
+
+### Directory Structure Patterns
+
+#### Simple Skill Structure
+```
+${PAI_DIR}/skills/fabric-patterns/
+└── SKILL.md # Everything in one file
+```
+
+**Use when:**
+- Single focused capability
+- Minimal context needed
+- Quick reference suffices
+
+#### Complex Skill Structure
+```
+${PAI_DIR}/skills/development/
+├── SKILL.md # Quick reference
+├── CLAUDE.md # Full methodology
+├── primary-stack/ # Reusable components
+│ ├── auth-setup.md
+│ ├── stripe-billing.md
+│ └── business-metrics.md
+├── style-guide/ # UI patterns
+│ └── [design resources]
+└── [other subdirectories]
+```
+
+**Use when:**
+- Multi-step workflows
+- Extensive methodology
+- Multiple sub-components
+- Deep context required
+
+## ✍️ WRITING EFFECTIVE SKILLS
+
+### SKILL.md Structure
+
+```markdown
+---
+name: skill-name
+description: What it does, when to use it, key methods. USE WHEN triggers...
+---
+
+# Skill Name
+
+## When to Activate This Skill
+- Trigger phrase 1
+- Trigger phrase 2
+- User intent description
+
+## Core Workflow / Main Instructions
+[Primary instructions in imperative form]
+
+## Available Tools / Commands
+[Key commands, tools, or methods]
+
+## Examples
+[Concrete usage examples]
+
+## Supplementary Resources
+For full context: `read ${PAI_DIR}/skills/[name]/CLAUDE.md`
+For components: `read ${PAI_DIR}/skills/[name]/[subdirectory]/`
+```
+
+### Description Writing Guidelines
+
+**Critical elements:**
+1. **What it does**: Clear capability statement
+2. **Key methods/tools**: Mention specific technologies
+3. **Activation triggers**: "USE WHEN user says..." phrases
+4. **Unique characteristics**: What makes this skill special
+
+**Examples from PAI:**
+
+**Good - research skill:**
+```yaml
+description: Multi-source comprehensive research using perplexity-researcher,
+ claude-researcher, and gemini-researcher agents. Launches up to 10 parallel
+ research agents for fast results. USE WHEN user says 'do research', 'research X',
+ 'find information about', 'investigate', 'analyze trends', 'current events',
+ or any research-related request.
+```
+✅ Clear what it does (multi-source research)
+✅ Mentions tools (3 researcher types)
+✅ Lists explicit triggers
+✅ Explains benefit (parallel, fast)
+
+**Good - chrome-devtools skill:**
+```yaml
+description: Chrome DevTools MCP for web application debugging, visual testing,
+ and browser automation. The ONLY acceptable way to debug web apps - NEVER use
+ curl, fetch, or wget. Provides screenshots, console inspection, network monitoring,
+ and DOM analysis.
+```
+✅ States purpose (debugging, testing)
+✅ Strong negative trigger (never use curl)
+✅ Lists capabilities
+✅ Clear domain (web applications)
+
+**Bad example:**
+```yaml
+description: A skill for development tasks
+```
+❌ Too vague
+❌ No triggers
+❌ No tools mentioned
+❌ Unclear when to use
+
+### Instruction Writing Standards
+
+**Use imperative/infinitive form** (verb-first instructions):
+- ✅ "Create directory structure"
+- ✅ "Launch research agents in parallel"
+- ✅ "Use Chrome DevTools for debugging"
+- ❌ "You should create a directory"
+- ❌ "We will launch research agents"
+
+**Be specific and actionable:**
+- ✅ "Run `bun dev` to start server"
+- ✅ "Execute `/conduct-research` slash command"
+- ❌ "Start the application"
+- ❌ "Do research"
+
+**Reference, don't duplicate:**
+- ✅ "Use contacts from global context"
+- ✅ "Follow global security rules"
+- ✅ "See CLAUDE.md for full methodology"
+- ❌ [Copying entire global context into skill]
+
+## 📋 SKILL CREATION WORKFLOW
+
+### Phase 1: Planning
+
+**Questions to answer:**
+1. What problem does this skill solve?
+2. When should it activate? (User phrases)
+3. What tools/commands does it use?
+4. Is it simple or complex?
+5. Does similar skill exist? (Check existing skills)
+6. What resources does it need?
+
+**Decision: Simple vs Complex**
+
+Choose SIMPLE if:
+- Single focused capability
+- < 100 lines of instruction
+- No sub-components needed
+- Quick reference is sufficient
+
+Choose COMPLEX if:
+- Multi-phase workflow
+- Requires extensive methodology
+- Has multiple components
+- Needs deep context documentation
+
+### Phase 2: Structure Creation
+
+**For Simple Skill:**
+```bash
+mkdir -p ${PAI_DIR}/skills/[skill-name]
+# Create SKILL.md only
+```
+
+**For Complex Skill:**
+```bash
+mkdir -p ${PAI_DIR}/skills/[skill-name]
+mkdir -p ${PAI_DIR}/skills/[skill-name]/[component-dirs]
+# Create SKILL.md, CLAUDE.md, and component files
+```
+
+### Phase 3: Content Writing
+
+**Step 1: Write description first**
+- This drives everything else
+- Test by asking: "Would Kai activate this skill for relevant requests?"
+
+**Step 2: Document activation triggers**
+- List explicit user phrases
+- Include natural language variations
+- Think about how users express this need
+
+**Step 3: Write core instructions**
+- Use imperative form
+- Be specific and actionable
+- Include examples
+- Reference deeper resources
+
+**Step 4: Add supporting resources (if complex)**
+- CLAUDE.md for methodology
+- Component files for reusable pieces
+- Templates or examples
+
+### Phase 4: Integration
+
+**Update global context:**
+
+Edit `${PAI_DIR}/global/KAI.md`:
+```markdown
+<available_skills>
+<skill>
+<name>your-new-skill</name>
+<description>Your description here</description>
+<location>user</location>
+</skill>
+</available_skills>
+```
+
+**Verify location:**
+- User-created skills: `<location>user</location>`
+- System skills: `<location>system</location>`
+
+### Phase 5: Testing
+
+**Test activation:**
+1. Use natural language that should trigger skill
+2. Verify skill loads correctly
+3. Check all file references work
+4. Validate against examples
+
+**Test workflow:**
+1. Follow instructions step-by-step
+2. Verify commands execute correctly
+3. Check all tools are available
+4. Validate output matches expectations
+
+### Phase 6: Iteration
+
+**Refine based on:**
+- Actual usage patterns
+- User feedback
+- Tool updates
+- Methodology improvements
+
+**Skills are living documents** - update as needed!
+
+## 🎨 SKILL TEMPLATES
+
+### Template 1: Simple Skill
+
+```markdown
+---
+name: skill-name
+description: Clear description of what skill does and when to use. USE WHEN user says 'trigger phrase', 'another phrase', or requests this capability.
+---
+
+# Skill Name
+
+## When to Activate This Skill
+- User requests X
+- User says "trigger phrase"
+- Task involves Y capability
+
+## Core Workflow
+
+[Main instructions in imperative form]
+
+### Key Command
+\`\`\`bash
+command-example --flag value
+\`\`\`
+
+## Common Patterns
+
+### Pattern 1
+[Instructions for common use case]
+
+### Pattern 2
+[Instructions for another use case]
+
+## Examples
+
+\`\`\`bash
+# Example 1: Basic usage
+command "input" -p pattern
+
+# Example 2: Advanced usage
+command -u "url" -p pattern | process
+\`\`\`
+
+## Supplementary Resources
+For advanced usage: `read ${PAI_DIR}/docs/[resource].md`
+```
+
+### Template 2: Complex Skill
+
+**SKILL.md** (Quick Reference):
+```markdown
+---
+name: skill-name
+description: Comprehensive description. USE WHEN triggers include 'phrase 1', 'phrase 2', and related requests.
+---
+
+# Skill Name
+
+## When to Activate This Skill
+- Trigger condition 1
+- Trigger condition 2
+- Related capability requests
+
+## Core Workflow
+
+### Phase 1: Setup
+[Quick setup instructions]
+
+### Phase 2: Execution
+[Core execution steps]
+
+### Phase 3: Validation
+[Validation steps]
+
+## Key Components
+
+- **Component 1**: Brief description
+- **Component 2**: Brief description
+
+## Default Configuration
+
+[Standard settings or stack]
+
+## Critical Requirements
+
+- Requirement 1 (mandatory)
+- Requirement 2 (mandatory)
+
+## Supplementary Resources
+
+For full methodology: `read ${PAI_DIR}/skills/[name]/CLAUDE.md`
+For components: `read ${PAI_DIR}/skills/[name]/[component]/`
+
+## Available Commands
+
+- `/command-1` - What it does
+- `/command-2` - What it does
+
+## Key Principles
+
+1. Principle 1
+2. Principle 2
+3. Principle 3
+```
+
+**CLAUDE.md** (Comprehensive Guide):
+```markdown
+# Skill Name - Comprehensive Guide
+
+## 🎯 PURPOSE: [HIGH-LEVEL GOAL]
+
+**[Value proposition and core capability]**
+
+This guide covers:
+- [Topic 1]
+- [Topic 2]
+- [Topic 3]
+
+## 📚 WHAT IS [CAPABILITY]?
+
+### Definition
+[Detailed explanation]
+
+### Key Concepts
+- **Concept 1**: Explanation
+- **Concept 2**: Explanation
+
+### [Capability] vs [Alternative]
+[Comparison table or explanation]
+
+## 🏗️ ARCHITECTURE / METHODOLOGY
+
+### [Main Framework]
+[Detailed explanation of methodology]
+
+### Components
+[Detailed component documentation]
+
+## 🔧 [MAIN WORKFLOW SECTION]
+
+### Phase 1: [Step Name]
+**Command:** `/command-name`
+
+[Detailed instructions]
+
+**Output:** [What gets created]
+
+### Phase 2: [Step Name]
+[Repeat for each phase]
+
+## 💡 BEST PRACTICES
+
+### [Category 1]
+- Practice 1
+- Practice 2
+
+### [Category 2]
+- Practice 1
+- Practice 2
+
+## 🛠️ TOOLS AND TECHNOLOGIES
+
+[Detailed tool documentation]
+
+## 📊 [ADDITIONAL SECTIONS]
+
+[Any other necessary deep-dive content]
+
+## 🔗 INTEGRATION POINTS
+
+[How this skill integrates with other skills/tools]
+
+## 🚨 CRITICAL WARNINGS
+
+[Important caveats or rules]
+
+## 🎯 KEY PRINCIPLES
+
+1. Principle 1 with detailed explanation
+2. Principle 2 with detailed explanation
+[...]
+```
+
+### Template 3: Skill with Agents
+
+```markdown
+---
+name: skill-name
+description: Capability using specialized agents. Supports parallel execution. USE WHEN...
+---
+
+# Skill Name
+
+## When to Activate This Skill
+- Task requiring agent specialization
+- Complex multi-step workflows
+- Requests for [domain]
+
+## Available Agents
+
+### Agent 1 (Name)
+**Training:** [Specialization]
+**Voice:** [ElevenLabs ID]
+**Configuration:** `${PAI_DIR}/agents/[name].md`
+**Use for:** [When to use this agent]
+
+### Agent 2 (Name)
+[Same structure]
+
+## Execution Workflow
+
+### Single Agent
+[Instructions for single agent use]
+
+### Parallel Agents (Up to 10)
+[Instructions for parallel execution]
+
+**Parallelizable Work:**
+- Independent task type 1
+- Independent task type 2
+
+**Sequential Work:**
+- Dependent task type 1
+- Task requiring shared state
+
+## Agent Collaboration Protocol
+
+[How agents work together]
+
+## Supplementary Resources
+For agent details: `read ${PAI_DIR}/agents/[name].md`
+For methodology: `read ${PAI_DIR}/skills/[name]/CLAUDE.md`
+```
+
+## 🎯 REAL-WORLD EXAMPLES
+
+### Example 1: Simple Skill (fabric-patterns)
+
+**Analysis:**
+- ✅ Single capability (process content with patterns)
+- ✅ Straightforward workflow
+- ✅ No sub-components needed
+- ✅ Only SKILL.md required
+
+**Structure:**
+```
+skills/fabric-patterns/
+└── SKILL.md
+```
+
+**Key features:**
+- Clear "When to Activate" section
+- Lists common patterns
+- Provides concrete examples
+- References external docs only
+
+### Example 2: Complex Skill (development)
+
+**Analysis:**
+- ✅ Multi-phase methodology (spec-kit)
+- ✅ Multiple components (primary-stack, style-guide)
+- ✅ Extensive context needed
+- ✅ Requires SKILL.md + CLAUDE.md + components
+
+**Structure:**
+```
+skills/development/
+├── SKILL.md # Quick ref
+├── CLAUDE.md # 500+ lines of methodology
+├── primary-stack/ # Reusable components
+│ ├── CLAUDE.md
+│ ├── auth-setup.md
+│ ├── stripe-billing.md
+│ └── business-metrics.md
+└── style-guide/ # UI patterns
+ └── [resources]
+```
+
+**Key features:**
+- SKILL.md = quick start (69 lines)
+- CLAUDE.md = full guide (500+ lines)
+- Progressive disclosure
+- Component organization
+- References slash commands
+
+### Example 3: Skill with Agents (research)
+
+**Analysis:**
+- ✅ Uses multiple specialized agents
+- ✅ Supports parallel execution
+- ✅ Orchestrates complex workflows
+- ✅ Simple SKILL.md sufficient
+
+**Structure:**
+```
+skills/research/
+└── SKILL.md
+```
+
+**Key features:**
+- Lists available agents
+- Explains parallel execution
+- References slash command for orchestration
+- Clear activation triggers
+- Speed benefits highlighted
+
+## 🔧 NAMING CONVENTIONS
+
+### Skill Name (Directory & Metadata)
+- **Format**: `lowercase-with-hyphens`
+- **Length**: 2-4 words typically
+- **Style**: Descriptive, not generic
+
+**Good examples:**
+- `chrome-devtools` (specific tool)
+- `ai-image-generation` (clear capability)
+- `fabric-patterns` (tool + method)
+- `web-scraping` (clear domain)
+
+**Bad examples:**
+- `testing` (too generic)
+- `helper` (meaningless)
+- `chrome_devtools` (underscores)
+- `ChromeDevTools` (capitals)
+
+### File Names
+
+**SKILL.md**: Always exactly this
+**CLAUDE.md**: Always exactly this for comprehensive guides
+**Other files**: Use descriptive names with context:
+- `auth-setup.md`
+- `stripe-billing.md`
+- `visual-tdd-workflow.md`
+
+## 📊 QUALITY CHECKLIST
+
+### Before Creating Skill
+
+- [ ] Clearly defined purpose
+- [ ] Identified activation triggers
+- [ ] Checked for existing similar skills
+- [ ] Determined simple vs complex structure
+- [ ] Listed required tools/commands
+- [ ] Identified supporting resources needed
+
+### SKILL.md Quality
+
+- [ ] Complete YAML frontmatter (name, description)
+- [ ] Description includes activation triggers
+- [ ] "When to Activate" section present
+- [ ] Instructions in imperative form
+- [ ] Concrete examples included
+- [ ] References to deeper resources (if applicable)
+- [ ] No duplication of global context
+- [ ] Tested with realistic user requests
+
+### CLAUDE.md Quality (if complex)
+
+- [ ] Clear purpose statement at top
+- [ ] Comprehensive methodology documented
+- [ ] All components explained
+- [ ] Examples and patterns included
+- [ ] Best practices section
+- [ ] Integration points documented
+- [ ] Critical warnings highlighted
+- [ ] Consistent formatting throughout
+
+### Integration Quality
+
+- [ ] Added to global KAI.md available_skills
+- [ ] All file references work correctly
+- [ ] Slash commands exist (if referenced)
+- [ ] MCP tools available (if referenced)
+- [ ] Agents configured (if referenced)
+- [ ] Templates present (if referenced)
+
+### Testing Validation
+
+- [ ] Skill activates with natural language
+- [ ] All instructions execute correctly
+- [ ] Examples work as documented
+- [ ] File references resolve
+- [ ] Commands/tools are available
+- [ ] Workflow completes successfully
+
+## 🚀 ADVANCED PATTERNS
+
+### Pattern 1: Skill Composition
+
+Skills can reference other skills:
+
+```markdown
+## Related Skills
+
+This skill works with:
+- **development**: For implementation
+- **research**: For technology selection
+- **chrome-devtools**: For visual testing
+```
+
+### Pattern 2: Conditional Loading
+
+Use progressive disclosure:
+
+```markdown
+## Quick Start
+[Minimal instructions]
+
+## Advanced Usage
+For comprehensive methodology: `read ${PAI_DIR}/skills/[name]/CLAUDE.md`
+
+## Component Details
+For [specific component]: `read ${PAI_DIR}/skills/[name]/[component]/`
+```
+
+### Pattern 3: Agent Integration
+
+Skills can define agent collaboration:
+
+```markdown
+## Agent Workflow
+
+1. **Architect** - Planning phases (can parallelize user stories)
+2. **Engineer** - Implementation phases (can parallelize [P] tasks)
+3. **Designer** - UX specifications (parallel with architect)
+
+Maximum 10 parallel agents per phase.
+```
+
+### Pattern 4: Tool Orchestration
+
+Skills can orchestrate multiple tools:
+
+```markdown
+## Tool Stack
+
+1. **Ref MCP** - Documentation lookup
+2. **Chrome DevTools MCP** - Visual testing
+3. **Bash** - Command execution
+4. **Grep/Glob** - Code search
+
+Execute in sequence or parallel as appropriate.
+```
+
+## 📚 ANTHROPIC SKILL STANDARDS
+
+### Key Principles from Anthropic
+
+1. **Modular Design**: Self-contained packages
+2. **Progressive Disclosure**: Load context as needed
+3. **Clear Activation**: Description drives discovery
+4. **Executable Instructions**: Imperative form
+5. **Resource Organization**: Scripts, references, assets
+6. **Version Control**: Track changes, iterate
+
+### Anthropic Skill Categories
+
+**Creative & Design:**
+- algorithmic-art, canvas-design, slack-gif-creator
+
+**Development & Technical:**
+- artifacts-builder, mcp-builder, webapp-testing
+
+**Enterprise & Communication:**
+- brand-guidelines, internal-comms, theme-factory
+
+**Meta Skills:**
+- skill-creator, template-skill
+
+**PAI follows same categorization principle but with personal infrastructure focus.**
+
+## 🔗 INTEGRATION WITH PAI INFRASTRUCTURE
+
+### Global Context Inheritance
+
+Skills automatically have access to:
+- Contacts (from KAI.md)
+- Security rules (from KAI.md)
+- Response format (from KAI.md)
+- Stack preferences (from KAI.md)
+- MCP servers (from .mcp.json)
+- Agents (from agents directory)
+- Commands (from commands directory)
+
+**Don't duplicate - reference!**
+
+### Slash Command Integration
+
+Skills often reference slash commands:
+
+```markdown
+## How to Execute
+
+**Execute the `/command-name` slash command**, which handles:
+1. Step 1
+2. Step 2
+3. Step 3
+```
+
+**Relationship:**
+- Skill = Knowledge + Context
+- Command = Executable Workflow
+- Skill activates → Command executes
+
+### Agent Integration
+
+Skills can specify agent usage:
+
+```markdown
+## Use Trained Agents
+
+For this skill, use:
+- **Agent Type**: Purpose
+- **Configuration**: `${PAI_DIR}/agents/[name].md`
+- **Parallel Execution**: Up to N agents for [work type]
+```
+
+### UFC Integration
+
+Skills inherit Universal Output Capture:
+- All execution automatically logged
+- History searchable via commands
+- Learnings captured automatically
+- No manual documentation needed
+
+## 🎯 SKILL MAINTENANCE
+
+### When to Update Skills
+
+- Tool versions change (e.g., new MCP capabilities)
+- Methodology improves (e.g., better workflows discovered)
+- User feedback reveals gaps
+- Integration points change
+- New components added
+
+### Version Control
+
+Track skill changes in git:
+```bash
+git add skills/[skill-name]/
+git commit -m "Update [skill-name]: [what changed]"
+```
+
+### Deprecation
+
+If skill becomes obsolete:
+1. Mark as deprecated in description
+2. Point to replacement skill
+3. Don't delete immediately (grace period)
+4. Remove from KAI.md available_skills
+
+## 💡 KEY PRINCIPLES
+
+1. **Progressive disclosure**: SKILL.md = quick ref, CLAUDE.md = deep dive
+2. **Clear activation**: Description enables intent matching
+3. **Executable instructions**: Imperative form, actionable steps
+4. **No duplication**: Reference global context, don't copy
+5. **Self-contained**: Work independently with clear dependencies
+6. **Template-driven**: Use templates for consistency
+7. **Test thoroughly**: Validate with real user requests
+8. **Iterate constantly**: Skills are living documents
+9. **Document clearly**: Future you will thank you
+10. **Follow standards**: Consistency across all skills
+
+## 🚨 COMMON MISTAKES TO AVOID
+
+### Mistake 1: Vague Descriptions
+❌ "A skill for web development"
+✅ "Build applications using spec-kit methodology with TDD..."
+
+### Mistake 2: Duplicating Global Context
+❌ Copying contacts list into every skill
+✅ "Use contacts from global context"
+
+### Mistake 3: Missing Activation Triggers
+❌ No "USE WHEN" phrases
+✅ "USE WHEN user says 'do research', 'investigate'..."
+
+### Mistake 4: Imperative Form Violations
+❌ "You should create a directory"
+✅ "Create directory structure"
+
+### Mistake 5: Over-complicating Simple Skills
+❌ Creating CLAUDE.md for 20-line skill
+✅ Keep it simple with just SKILL.md
+
+### Mistake 6: Under-documenting Complex Skills
+❌ 500-line SKILL.md with no CLAUDE.md
+✅ Split into SKILL.md (quick ref) + CLAUDE.md (full)
+
+### Mistake 7: Broken References
+❌ Referencing files that don't exist
+✅ Verify all paths before committing
+
+### Mistake 8: No Examples
+❌ Only abstract instructions
+✅ Include concrete usage examples
+
+### Mistake 9: Skipping Testing
+❌ Committing without validation
+✅ Test with natural language first
+
+### Mistake 10: Forgetting KAI.md Update
+❌ Creating skill but not adding to available_skills
+✅ Always update global context
+
+## 🎓 LEARNING FROM EXISTING SKILLS
+
+### Study These Examples
+
+**For simple skills:**
+- `fabric-patterns` - Clean, focused, complete
+- `youtube-extraction` - Single capability, clear workflow
+- `email` - Straightforward with important rules
+
+**For complex skills:**
+- `development` - Multi-phase methodology, components
+- `website` - Full lifecycle management
+- `consulting` - Professional service delivery
+
+**For agent skills:**
+- `research` - Parallel agent execution
+- `development` - Agent collaboration protocol
+
+**Read their code, understand their patterns, apply to your skills.**
+
+## 🔧 TROUBLESHOOTING
+
+### Skill Won't Activate
+
+**Check:**
+1. Is it in KAI.md available_skills?
+2. Does description match user's intent?
+3. Are activation triggers clear?
+4. Test with exact trigger phrases
+
+### Instructions Don't Work
+
+**Check:**
+1. Are all referenced files present?
+2. Are commands/tools available?
+3. Are paths correct?
+4. Test step-by-step manually
+
+### Complex Skill Overwhelming
+
+**Solution:**
+1. Split into SKILL.md + CLAUDE.md
+2. Create component subdirectories
+3. Use progressive disclosure
+4. Reference rather than include
+
+### Skill Too Generic
+
+**Solution:**
+1. Narrow the scope
+2. Add specific trigger phrases
+3. Define clear boundaries
+4. Mention specific tools/methods
+
+## 📚 FURTHER READING
+
+### Anthropic Resources
+- Official skills repository: https://github.com/anthropics/skills
+- skill-creator: Study the meta-skill
+- template-skill: Basic structure template
+- Document skills: Advanced examples (PDF, DOCX, etc.)
+
+### PAI Resources
+- `${PAI_DIR}/global/KAI.md` - Global context and available_skills
+- `${PAI_DIR}/agents/` - Agent configurations
+- `${PAI_DIR}/commands/` - Slash commands
+- `${PAI_DIR}/docs/` - MCP and tool documentation
+
+### Testing Your Skills
+- Launch new Claude session to test clean state
+- Use various phrasings of activation triggers
+- Verify all file references work
+- Check commands execute correctly
+- Validate against examples
+
+---
+
+## 🎯 FINAL CHECKLIST: BEFORE DECLARING SKILL COMPLETE
+
+- [ ] **Purpose** - Crystal clear what skill does
+- [ ] **Structure** - Correct simple/complex pattern
+- [ ] **Description** - Includes activation triggers
+- [ ] **Instructions** - Imperative form, actionable
+- [ ] **Examples** - Concrete usage scenarios
+- [ ] **References** - All paths work
+- [ ] **Integration** - Added to KAI.md
+- [ ] **Testing** - Validated with user phrases
+- [ ] **Documentation** - CLAUDE.md if complex
+- [ ] **Templates** - Included if applicable
+- [ ] **Quality** - Reviewed against checklist
+- [ ] **Commit** - Version controlled
+
+**If all checked, skill is ready to use! 🚀**
diff --git a/PAI_DIRECTORY/skills/create-skill/SKILL.md b/PAI_DIRECTORY/skills/create-skill/SKILL.md
new file mode 100644
index 00000000..e6ce801e
--- /dev/null
+++ b/PAI_DIRECTORY/skills/create-skill/SKILL.md
@@ -0,0 +1,137 @@
+---
+name: create-skill
+description: Guide for creating new skills in Kai's personal AI infrastructure. Use when user wants to create, update, or structure a new skill that extends capabilities with specialized knowledge, workflows, or tool integrations. Follows both Anthropic skill standards and PAI-specific patterns.
+---
+
+# Create Skill - Skill Creation Framework
+
+## When to Activate This Skill
+- "Create a new skill for X"
+- "Build a skill that does Y"
+- "Add a skill for Z"
+- "Update/improve existing skill"
+- "Structure a skill properly"
+- User wants to extend Kai's capabilities
+
+## Core Skill Creation Workflow
+
+### Step 1: Understand the Purpose
+Ask these questions:
+- **What does this skill do?** (Clear, specific purpose)
+- **When should it activate?** (Trigger conditions)
+- **What tools/commands does it use?** (Dependencies)
+- **Is it simple or complex?** (Determines structure)
+
+### Step 2: Choose Skill Type
+
+**Simple Skill** (SKILL.md only):
+- Single focused capability
+- Minimal dependencies
+- Quick reference suffices
+- Examples: fabric-patterns, youtube-extraction
+
+**Complex Skill** (SKILL.md + CLAUDE.md + supporting files):
+- Multi-step workflows
+- Extensive context needed
+- Multiple sub-components
+- Examples: development, website, consulting
+
+### Step 3: Create Directory Structure
+
+```bash
+# Simple skill
+${PAI_DIR}/skills/[skill-name]/
+└── SKILL.md
+
+# Complex skill
+${PAI_DIR}/skills/[skill-name]/
+├── SKILL.md # Quick reference
+├── CLAUDE.md # Full context
+└── [subdirectories]/ # Supporting resources
+```
+
+### Step 4: Write SKILL.md (Required)
+
+Use this structure:
+```markdown
+---
+name: skill-name
+description: Clear description of what skill does and when to use it. Should match activation triggers.
+---
+
+# Skill Name
+
+## When to Activate This Skill
+- Trigger condition 1
+- Trigger condition 2
+- User phrase examples
+
+## [Main Content Sections]
+- Core workflow
+- Key commands
+- Examples
+- Best practices
+
+## Supplementary Resources
+For detailed context: `read ${PAI_DIR}/skills/[skill-name]/CLAUDE.md`
+```
+
+### Step 5: Write CLAUDE.md (If Complex)
+
+Include:
+- Comprehensive methodology
+- Detailed workflows
+- Component documentation
+- Advanced usage patterns
+- Integration instructions
+- Troubleshooting guides
+
+### Step 6: Add to Global Context
+
+Update `${PAI_DIR}/global/KAI.md` available_skills section to include the new skill so it shows up in the system prompt.
+
+### Step 7: Test the Skill
+
+1. Trigger it with natural language
+2. Verify it loads correctly
+3. Check all references work
+4. Validate against examples
+
+## Skill Naming Conventions
+
+- **Lowercase with hyphens**: `create-skill`, `web-scraping`
+- **Descriptive, not generic**: `fabric-patterns` not `text-processing`
+- **Action or domain focused**: `ai-image-generation`, `chrome-devtools`
+
+## Description Best Practices
+
+Your description should:
+- Clearly state what the skill does
+- Include trigger phrases (e.g., "USE WHEN user says...")
+- Mention key tools/methods used
+- Be concise but complete (1-3 sentences)
+
+**Good examples:**
+- "Multi-source comprehensive research using perplexity-researcher, claude-researcher, and gemini-researcher agents. Launches up to 10 parallel research agents for fast results. USE WHEN user says 'do research', 'research X', 'find information about'..."
+- "Chrome DevTools MCP for web application debugging, visual testing, and browser automation. The ONLY acceptable way to debug web apps - NEVER use curl, fetch, or wget."
+
+## Templates Available
+
+- `simple-skill-template.md` - For straightforward capabilities
+- `complex-skill-template.md` - For multi-component skills
+- `skill-with-agents-template.md` - For skills using sub-agents
+
+## Supplementary Resources
+
+For complete guide with examples: `read ${PAI_DIR}/skills/create-skill/CLAUDE.md`
+For templates: `ls ${PAI_DIR}/skills/create-skill/templates/`
+
+## Key Principles
+
+1. **Progressive disclosure**: SKILL.md = quick reference, CLAUDE.md = deep dive
+2. **Clear activation triggers**: User should know when skill applies
+3. **Executable instructions**: Imperative/infinitive form (verb-first)
+4. **Context inheritance**: Skills inherit global context automatically
+5. **No duplication**: Reference global context, don't duplicate it
+6. **Self-contained**: Skill should work independently
+7. **Discoverable**: Description enables Kai to match user intent
diff --git a/PAI_DIRECTORY/skills/create-skill/templates/CLAUDE-template.md b/PAI_DIRECTORY/skills/create-skill/templates/CLAUDE-template.md
new file mode 100644
index 00000000..2d68e0ea
--- /dev/null
+++ b/PAI_DIRECTORY/skills/create-skill/templates/CLAUDE-template.md
@@ -0,0 +1,353 @@
+# Skill Name - Comprehensive Guide
+
+## 🎯 PURPOSE: [HIGH-LEVEL GOAL IN CAPS]
+
+**[Value proposition - what this skill enables and why it matters]**
+
+This guide covers:
+- [Major topic 1]
+- [Major topic 2]
+- [Major topic 3]
+- [Major topic 4]
+
+## 📚 WHAT IS [MAIN CONCEPT]?
+
+### Definition
+
+[Detailed explanation of the core concept, capability, or methodology]
+
+### Key Concepts
+
+- **Concept 1**: Detailed explanation
+- **Concept 2**: Detailed explanation
+- **Concept 3**: Detailed explanation
+
+### [Main Approach] vs [Alternative Approach]
+
+**The Problem [Alternative] Solves:**
+- Problem 1
+- Problem 2
+- Problem 3
+
+**Why [Main Approach] Is Different:**
+- ✅ Advantage 1 with explanation
+- ✅ Advantage 2 with explanation
+- ✅ Advantage 3 with explanation
+- ✅ Advantage 4 with explanation
+
+**[Alternative] documentation when you have [better method] = [problem statement].**
+
+## 🏗️ ARCHITECTURE / METHODOLOGY
+
+### Overall Framework
+
+[Detailed explanation of the methodology or architecture]
+
+### Core Components
+
+**Component 1:**
+- Purpose
+- How it works
+- When to use
+- Integration points
+
+**Component 2:**
+[Same structure]
+
+### System Diagram / Workflow Overview
+
+```
+[ASCII diagram or structured breakdown of system]
+```
+
+## 🚀 THE [MAIN WORKFLOW NAME]
+
+**[Brief description of the workflow approach]**
+
+### Phase 0: [Setup/Foundation]
+**Command:** `/command-name` (if applicable)
+
+[Detailed instructions for this phase]
+
+**Objectives:**
+- Objective 1
+- Objective 2
+- Objective 3
+
+**Output:**
+- Output file 1 - Description
+- Output file 2 - Description
+- Automatically captured to [location]
+
+**Notes:** [Important notes about this phase]
+
+### Phase 1: [Next Phase Name]
+**Command:** `/command-name`
+
+[Detailed instructions]
+
+**Objectives:**
+- Objective 1
+- Objective 2
+
+**Output:** [What gets created]
+
+### Phase 2: [Next Phase Name]
+[Continue for all phases]
+
+**🏁 Goal: [Summary of what the complete workflow achieves]**
+
+## 🔧 OPTIONAL [ENHANCEMENT] COMMANDS
+
+These enhance [aspect] throughout the process:
+
+### `/command-name-1`
+**When:** [When to use this command]
+- Purpose and benefits
+- What it does
+- How it improves results
+
+### `/command-name-2`
+**When:** [When to use this command]
+- Purpose and benefits
+- What it does
+- How it improves results
+
+## 🎯 BEST PRACTICES
+
+### [Category 1]
+
+- **Practice 1** - Detailed explanation with rationale
+- **Practice 2** - Detailed explanation with rationale
+- **Practice 3** - Detailed explanation with rationale
+
+### [Category 2]
+
+- **Practice 1** - Detailed explanation
+- **Practice 2** - Detailed explanation
+
+### [Category 3]
+
+- **Practice 1** - Detailed explanation
+- **Practice 2** - Detailed explanation
+
+## 🛠️ TECHNOLOGY STACK / TOOLS
+
+### Core Technology
+
+[Detailed description of primary technology]
+
+**Key features:**
+- Feature 1
+- Feature 2
+- Feature 3
+
+### Supporting Tools
+
+**Tool 1:**
+- Purpose
+- Integration
+- Usage
+
+**Tool 2:**
+[Same structure]
+
+### Configuration
+
+[Standard configuration or setup instructions]
+
+## 📊 [ADDITIONAL MAJOR SECTION]
+
+[Deep dive into important aspect]
+
+### Subsection 1
+
+[Detailed content]
+
+### Subsection 2
+
+[Detailed content]
+
+## 🤖 [AGENTS / AUTOMATION] (if applicable)
+
+### Agent 1 (Name)
+
+**Training:** [Specialization]
+**Voice:** [ID]
+**Configuration:** `path`
+**Parallel Execution:** [Capabilities]
+
+**Responsibilities:**
+- Phase 1: [What agent does]
+- Phase 2: [What agent does]
+
+[Continue for each agent]
+
+### Agent Collaboration Protocol
+
+[How agents work together]
+
+**Workflow Handoff:**
+1. Agent 1 completes [work]
+2. Agent 2 validates [artifacts]
+3. Communication protocol
+4. Parallel execution rules
+
+## 🔗 INTEGRATION POINTS
+
+### With Other Skills
+
+- **Skill 1**: How they integrate
+- **Skill 2**: How they integrate
+
+### With Tools
+
+- **Tool 1**: Integration details
+- **Tool 2**: Integration details
+
+### With Infrastructure
+
+[How this skill integrates with PAI infrastructure]
+
+## 🚨 CRITICAL WARNINGS
+
+### Warning Category 1
+
+**Rule:** [Critical rule]
+
+**Rationale:** [Why this matters]
+
+**Consequences of violation:**
+- Consequence 1
+- Consequence 2
+
+### Warning Category 2
+
+[Same structure]
+
+## 💡 CORE PRINCIPLES
+
+1. **Principle 1** - Detailed explanation with examples and rationale
+2. **Principle 2** - Detailed explanation
+3. **Principle 3** - Detailed explanation
+[Continue for all principles]
+
+## 🎓 EXAMPLES AND PATTERNS
+
+### Example 1: [Scenario Name]
+
+**Context:** [Situation description]
+
+**Approach:**
+```
+Step-by-step walkthrough with commands/code
+```
+
+**Result:** [What was achieved]
+
+**Lessons:** [What to learn from this]
+
+### Example 2: [Scenario Name]
+[Same structure]
+
+## 📈 SUCCESS METRICS / VALIDATION
+
+### How to Measure [Quality]
+
+- Metric 1: Target value
+- Metric 2: Target value
+- Metric 3: Target value
+
+### Validation Checklist
+
+- [ ] Check 1
+- [ ] Check 2
+- [ ] Check 3
+
+## 🔧 TROUBLESHOOTING
+
+### Problem 1: [Common Issue]
+
+**Symptoms:**
+- Symptom 1
+- Symptom 2
+
+**Diagnosis:**
+[How to identify the problem]
+
+**Solution:**
+[Step-by-step fix]
+
+### Problem 2: [Common Issue]
+[Same structure]
+
+## 📚 SUPPLEMENTARY RESOURCES
+
+### Internal Resources
+- Path to related documentation
+- Path to components
+- Path to examples
+
+### External Resources
+- Official documentation links
+- Community resources
+- Learning materials
+
+## 🎯 QUICK REFERENCE
+
+### Common Commands
+
+```bash
+# Task 1
+command-sequence
+
+# Task 2
+command-sequence
+
+# Task 3
+command-sequence
+```
+
+### Decision Tree
+
+**When to use approach A:**
+- Condition 1
+- Condition 2
+
+**When to use approach B:**
+- Condition 1
+- Condition 2
+
+## 📊 APPENDIX
+
+### Glossary
+
+- **Term 1**: Definition
+- **Term 2**: Definition
+
+### Configuration Reference
+
+[Detailed configuration options]
+
+### API Reference
+
+[If applicable - API documentation]
+
+---
+
+## 🎯 SUMMARY
+
+**Key Takeaways:**
+1. Takeaway 1
+2. Takeaway 2
+3. Takeaway 3
+
+**Remember:**
+- Critical point 1
+- Critical point 2
+- Critical point 3
+
+**Next Steps:**
+- Action 1
+- Action 2
+- Action 3
diff --git a/PAI_DIRECTORY/skills/create-skill/templates/README.md b/PAI_DIRECTORY/skills/create-skill/templates/README.md
new file mode 100644
index 00000000..6a986978
--- /dev/null
+++ b/PAI_DIRECTORY/skills/create-skill/templates/README.md
@@ -0,0 +1,170 @@
+# Skill Templates
+
+This directory contains templates for creating new skills in Kai's personal AI infrastructure.
+
+## Available Templates
+
+### 1. simple-skill-template.md
+**Use for:**
+- Single focused capability
+- Straightforward workflows
+- Minimal context needed (< 100 lines)
+- Quick reference is sufficient
+
+**Examples from PAI:**
+- fabric-patterns
+- youtube-extraction
+- email
+
+**Structure:**
+- YAML frontmatter (name, description)
+- When to Activate section
+- Core workflow
+- Commands/tools
+- Examples
+- Supplementary resources
+
+### 2. complex-skill-template.md
+**Use for:**
+- Multi-phase workflows
+- Extensive methodology
+- Multiple components
+- Requires deep context
+
+**Examples from PAI:**
+- development (with CLAUDE.md, primary-stack, style-guide)
+- website (full lifecycle management)
+- consulting (professional services)
+
+**Structure:**
+- YAML frontmatter
+- When to Activate section
+- Core workflow (multi-phase)
+- Key components
+- Configuration/stack
+- Critical requirements
+- Available commands
+- Key principles
+
+**Note:** Complex skills should have:
+- SKILL.md (quick reference - use this template)
+- CLAUDE.md (comprehensive guide - use CLAUDE-template.md)
+- Supporting subdirectories as needed
+
+### 3. skill-with-agents-template.md
+**Use for:**
+- Skills that use specialized agents
+- Workflows requiring agent expertise
+- Parallel execution capabilities
+- Agent collaboration protocols
+
+**Examples from PAI:**
+- research (parallel researcher agents)
+- development (architect + engineer agents)
+
+**Structure:**
+- YAML frontmatter
+- When to Activate section
+- Available agents (with training, voice, config)
+- Execution workflow (single vs parallel)
+- Agent collaboration protocol
+- Speed benefits
+- Supplementary resources
+
+### 4. CLAUDE-template.md
+**Use for:**
+- Comprehensive documentation for complex skills
+- Deep methodology guides
+- Complete system documentation
+
+**Pairs with:** complex-skill-template.md
+
+**Structure:**
+- Purpose statement
+- What is [concept]?
+- Architecture/methodology
+- Complete workflow (all phases)
+- Best practices
+- Technology stack/tools
+- Integration points
+- Critical warnings
+- Core principles
+- Examples and patterns
+- Troubleshooting
+- Quick reference
+
+## How to Use These Templates
+
+### Step 1: Choose Template
+Decide if your skill is:
+- Simple → simple-skill-template.md
+- Complex → complex-skill-template.md + CLAUDE-template.md
+- Agent-based → skill-with-agents-template.md
+
+### Step 2: Copy Template
+```bash
+cp ${PAI_DIR}/skills/create-skill/templates/[template-name].md \
+ ${PAI_DIR}/skills/[new-skill-name]/SKILL.md
+```
+
+### Step 3: Customize
+Replace all placeholders:
+- `[skill-name]` → actual skill name
+- `[description]` → actual description
+- `[trigger phrase]` → actual trigger phrases
+- All bracketed content → actual content
+
+### Step 4: Write Content
+Follow the structure, fill in all sections with actual content.
+
+### Step 5: Add to Global Context
+Update `${PAI_DIR}/global/KAI.md` available_skills section.
+
+### Step 6: Test
+Test activation with natural language phrases.
+
+## Template Placeholders
+
+Look for these patterns and replace them:
+
+- `[skill-name]` - The actual skill name
+- `[description]` - Skill description
+- `[trigger phrase]` - User phrases that activate skill
+- `[capability]` - What the skill does
+- `[domain]` - Area of expertise
+- `[Main Content Sections]` - Section headings
+- `[Phase Name]` - Workflow phase names
+- `[Action]` - Specific actions
+- `[Use Case Name]` - Example scenario names
+- `[tool]`, `[command]`, `[resource]` - Actual tool/command/resource names
+- `[Component]` - Actual component names
+- `[HIGH-LEVEL GOAL]` - Purpose statement
+
+## Validation Checklist
+
+After using a template, verify:
+- [ ] All `[bracketed placeholders]` replaced
+- [ ] YAML frontmatter complete (name, description)
+- [ ] Description includes activation triggers
+- [ ] "When to Activate" section filled
+- [ ] Instructions in imperative form
+- [ ] Concrete examples included
+- [ ] File paths are correct
+- [ ] References work (if any)
+- [ ] Added to KAI.md
+- [ ] Tested with user phrases
+
+## Common Mistakes
+
+1. **Forgetting placeholders** - Search for `[` to find all
+2. **Keeping template examples** - Replace with actual content
+3. **Wrong template choice** - Simple skills don't need complex template
+4. **Missing description triggers** - Add "USE WHEN" phrases
+5. **Not testing** - Always test with natural language
+
+## Further Reading
+
+- Complete guide: `read ${PAI_DIR}/skills/create-skill/CLAUDE.md`
+- Quick reference: `read ${PAI_DIR}/skills/create-skill/SKILL.md`
+- Example skills: `ls ${PAI_DIR}/skills/`
+- Anthropic examples: https://github.com/anthropics/skills
diff --git a/PAI_DIRECTORY/skills/create-skill/templates/complex-skill-template.md b/PAI_DIRECTORY/skills/create-skill/templates/complex-skill-template.md
new file mode 100644
index 00000000..8ef45032
--- /dev/null
+++ b/PAI_DIRECTORY/skills/create-skill/templates/complex-skill-template.md
@@ -0,0 +1,105 @@
+---
+name: skill-name
+description: Comprehensive description. Mention key methods and tools. USE WHEN user says 'trigger phrase 1', 'trigger phrase 2', or requests related capabilities.
+---
+
+# Skill Name
+
+## When to Activate This Skill
+- Building/creating [domain] applications
+- Implementing [capability]
+- User requests [specific feature]
+- Working with [technology stack]
+- [Domain]-related tasks
+
+## Core Workflow
+
+### Phase 1: [Setup/Initialization]
+**Command:** `/command-name` (if applicable)
+
+[Quick setup instructions]
+
+**Key actions:**
+- Action 1
+- Action 2
+- Action 3
+
+### Phase 2: [Main Work]
+**Command:** `/command-name` (if applicable)
+
+[Core execution steps]
+
+**Key actions:**
+- Action 1
+- Action 2
+- Action 3
+
+### Phase 3: [Validation/Completion]
+**Command:** `/command-name` (if applicable)
+
+[Validation and completion steps]
+
+**Key actions:**
+- Action 1
+- Action 2
+- Action 3
+
+## Key Components
+
+- **Component 1**: Brief description and purpose
+- **Component 2**: Brief description and purpose
+- **Component 3**: Brief description and purpose
+
+## Default Configuration / Stack
+
+Standard setup for this skill:
+- Technology 1
+- Technology 2
+- Technology 3
+- Tool 1 (not Tool 2)
+- Package manager preference
+
+## Critical Requirements
+
+- **Requirement 1** (MANDATORY) - Explanation
+- **Requirement 2** (MANDATORY) - Explanation
+- **Requirement 3** (MANDATORY) - Explanation
+
+## Supplementary Resources
+
+For full methodology: `read ${PAI_DIR}/skills/[skill-name]/CLAUDE.md`
+For component details: `read ${PAI_DIR}/skills/[skill-name]/[component-dir]/`
+For stack info: `read ${PAI_DIR}/skills/[skill-name]/primary-stack/CLAUDE.md`
+
+## Available Commands
+
+- `/command-1` - What it does and when to use
+- `/command-2` - What it does and when to use
+- `/command-3` - What it does and when to use
+
+## Key Principles
+
+1. Principle 1 with brief explanation
+2. Principle 2 with brief explanation
+3. Principle 3 with brief explanation
+4. Principle 4 with brief explanation
+5. Principle 5 with brief explanation
+
+## Quick Reference
+
+### Common Tasks
+
+**Task 1:**
+```bash
+command-sequence-1
+```
+
+**Task 2:**
+```bash
+command-sequence-2
+```
+
+**Task 3:**
+```bash
+command-sequence-3
+```
diff --git a/PAI_DIRECTORY/skills/create-skill/templates/simple-skill-template.md b/PAI_DIRECTORY/skills/create-skill/templates/simple-skill-template.md
new file mode 100644
index 00000000..064c9334
--- /dev/null
+++ b/PAI_DIRECTORY/skills/create-skill/templates/simple-skill-template.md
@@ -0,0 +1,80 @@
+---
+name: skill-name
+description: Clear description of what skill does and when to use. USE WHEN user says 'trigger phrase', 'another phrase', or requests this capability.
+---
+
+# Skill Name
+
+## When to Activate This Skill
+- User requests X
+- User says "trigger phrase"
+- Task involves Y capability
+- Related intent Z
+
+## Core Workflow
+
+[Main instructions in imperative form - verb-first, actionable steps]
+
+### Step 1: [Action]
+[Specific instructions]
+
+### Step 2: [Action]
+[Specific instructions]
+
+## Key Commands / Tools
+
+```bash
+# Primary command
+command-example --flag value
+
+# Alternative usage
+command-example -u "url" --option
+```
+
+## Common Patterns
+
+### Pattern 1: [Use Case Name]
+[Instructions for this specific use case]
+
+```bash
+# Example command
+command "input" -p pattern
+```
+
+### Pattern 2: [Use Case Name]
+[Instructions for another use case]
+
+```bash
+# Example command
+command -f file.txt --process
+```
+
+## Examples
+
+```bash
+# Example 1: Basic usage
+command "simple input" -p basic
+
+# Example 2: Advanced usage
+cat file.txt | command -p advanced --output result.json
+
+# Example 3: With URL
+command -u "https://example.com" -p pattern
+```
+
+## Options / Configuration
+
+- `--flag1`: What it does
+- `--flag2`: What it does
+- `-p pattern`: Pattern selection
+
+## Supplementary Resources
+
+For advanced usage: `read ${PAI_DIR}/docs/[resource].md`
+For related tools: `read ${PAI_DIR}/docs/[tool].md`
+
+## Key Principles
+
+1. Principle 1 - Brief explanation
+2. Principle 2 - Brief explanation
+3. Principle 3 - Brief explanation
diff --git a/PAI_DIRECTORY/skills/create-skill/templates/skill-with-agents-template.md b/PAI_DIRECTORY/skills/create-skill/templates/skill-with-agents-template.md
new file mode 100644
index 00000000..2c4cd2d5
--- /dev/null
+++ b/PAI_DIRECTORY/skills/create-skill/templates/skill-with-agents-template.md
@@ -0,0 +1,190 @@
+---
+name: skill-name
+description: Capability using specialized agents. Supports parallel execution of up to 10 agents. USE WHEN user requests [domain] work, [capability], or says 'trigger phrase'.
+---
+
+# Skill Name - Agent-Powered Capability
+
+## When to Activate This Skill
+- Task requiring specialized agent expertise
+- Complex multi-step workflows in [domain]
+- Requests for [specific capability]
+- User mentions [domain keywords]
+- Work that benefits from parallel execution
+
+## Available Agents
+
+### Agent 1 Name (Role)
+**Training:** [Specialization and methodology]
+**Voice:** [ElevenLabs Voice ID]
+**Configuration:** `${PAI_DIR}/agents/[agent-name].md`
+**Parallel Execution:** Can launch up to 10 agents for [work type]
+
+**Primary Responsibilities:**
+- Responsibility 1
+- Responsibility 2
+- Responsibility 3
+
+**Use when:**
+- Scenario 1
+- Scenario 2
+- Scenario 3
+
+### Agent 2 Name (Role)
+**Training:** [Specialization and methodology]
+**Voice:** [ElevenLabs Voice ID]
+**Configuration:** `${PAI_DIR}/agents/[agent-name].md`
+**Parallel Execution:** Can launch up to 10 agents for [work type]
+
+**Primary Responsibilities:**
+- Responsibility 1
+- Responsibility 2
+- Responsibility 3
+
+**Use when:**
+- Scenario 1
+- Scenario 2
+- Scenario 3
+
+## Execution Workflow
+
+### Single Agent Execution
+
+**When to use:**
+- Sequential work required
+- Shared state dependencies
+- Foundation work that blocks others
+
+**Process:**
+```markdown
+1. Launch agent with specific task
+2. Agent completes work
+3. Review results
+4. Proceed to next step
+```
+
+### Parallel Agent Execution (Up to 10 Agents)
+
+**When to use:**
+- Independent tasks can run simultaneously
+- No shared state dependencies
+- Maximum throughput needed
+
+**Parallelizable Work:**
+- Independent [work type] 1
+- Independent [work type] 2
+- Independent [work type] 3
+- Multiple [domain objects] without dependencies
+
+**Sequential Work (DO NOT PARALLELIZE):**
+- Tasks with shared state
+- Foundation setup blocking other work
+- Dependencies requiring strict ordering
+- Work requiring synchronization
+
+**How to launch parallel agents:**
+```
+Launch multiple agents in SINGLE message with multiple Task tool calls:
+- Task: "Agent 1 - Work item A"
+- Task: "Agent 1 - Work item B"
+- Task: "Agent 2 - Work item C"
+[Up to 10 total agents]
+```
+
+**Best Practices:**
+1. Identify parallelizable work upfront
+2. Launch all parallel agents in ONE message
+3. Wait for all to complete before proceeding
+4. Use synchronization points between phases
+5. Monitor progress and collect results
+
+## Agent Collaboration Protocol
+
+### Workflow Handoff
+
+1. **Agent 1** completes [phase]:
+ - Deliverable 1
+ - Deliverable 2
+ - All artifacts complete
+ - Can parallelize [work type]
+
+2. **Agent 2** begins [next phase]:
+ - Validates Agent 1 artifacts exist
+ - Asks Agent 1 for clarifications if needed
+ - Can parallelize [work type marked for parallel]
+
+3. **Handoff Protocol:**
+ - Agent 1 announces: "Agent 1 completed [deliverable]"
+ - Agent 2 validates all artifacts
+ - Agent 2 asks questions during work if needed
+ - Both validate [quality standard] at each phase
+
+4. **Parallel Execution Protocol:**
+ - Identify all [parallel markers] in work breakdown
+ - Launch multiple agents in SINGLE message
+ - Maximum 10 agents simultaneously
+ - Wait for all to complete before dependent work
+ - Synchronize at phase boundaries
+
+### Communication Standards
+
+- **Voice notifications:** Agents use ElevenLabs voices for completion
+- **Progress updates:** Every 60-90 seconds during active work
+- **Explicit uncertainty:** Use [NEEDS CLARIFICATION] markers
+- **Quality validation:** Check standards before proceeding
+
+### Collaboration Examples
+
+**Scenario 1: [Common Issue]**
+- Agent 2 encounters [problem] during work
+- Agent 2 asks: "[Specific question]"
+- Agent 1 [resolution approach]
+- Agent 2 proceeds with [next step]
+
+**Scenario 2: [Another Issue]**
+- Agent 1 finds [condition requiring adjustment]
+- Agent 1 documents [justification]
+- Agent 2 reviews and approves/rejects
+- Both update [shared resource] if approved
+
+**Scenario 3: [Technical Challenge]**
+- Agent 2 hits [blocker] not in plan
+- Agent 2 asks: "[Question about approach]"
+- Agent 1 evaluates options, updates [plan/spec]
+- Agent 2 implements updated approach
+
+## Main Workflow
+
+### Step 1: [Initialization]
+[Setup instructions]
+
+### Step 2: [Agent Launch]
+[Instructions for launching appropriate agents]
+
+### Step 3: [Monitoring]
+[How to monitor agent progress]
+
+### Step 4: [Results Collection]
+[How to collect and synthesize agent outputs]
+
+### Step 5: [Validation]
+[How to validate final results]
+
+## Speed Benefits
+
+- ❌ **Old approach:** Sequential execution → [timeframe]
+- ✅ **New approach:** Parallel agents → [improved timeframe]
+
+## Supplementary Resources
+
+For agent configurations: `read ${PAI_DIR}/agents/[agent-name].md`
+For full methodology: `read ${PAI_DIR}/skills/[skill-name]/CLAUDE.md`
+For workflow details: `read ${PAI_DIR}/commands/[command-name].md`
+
+## Key Principles
+
+1. **Parallel when possible** - Maximize throughput with concurrent agents
+2. **Sequential when necessary** - Don't parallelize dependent work
+3. **Clear handoffs** - Explicit communication between agents
+4. **Quality gates** - Validation at each phase transition
+5. **Synchronization points** - Coordinate at phase boundaries
diff --git a/PAI_DIRECTORY/skills/prompting/CLAUDE.md b/PAI_DIRECTORY/skills/prompting/CLAUDE.md
new file mode 100644
index 00000000..9ff53480
--- /dev/null
+++ b/PAI_DIRECTORY/skills/prompting/CLAUDE.md
@@ -0,0 +1,336 @@
+# 🎯 PROMPT ENGINEERING STANDARDS
+
+## Overview
+
+This document defines the standards for creating effective prompts and context documentation for AI agents within the PAI system, based on Anthropic's context engineering principles.
+
+## Core Philosophy
+
+**Context engineering** is the set of strategies for curating and maintaining the optimal set of tokens (information) during LLM inference.
+
+**Primary Goal:** Find the smallest possible set of high-signal tokens that maximize the likelihood of desired outcomes.
+
+## Key Principles
+
+### 1. Context is a Finite Resource
+
+- LLMs have a limited "attention budget"
+- As context length increases, model performance degrades
+- Every token depletes attention capacity
+- Treat context as precious and finite
+
+### 2. Optimize for Signal-to-Noise Ratio
+
+- Prefer clear, direct language over verbose explanations
+- Remove redundant or overlapping information
+- Focus on high-value tokens that drive desired outcomes
+
+### 3. Progressive Information Discovery
+
+- Use lightweight identifiers rather than full data dumps
+- Load detailed information dynamically when needed
+- Allow agents to discover information just-in-time
+
+## Markdown Structure Standards
+
+### Use Markdown Headers for Organization
+
+Organize prompts into distinct semantic sections using standard Markdown headers:
+
+```markdown
+## Background Information
+Essential context about the domain, system, or task
+
+## Instructions
+Clear, actionable directives for the agent
+
+## Examples
+Concrete examples demonstrating expected behavior
+
+## Constraints
+Boundaries, limitations, and requirements
+```
+
+### Section Guidelines
+
+**Background Information:**
+- Provide minimal essential context
+- Avoid historical details unless critical
+- Focus on "what" and "why", not "how we got here"
+
+**Instructions:**
+- Use imperative voice ("Do X", not "You should do X")
+- Be specific and actionable
+- Order by priority or logical flow
+
+**Examples:**
+- Show, don't tell
+- Include both correct and incorrect examples when useful
+- Keep examples concise and representative
+
+**Constraints:**
+- Clearly state boundaries and limitations
+- Specify what NOT to do
+- Define success/failure criteria
+
+## Writing Style Guidelines
+
+### Clarity Over Completeness
+
+✅ **Good:**
+```markdown
+## Instructions
+- Validate user input before processing
+- Return errors in JSON format
+- Log all failed attempts
+```
+
+❌ **Bad:**
+```markdown
+## Instructions
+You should always make sure to validate the user's input before you process it because invalid input could cause problems. When you encounter errors, you should return them in JSON format so that the calling system can parse them properly. It's also important to log all failed attempts so we can debug issues later.
+```
+
+### Be Direct and Specific
+
+✅ **Good:**
+```markdown
+Use the `calculate_tax` tool with amount and jurisdiction parameters.
+```
+
+❌ **Bad:**
+```markdown
+You might want to consider using the calculate_tax tool if you need to determine tax amounts, and you should probably pass in the amount and jurisdiction if you have them available.
+```
+
+### Use Structured Lists
+
+✅ **Good:**
+```markdown
+## Constraints
+- Maximum response length: 500 tokens
+- Required fields: name, email, timestamp
+- Timeout: 30 seconds
+```
+
+❌ **Bad:**
+```markdown
+## Constraints
+The response should not exceed 500 tokens, and you need to include the name, email, and timestamp fields. Also, make sure the operation completes within 30 seconds.
+```
+
+## Tool Design Principles
+
+### Self-Contained Tools
+
+Each tool should:
+- Have a single, clear purpose
+- Include all necessary parameters in its definition
+- Return complete, actionable results
+- Handle errors gracefully without external dependencies
+
+### Robust Error Handling
+
+Tools must:
+- Validate inputs before execution
+- Return structured error messages
+- Gracefully degrade when possible
+- Provide actionable feedback for failures
+
+### Clear Purpose and Scope
+
+✅ **Good:** `calculate_shipping_cost(origin, destination, weight, service_level)`
+
+❌ **Bad:** `process_order(order_data)` - Too broad, unclear what it does
+
+## Context Management Strategies
+
+### 1. Just-in-Time Context Loading
+
+**Instead of:**
+```markdown
+## Available Products
+Product 1: Widget A - $10.99 - In stock: 500 units - SKU: WGT-001 - Category: Hardware...
+Product 2: Widget B - $15.99 - In stock: 200 units - SKU: WGT-002 - Category: Hardware...
+[100 more products...]
+```
+
+**Use:**
+```markdown
+## Available Products
+Use `get_product(sku)` to retrieve product details when needed.
+Product SKUs available: WGT-001, WGT-002, [reference product catalog]
+```
+
+### 2. Compaction for Long Conversations
+
+When context grows too large:
+- Summarize older conversation segments
+- Preserve critical decisions and state
+- Discard resolved sub-tasks
+- Keep recent context verbatim
+
+### 3. Structured Note-Taking
+
+For multi-step tasks:
+- Persist important information outside context window
+- Use external storage (files, databases) for state
+- Reference stored information with lightweight identifiers
+- Update notes progressively as task evolves
+
+### 4. Sub-Agent Architectures
+
+For complex tasks:
+- Delegate subtasks to specialized agents
+- Each agent gets minimal, task-specific context
+- Parent agent coordinates and synthesizes results
+- Agents communicate through structured interfaces
+
+## Context File Templates
+
+### Basic Context Template
+
+```markdown
+# [Domain/Feature Name]
+
+## Background Information
+[Minimal essential context about the domain]
+
+## Instructions
+- [Clear, actionable directive 1]
+- [Clear, actionable directive 2]
+- [Clear, actionable directive 3]
+
+## Examples
+**Example 1: [Scenario]**
+Input: [Example input]
+Expected Output: [Example output]
+
+**Example 2: [Edge Case]**
+Input: [Example input]
+Expected Output: [Example output]
+
+## Constraints
+- [Boundary or limitation 1]
+- [Boundary or limitation 2]
+```
+
+### Agent-Specific Context Template
+
+```markdown
+# [Agent Name] - [Primary Function]
+
+## Role
+You are a [role description] responsible for [core responsibility].
+
+## Capabilities
+- [Capability 1]
+- [Capability 2]
+- [Capability 3]
+
+## Available Tools
+- `tool_name(params)` - [Brief description]
+- `tool_name2(params)` - [Brief description]
+
+## Workflow
+1. [Step 1]
+2. [Step 2]
+3. [Step 3]
+
+## Output Format
+[Specify exact format for agent responses]
+
+## Constraints
+- [Constraint 1]
+- [Constraint 2]
+```
+
+### Command Context Template
+
+```markdown
+# Command: [Command Name]
+
+## Purpose
+[One-sentence description of what this command does]
+
+## When to Use
+Use this command when:
+- [Scenario 1]
+- [Scenario 2]
+- [Scenario 3]
+
+## Parameters
+- `param1` (required): [Description]
+- `param2` (optional): [Description]
+
+## Usage Example
+```bash
+[command example]
+```
+
+## Output
+[Description of what the command returns]
+
+## Error Handling
+- [Error condition 1]: [How to handle]
+- [Error condition 2]: [How to handle]
+```
+
+## Best Practices Checklist
+
+When creating or reviewing context documentation:
+
+- [ ] Uses Markdown headers for semantic organization
+- [ ] Language is clear, direct, and minimal
+- [ ] No redundant or overlapping information
+- [ ] Instructions are actionable and specific
+- [ ] Examples are concrete and representative
+- [ ] Constraints are clearly defined
+- [ ] Uses just-in-time loading when appropriate
+- [ ] Follows consistent formatting throughout
+- [ ] Focuses on high-signal tokens only
+- [ ] Structured for progressive discovery
+
+## Anti-Patterns to Avoid
+
+❌ **Verbose Explanations**
+Don't explain the reasoning behind every instruction. Be direct.
+
+❌ **Historical Context Dumping**
+Don't include how things evolved unless critical to understanding.
+
+❌ **Overlapping Tool Definitions**
+Don't create multiple tools that do similar things.
+
+❌ **Premature Information Loading**
+Don't load detailed data until actually needed.
+
+❌ **Unstructured Lists**
+Don't use paragraphs where bulleted lists would be clearer.
+
+❌ **Vague Instructions**
+Don't use "might", "could", "should consider" - be direct.
+
+❌ **Example Overload**
+Don't provide 10 examples when 2 would suffice.
+
+## Evolution and Refinement
+
+Context engineering is an ongoing process:
+
+1. **Start Minimal:** Begin with the smallest viable context
+2. **Measure Performance:** Track task completion and accuracy
+3. **Identify Gaps:** Note when agent lacks critical information
+4. **Add Strategically:** Include only high-value tokens
+5. **Prune Regularly:** Remove unused or low-value context
+6. **Iterate:** Continuously refine based on outcomes
+
+## References
+
+Based on Anthropic's article: "Effective Context Engineering for AI Agents"
+https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents
+
+## Related PAI Documentation
+
+- Core Context: `${PAI_DIR}/context/CLAUDE.md`
+- Architecture: `${PAI_DIR}/context/architecture/CLAUDE.md`
diff --git a/PAI_DIRECTORY/skills/prompting/SKILL.md b/PAI_DIRECTORY/skills/prompting/SKILL.md
new file mode 100644
index 00000000..57a85b36
--- /dev/null
+++ b/PAI_DIRECTORY/skills/prompting/SKILL.md
@@ -0,0 +1,92 @@
+---
+name: prompting
+description: Prompt engineering standards and context engineering principles for AI agents based on Anthropic best practices. Covers clarity, structure, progressive discovery, and optimization for signal-to-noise ratio.
+---
+
+# Prompting Skill
+
+## When to Activate This Skill
+- Prompt engineering questions
+- Context engineering guidance
+- AI agent design
+- Prompt structure help
+- Best practices for LLM prompts
+- Agent configuration
+
+## Core Philosophy
+**Context engineering** = Curating optimal set of tokens during LLM inference
+
+**Primary Goal:** Find smallest possible set of high-signal tokens that maximize desired outcomes
+
+## Key Principles
+
+### 1. Context is Finite Resource
+- LLMs have limited "attention budget"
+- Performance degrades as context grows
+- Every token depletes capacity
+- Treat context as precious
+
+### 2. Optimize Signal-to-Noise
+- Clear, direct language over verbose explanations
+- Remove redundant information
+- Focus on high-value tokens
+
+### 3. Progressive Discovery
+- Use lightweight identifiers vs full data dumps
+- Load detailed info dynamically when needed
+- Just-in-time information loading
+
+## Markdown Structure Standards
+
+Use clear semantic sections:
+- **Background Information**: Minimal essential context
+- **Instructions**: Imperative voice, specific, actionable
+- **Examples**: Show don't tell, concise, representative
+- **Constraints**: Boundaries, limitations, success criteria
+
+## Writing Style
+
+### Clarity Over Completeness
+✅ Good: "Validate input before processing"
+❌ Bad: "You should always make sure to validate..."
+
+### Be Direct
+✅ Good: "Use calculate_tax tool with amount and jurisdiction"
+❌ Bad: "You might want to consider using..."
+
+### Use Structured Lists
+✅ Good: Bulleted constraints
+❌ Bad: Paragraph of requirements
+
+## Context Management
+
+### Just-in-Time Loading
+Don't load full data dumps - use references and load when needed
+
+### Structured Note-Taking
+Persist important info outside context window
+
+### Sub-Agent Architecture
+Delegate subtasks to specialized agents with minimal context
+
+## Best Practices Checklist
+- [ ] Uses Markdown headers for organization
+- [ ] Clear, direct, minimal language
+- [ ] No redundant information
+- [ ] Actionable instructions
+- [ ] Concrete examples
+- [ ] Clear constraints
+- [ ] Just-in-time loading when appropriate
+
+## Anti-Patterns
+❌ Verbose explanations
+❌ Historical context dumping
+❌ Overlapping tool definitions
+❌ Premature information loading
+❌ Vague instructions ("might", "could", "should")
+
+## Supplementary Resources
+For full standards: `read ${PAI_DIR}/skills/prompting/CLAUDE.md`
+
+## Based On
+Anthropic's "Effective Context Engineering for AI Agents"
diff --git a/README.md b/README.md
index 5b04684a..e418e544 100644
--- a/README.md
+++ b/README.md
@@ -34,13 +34,74 @@
## 🚀 **Recent Updates**
-> [!TIP]
-> **[🎉 v0.2.4 Released!](https://github.com/danielmiessler/PAI/releases/tag/v0.2.4)** - README Cleanup & Organization
+> [!IMPORTANT]
+> **🎉 MAJOR UPGRADE: Skills System Migration (v0.3.0)**
+>
+> PAI has been upgraded to use [Anthropic's Skills architecture](https://www.anthropic.com/news/skills)! We've migrated from the legacy context system to modular, intent-activated skills with progressive disclosure. This is a breaking architectural change that brings PAI in line with modern AI assistant design patterns.
+>
+> **Key Changes:**
+> - 📚 **Context System → Skills System** - Modular capability packages
+> - 🎯 **Intent-Based Activation** - Skills load based on user intent matching
+> - 📄 **Progressive Disclosure** - SKILL.md → CLAUDE.md → Resources
+> - 🎙️ **Voice System Updates** - Paths updated to use `${PAI_DIR}`
+> - 📖 **Complete Documentation** - New comprehensive [Skills System Guide](./PAI_DIRECTORY/documentation/skills-system.md)
+> - 🎓 **Example Skills Included** - `prompting` and `create-skill` as safe examples
+>
+> [Read the Skills System Documentation →](./PAI_DIRECTORY/documentation/skills-system.md)
<details>
<summary><strong>Click to see all updates</strong></summary>
<details open>
+<summary><strong>📅 October 17, 2025 - Skills System Migration (v0.3.0)</strong></summary>
+
+**🎯 Major Architectural Upgrade: Context → Skills**
+
+PAI has been completely migrated to use [Anthropic's Skills architecture](https://www.anthropic.com/news/skills), bringing modern modular design and progressive disclosure to the personal AI infrastructure.
+
+**✨ What Changed:**
+
+- 📚 **Skills System Implementation**
+ - Migrated from monolithic context files to modular skill packages
+ - Each skill is self-contained with SKILL.md (quick ref) and optional CLAUDE.md (deep dive)
+ - Intent-based activation through skill descriptions with "USE WHEN" triggers
+ - Progressive disclosure: load only what's needed, when it's needed
+
+- 📁 **New Directory Structure**
+ - Removed: `PAI_DIRECTORY/context/` (old system)
+ - Added: `PAI_DIRECTORY/skills/` (new system)
+ - Included example skills: `prompting/` and `create-skill/`
+
+- 📖 **Documentation Overhaul**
+ - Created comprehensive [Skills System Guide](./PAI_DIRECTORY/documentation/skills-system.md) (600+ lines)
+ - Updated [Architecture Documentation](./PAI_DIRECTORY/documentation/architecture.md)
+ - Updated [Documentation README](./PAI_DIRECTORY/documentation/README.md)
+ - Updated main README with Skills System section
+
+- 🎙️ **Voice System Path Updates**
+ - All `~/.claude` hardcoded paths replaced with `${PAI_DIR}` variables
+ - Improved portability across installations
+ - Updated [Voice System Documentation](./PAI_DIRECTORY/documentation/voice-system.md)
+
+- 🎓 **Example Skills Included**
+ - **prompting**: Prompt engineering standards (educational)
+ - **create-skill**: Complete framework for creating new skills with templates
+
+**🔗 Resources:**
+- [Anthropic Skills Announcement](https://www.anthropic.com/news/skills)
+- [PAI Skills System Documentation](./PAI_DIRECTORY/documentation/skills-system.md)
+- [Migration Guide](./PAI_DIRECTORY/documentation/skills-system.md#migration-from-context-system)
+
+**🎯 Benefits:**
+- Better modularity and reusability
+- Clearer activation patterns
+- Easier to create and share skills
+- Follows industry best practices
+- Template-driven quality
+
+</details>
+
+<details>
<summary><strong>📅 October 6, 2025 - README Cleanup & Organization (v0.2.4)</strong></summary>
- 📂 **Collapsed Updates**: Implemented two-level collapsing structure for updates section
@@ -307,62 +368,58 @@ PAI is part of the journey toward Human 3.0—where humans are augmented by AI t
```mermaid
graph TD
User[👤 You] --> Hooks[🪝 Dynamic Hooks]
-
- Hooks --> UFC[📁 UFC Context System]
+
+ Hooks --> Skills[📚 Skills System]
Hooks --> Commands[⚡ Custom Commands]
-
- UFC --> Projects[🧠 Projects]
- UFC --> Life[🏠 Life Context]
- UFC --> Work[💼 Work Context]
-
+
+ Skills --> Projects[🧠 Project Skills]
+ Skills --> Life[🏠 Life Skills]
+ Skills --> Work[💼 Work Skills]
+
Commands --> MCPs[🔌 MCP Servers]
Commands --> Agents[🤖 AI Agents]
Commands --> APIs[🌐 API Integrations]
-
- MCPs --> Playwright[🎭 Browser Automation]
+
+ MCPs --> ChromeDevTools[🎭 Browser Automation]
MCPs --> Stripe[💳 Payment Processing]
MCPs --> Analytics[📊 Analytics]
-
+
Agents --> Output[✨ Augmented Actions]
APIs --> Output
MCPs --> Output
-
+
style User fill:#1f2937,stroke:#10b981,stroke-width:2px,color:#e5e7eb
style Hooks fill:#111827,stroke:#8b5cf6,stroke-width:2px,color:#e5e7eb
style Output fill:#111827,stroke:#ef4444,stroke-width:2px,color:#e5e7eb
```
-### 📁 **UFC Context System**
+### 📚 **Skills System**
<table>
<tr>
<td width="50%">
```
-${PAI_DIR}/context/
-├── projects/
-│ ├── website/
-│ ├── Alma/
-│ └── PAI/
-├── life/
-│ ├── finances/
-│ ├── health/
-│ └── expenses/
-├── work/
-│ ├── consulting/
-│ └── business/
-└── benefits/
- └── credit-cards/
+${PAI_DIR}/skills/
+├── prompting/ # Prompt engineering
+├── create-skill/ # Skill creation guide
+├── development/ # Software development
+├── research/ # Multi-source research
+├── web-scraping/ # Web data extraction
+├── chrome-devtools/ # Browser automation
+├── fabric-patterns/ # Content processing
+└── [your-custom-skills]/
```
</td>
<td width="50%">
**Features:**
-- ✅ Persistent memory across sessions
-- 📄 Plain text files - human readable
-- ⚡ Dynamic loading based on context
-- 📂 Hierarchical organization
+- ✅ Modular capability packages
+- 📄 Progressive disclosure (SKILL.md → CLAUDE.md)
+- ⚡ Intent-based activation
+- 📂 Self-contained with templates
+- 🔌 Inherits global context
</td>
</tr>