⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
fix: Linux compatibility - use lowercase for Claude Code directories
Daniel Miessler28c378c4d991
diff --git a/Bundles/Kai/README.md b/Bundles/Kai/README.mdindex 4a9b45ab..32e20e35 100644--- a/Bundles/Kai/README.md+++ b/Bundles/Kai/README.md@@ -86,9 +86,9 @@ ls -la ~/.claude/# Expected directories:# hooks/ - Event-driven automation-# History/ - Sessions, Learnings, Research, Decisions-# Skills/ - CORE and other skills-# Tools/ - CLI utilities+# history/ - Sessions, Learnings, Research, Decisions+# skills/ - CORE and other skills+# tools/ - CLI utilities# voice/ - Voice server files (if installed)# Check hooks are registereddiff --git a/Bundles/Kai/install.ts b/Bundles/Kai/install.tsindex 99c83451..7b1f27c6 100644--- a/Bundles/Kai/install.ts+++ b/Bundles/Kai/install.ts@@ -442,25 +442,25 @@ async function main() {// Create directory structureconsole.log("Creating directory structure...");- await $`mkdir -p ${claudeDir}/Skills/CORE/Workflows`;- await $`mkdir -p ${claudeDir}/Skills/CORE/Tools`;- await $`mkdir -p ${claudeDir}/History/{Sessions,Learnings,Research,Decisions}`;+ await $`mkdir -p ${claudeDir}/skills/CORE/workflows`;+ await $`mkdir -p ${claudeDir}/skills/CORE/tools`;+ await $`mkdir -p ${claudeDir}/history/{sessions,learnings,research,decisions}`;await $`mkdir -p ${claudeDir}/hooks/lib`;- await $`mkdir -p ${claudeDir}/Tools`;+ await $`mkdir -p ${claudeDir}/tools`;await $`mkdir -p ${claudeDir}/voice`;// Generate filesconsole.log("Generating SKILL.md...");const skillMd = generateSkillMd(config);- await Bun.write(`${claudeDir}/Skills/CORE/SKILL.md`, skillMd);+ await Bun.write(`${claudeDir}/skills/CORE/SKILL.md`, skillMd);console.log("Generating Contacts.md...");const contactsMd = generateContactsMd(config);- await Bun.write(`${claudeDir}/Skills/CORE/Contacts.md`, contactsMd);+ await Bun.write(`${claudeDir}/skills/CORE/Contacts.md`, contactsMd);console.log("Generating CoreStack.md...");const coreStackMd = generateCoreStackMd(config);- await Bun.write(`${claudeDir}/Skills/CORE/CoreStack.md`, coreStackMd);+ await Bun.write(`${claudeDir}/skills/CORE/CoreStack.md`, coreStackMd);// Create .env fileconsole.log("Creating .env file...");@@ -526,9 +526,9 @@ Your Kai system is configured:🔊 Voice: ${config.elevenLabsApiKey ? "Enabled" : "Disabled"}Files created:- - ~/.claude/Skills/CORE/SKILL.md- - ~/.claude/Skills/CORE/Contacts.md- - ~/.claude/Skills/CORE/CoreStack.md+ - ~/.claude/skills/CORE/SKILL.md+ - ~/.claude/skills/CORE/Contacts.md+ - ~/.claude/skills/CORE/CoreStack.md- ~/.claude/.envNext steps:diff --git a/Packs/kai-agents-skill.md b/Packs/kai-agents-skill.mdindex 83eac9a5..0865e183 100644--- a/Packs/kai-agents-skill.md+++ b/Packs/kai-agents-skill.md@@ -44,12 +44,12 @@ Please follow the installation instructions below to integrate this pack into yo| Component | File | Purpose ||-----------|------|---------|-| Agents skill | `Skills/Agents/SKILL.md` | Routing and agent definitions |-| Agent factory | `Skills/Agents/Tools/AgentFactory.ts` | Dynamic agent composition |-| Trait definitions | `Skills/Agents/Data/Traits.yaml` | Expertise, personality, approach traits |-| Voice mapping | `Skills/Agents/Data/VoiceMapping.yaml` | Personality to ElevenLabs voice mapping |-| Create agent | `Skills/Agents/Workflows/CreateCustomAgent.md` | Custom agent workflow |-| List traits | `Skills/Agents/Workflows/ListTraits.md` | Show available traits |+| Agents skill | `skills/Agents/SKILL.md` | Routing and agent definitions |+| Agent factory | `skills/Agents/Tools/AgentFactory.ts` | Dynamic agent composition |+| Trait definitions | `skills/Agents/Data/Traits.yaml` | Expertise, personality, approach traits |+| Voice mapping | `skills/Agents/Data/VoiceMapping.yaml` | Personality to ElevenLabs voice mapping |+| Create agent | `skills/Agents/Workflows/CreateCustomAgent.md` | Custom agent workflow |+| List traits | `skills/Agents/Workflows/ListTraits.md` | Show available traits |**Summary:**- **Files created:** 8+ (skill, tool, workflows, data)diff --git a/Packs/kai-art-skill.md b/Packs/kai-art-skill.mdindex 95bd19ed..24af8eff 100644--- a/Packs/kai-art-skill.md+++ b/Packs/kai-art-skill.md@@ -47,12 +47,12 @@ Please follow the installation instructions below to integrate this pack into yo| Component | File | Purpose ||-----------|------|---------|-| Art skill | `Skills/Art/SKILL.md` | Routing and quick reference |-| Aesthetic config | `Skills/Art/Aesthetic.md` | Style preferences and palette |-| Generate tool | `Skills/Art/Tools/Generate.ts` | Multi-model image generation CLI |-| Technical diagrams | `Skills/Art/Workflows/TechnicalDiagrams.md` | Architecture diagram workflow |-| Essay headers | `Skills/Art/Workflows/Essay.md` | Blog header image workflow |-| Comics workflow | `Skills/Art/Workflows/Comics.md` | Sequential panel generation |+| Art skill | `skills/Art/SKILL.md` | Routing and quick reference |+| Aesthetic config | `skills/Art/Aesthetic.md` | Style preferences and palette |+| Generate tool | `skills/Art/Tools/Generate.ts` | Multi-model image generation CLI |+| Technical diagrams | `skills/Art/Workflows/TechnicalDiagrams.md` | Architecture diagram workflow |+| Essay headers | `skills/Art/Workflows/Essay.md` | Blog header image workflow |+| Comics workflow | `skills/Art/Workflows/Comics.md` | Sequential panel generation |**Summary:**- **Files created:** 8+ (skill, tool, workflows)@@ -184,10 +184,10 @@ echo "PAI_DIR: ${PAI_DIR:-'NOT SET - will use ~/.config/pai'}"# 2. Check for existing Skills directoryPAI_CHECK="${PAI_DIR:-$HOME/.config/pai}"-if [ -d "$PAI_CHECK/Skills/Art" ]; then- echo "WARNING: Art skill already exists at: $PAI_CHECK/Skills/Art"+if [ -d "$PAI_CHECK/skills/Art" ]; then+ echo "WARNING: Art skill already exists at: $PAI_CHECK/skills/Art"echo "Contents:"- ls -la "$PAI_CHECK/Skills/Art" 2>/dev/null || echo " (empty)"+ ls -la "$PAI_CHECK/skills/Art" 2>/dev/null || echo " (empty)"elseecho "OK: No existing Art skill (clean install)"fi@@ -214,10 +214,10 @@ echo "API Key Status:"```bash# Create timestamped backup if Art skill existsPAI_CHECK="${PAI_DIR:-$HOME/.config/pai}"-if [ -d "$PAI_CHECK/Skills/Art" ]; then+if [ -d "$PAI_CHECK/skills/Art" ]; thenBACKUP_DIR="$HOME/.pai-backup/$(date +%Y%m%d-%H%M%S)"mkdir -p "$BACKUP_DIR"- cp -r "$PAI_CHECK/Skills/Art" "$BACKUP_DIR/Art"+ cp -r "$PAI_CHECK/skills/Art" "$BACKUP_DIR/Art"echo "Backed up existing Art skill to: $BACKUP_DIR/Art"fi```@@ -230,12 +230,12 @@ fiPAI_DIR="${PAI_DIR:-$HOME/.config/pai}"# Create Art skill directories-mkdir -p "$PAI_DIR/Skills/Art/Workflows"-mkdir -p "$PAI_DIR/Skills/Art/Tools"+mkdir -p "$PAI_DIR/skills/Art/Workflows"+mkdir -p "$PAI_DIR/skills/Art/Tools"# Verify structureecho "Created directories:"-ls -la "$PAI_DIR/Skills/Art/"+ls -la "$PAI_DIR/skills/Art/"```---@@ -243,7 +243,7 @@ ls -la "$PAI_DIR/Skills/Art/"### Step 2: Create SKILL.md (Routing File)```bash-cat > "$PAI_DIR/Skills/Art/SKILL.md" << 'SKILL_EOF'+cat > "$PAI_DIR/skills/Art/SKILL.md" << 'SKILL_EOF'---name: Artdescription: Visual content generation with Excalidraw hand-drawn aesthetic. USE WHEN user wants diagrams, visualizations, comics, or editorial illustrations.@@ -279,7 +279,7 @@ Route to the appropriate workflow based on the request:- Consistent hand-lettered typography style- Dark mode backgrounds with bright accents-**Full aesthetic documentation:** `$PAI_DIR/Skills/Art/Aesthetic.md`+**Full aesthetic documentation:** `$PAI_DIR/skills/Art/Aesthetic.md`---@@ -302,7 +302,7 @@ Route to the appropriate workflow based on the request:**Default model:** nano-banana-pro (Gemini 3 Pro)```bash-bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \+bun run $PAI_DIR/skills/Art/Tools/Generate.ts \--model nano-banana-pro \--prompt "[PROMPT]" \--size 2K \@@ -349,7 +349,7 @@ echo "Created SKILL.md"### Step 3: Create Aesthetic.md (Color and Style Reference)```bash-cat > "$PAI_DIR/Skills/Art/Aesthetic.md" << 'AESTHETIC_EOF'+cat > "$PAI_DIR/skills/Art/Aesthetic.md" << 'AESTHETIC_EOF'# Art Skill Aesthetic**Excalidraw Hand-Drawn** - Tech-forward dark-mode aesthetic for professional visual content.@@ -515,7 +515,7 @@ echo "Created Aesthetic.md"### Step 4: Create TechnicalDiagrams.md Workflow```bash-cat > "$PAI_DIR/Skills/Art/Workflows/TechnicalDiagrams.md" << 'TECHDIAGRAM_EOF'+cat > "$PAI_DIR/skills/Art/Workflows/TechnicalDiagrams.md" << 'TECHDIAGRAM_EOF'# Technical Diagram Workflow**Clean Excalidraw-style technical diagrams with dark-mode aesthetic.**@@ -663,7 +663,7 @@ EXCALIDRAW CHARACTERISTICS:## Generate Command```bash-bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \+bun run $PAI_DIR/skills/Art/Tools/Generate.ts \--model nano-banana-pro \--prompt "[YOUR PROMPT]" \--size 2K \@@ -713,7 +713,7 @@ echo "Created TechnicalDiagrams.md"### Step 5: Create Essay.md Workflow```bash-cat > "$PAI_DIR/Skills/Art/Workflows/Essay.md" << 'ESSAY_EOF'+cat > "$PAI_DIR/skills/Art/Workflows/Essay.md" << 'ESSAY_EOF'# Editorial Illustration Workflow**Hand-drawn Excalidraw-style illustrations for blog headers and editorial content.**@@ -826,7 +826,7 @@ CRITICAL:### Step 4: Execute Generation```bash-bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \+bun run $PAI_DIR/skills/Art/Tools/Generate.ts \--model nano-banana-pro \--prompt "[YOUR PROMPT]" \--size 2K \@@ -837,7 +837,7 @@ bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \**For blog headers that need thumbnails:**```bash-bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \+bun run $PAI_DIR/skills/Art/Tools/Generate.ts \--model nano-banana-pro \--prompt "[YOUR PROMPT]" \--size 2K \@@ -902,7 +902,7 @@ echo "Created Essay.md"### Step 6: Create Comics.md Workflow```bash-cat > "$PAI_DIR/Skills/Art/Workflows/Comics.md" << 'COMICS_EOF'+cat > "$PAI_DIR/skills/Art/Workflows/Comics.md" << 'COMICS_EOF'# Editorial Comics Workflow**Sequential panel storytelling with sophisticated hand-drawn aesthetic.**@@ -1078,7 +1078,7 @@ CRITICAL:### Step 5: Execute Generation```bash-bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \+bun run $PAI_DIR/skills/Art/Tools/Generate.ts \--model nano-banana-pro \--prompt "[YOUR PROMPT]" \--size 2K \@@ -1143,7 +1143,7 @@ echo "Created Comics.md"### Step 7: Create Generate.ts Tool```bash-cat > "$PAI_DIR/Skills/Art/Tools/Generate.ts" << 'GENERATE_EOF'+cat > "$PAI_DIR/skills/Art/Tools/Generate.ts" << 'GENERATE_EOF'#!/usr/bin/env bun/**@@ -1331,8 +1331,8 @@ ENVIRONMENT VARIABLES:REMOVEBG_API_KEY Required for --remove-bgMORE INFO:- Documentation: \${PAI_DIR}/Skills/Art/README.md- Source: \${PAI_DIR}/Skills/Art/Tools/Generate.ts+ Documentation: \${PAI_DIR}/skills/Art/README.md+ Source: \${PAI_DIR}/skills/Art/Tools/Generate.ts`);process.exit(0);}@@ -1754,12 +1754,12 @@ echo ""# Check filesecho "Files:"-[ -f "$PAI_DIR/Skills/Art/SKILL.md" ] && echo " [OK] SKILL.md" || echo " [MISSING] SKILL.md"-[ -f "$PAI_DIR/Skills/Art/Aesthetic.md" ] && echo " [OK] Aesthetic.md" || echo " [MISSING] Aesthetic.md"-[ -f "$PAI_DIR/Skills/Art/Workflows/TechnicalDiagrams.md" ] && echo " [OK] TechnicalDiagrams.md" || echo " [MISSING] TechnicalDiagrams.md"-[ -f "$PAI_DIR/Skills/Art/Workflows/Essay.md" ] && echo " [OK] Essay.md" || echo " [MISSING] Essay.md"-[ -f "$PAI_DIR/Skills/Art/Workflows/Comics.md" ] && echo " [OK] Comics.md" || echo " [MISSING] Comics.md"-[ -f "$PAI_DIR/Skills/Art/Tools/Generate.ts" ] && echo " [OK] Generate.ts" || echo " [MISSING] Generate.ts"+[ -f "$PAI_DIR/skills/Art/SKILL.md" ] && echo " [OK] SKILL.md" || echo " [MISSING] SKILL.md"+[ -f "$PAI_DIR/skills/Art/Aesthetic.md" ] && echo " [OK] Aesthetic.md" || echo " [MISSING] Aesthetic.md"+[ -f "$PAI_DIR/skills/Art/Workflows/TechnicalDiagrams.md" ] && echo " [OK] TechnicalDiagrams.md" || echo " [MISSING] TechnicalDiagrams.md"+[ -f "$PAI_DIR/skills/Art/Workflows/Essay.md" ] && echo " [OK] Essay.md" || echo " [MISSING] Essay.md"+[ -f "$PAI_DIR/skills/Art/Workflows/Comics.md" ] && echo " [OK] Comics.md" || echo " [MISSING] Comics.md"+[ -f "$PAI_DIR/skills/Art/Tools/Generate.ts" ] && echo " [OK] Generate.ts" || echo " [MISSING] Generate.ts"echo ""echo "API Keys (check $PAI_DIR/.env):"@@ -1770,7 +1770,7 @@ echo "API Keys (check $PAI_DIR/.env):"echo ""echo "Test CLI tool:"-bun run "$PAI_DIR/Skills/Art/Tools/Generate.ts" --help | head -5+bun run "$PAI_DIR/skills/Art/Tools/Generate.ts" --help | head -5echo ""echo "Installation complete!"@@ -1801,7 +1801,7 @@ The Art Skill activates based on user requests:# User: "create a diagram showing how authentication works"# Skill routes to TechnicalDiagrams workflow, which constructs prompt:-bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \+bun run $PAI_DIR/skills/Art/Tools/Generate.ts \--model nano-banana-pro \--prompt "Clean Excalidraw-style technical diagram on dark background #0a0a0f. Title: 'Authentication Flow'. Shows: User -> Login Form -> Auth Service -> Token -> Protected Resource. Hand-drawn style, PAI Blue #4a90d9 for key components, Cyan #22d3ee for arrows. Include insight callout '*tokens expire after 24h*' in blue." \--size 2K \@@ -1814,7 +1814,7 @@ bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \```bash# User: "create a header image for my post about AI agents"-bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \+bun run $PAI_DIR/skills/Art/Tools/Generate.ts \--model nano-banana-pro \--prompt "Hand-drawn Excalidraw-style illustration on dark background #0a0a0f. Subject: Multiple AI agents working together, represented as geometric angular figures collaborating. Style: gestural hand-drawn lines, professional editorial quality. Colors: White #e5e7eb linework, PAI Blue #4a90d9 accents, Cyan #22d3ee for connections. Subjects fill the frame, minimalist composition." \--size 2K \@@ -1828,7 +1828,7 @@ bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \```bash# User: "create a comic showing the difference between manual and automated testing"-bun run $PAI_DIR/Skills/Art/Tools/Generate.ts \+bun run $PAI_DIR/skills/Art/Tools/Generate.ts \--model nano-banana-pro \--prompt "Hand-drawn editorial comic strip, 3 panels horizontal, dark background. Panel 1: Developer manually clicking through app, exhausted (PAI Blue accent). Panel 2: Same developer writing test script, focused. Panel 3: Tests running automatically while developer relaxes. Planeform character design - angular, adult proportions, minimal faces. New Yorker sophistication, NOT cartoonish." \--size 2K \@@ -1863,7 +1863,7 @@ export PAI_DIR="$HOME/.config/pai" # Custom PAI directoryThe single most valuable customization for this pack is to have an extended conversation with your AI about your personal aesthetic preferences, then capture that in `Aesthetic.md`. This transforms the Art Skill from a generic tool into one that produces images reflecting YOUR unique visual taste.-**What to Customize:** `$PAI_DIR/Skills/Art/Aesthetic.md`+**What to Customize:** `$PAI_DIR/skills/Art/Aesthetic.md`**Why:** The default Aesthetic.md contains a generic Excalidraw-style dark-mode palette. By investing 15-30 minutes in an aesthetic exploration conversation, every image generated will feel like YOUR work, not generic AI output. This is the difference between "usable" and "perfectly on-brand."@@ -1936,7 +1936,7 @@ Edit `Aesthetic.md` to replace the default palette:**Example: Adding a Custom Workflow**-Create `$PAI_DIR/Skills/Art/Workflows/Infographics.md` for a specific content type you create often:+Create `$PAI_DIR/skills/Art/Workflows/Infographics.md` for a specific content type you create often:```markdown# Infographic Workflowdiff --git a/Packs/kai-core-install.md b/Packs/kai-core-install.mdindex 588ed14f..e206aedc 100644--- a/Packs/kai-core-install.md+++ b/Packs/kai-core-install.md@@ -60,12 +60,12 @@ Please follow the installation instructions below to integrate this Pack into yo| Component | File | Purpose ||-----------|------|---------|-| CORE skill | `Skills/CORE/SKILL.md` | Main identity and routing hub |-| Skill system docs | `Skills/CORE/SkillSystem.md` | Skill routing architecture |-| Architecture tracker | `Skills/CORE/Architecture.md` | Auto-generated system status |+| CORE skill | `skills/CORE/SKILL.md` | Main identity and routing hub |+| Skill system docs | `skills/CORE/SkillSystem.md` | Skill routing architecture |+| Architecture tracker | `skills/CORE/Architecture.md` | Auto-generated system status || Architecture tool | `Tools/PaiArchitecture.ts` | Generate architecture tracking |-| CreateSkill templates | `Skills/CreateSkill/` | Templates for new skills |-| Identity & Principles | `Skills/CORE/Constitution.md` | 14 founding principles |+| CreateSkill templates | `skills/CreateSkill/` | Templates for new skills |+| Identity & Principles | `skills/CORE/Constitution.md` | 14 founding principles |**Summary:**- **Files created:** 10+ (skill files, templates, tools)@@ -251,7 +251,7 @@ description: Visual content system. USE WHEN art, header images, visualizations,### Layer 3: Context Files (On-Demand)```-Skills/Art/+skills/Art/├── SKILL.md # Routing + quick ref├── Aesthetic.md # Context: design philosophy├── ColorPalette.md # Context: brand colors@@ -261,7 +261,7 @@ Skills/Art/### Layer 4: Workflows (Explicit Procedures)```-Skills/Art/Workflows/+skills/Art/Workflows/├── Essay.md # How to create blog headers├── CreatePAIPackIcon.md # How to create PAI icons└── TechnicalDiagrams.md # How to create diagrams@@ -270,7 +270,7 @@ Skills/Art/Workflows/### Layer 5: Tools (Deterministic CLI Programs)```-Skills/Art/Tools/+skills/Art/Tools/├── Generate.ts # Image generation CLI└── Generate.help.md # Tool documentation```@@ -380,7 +380,7 @@ The PAI Architecture system provides visibility into your installation:## Auto-Generated Architecture.md-The `PaiArchitecture.ts` tool generates `$PAI_DIR/Skills/CORE/Architecture.md` with:+The `PaiArchitecture.ts` tool generates `$PAI_DIR/skills/CORE/Architecture.md` with:```markdown# PAI Architecture@@ -465,11 +465,11 @@ fiPAI_CHECK="${PAI_DIR:-$HOME/.config/pai}"# Check for existing Skills directory-if [ -d "$PAI_CHECK/Skills" ]; then- echo "⚠️ Skills directory EXISTS at: $PAI_CHECK/Skills"- ls -la "$PAI_CHECK/Skills" 2>/dev/null+if [ -d "$PAI_CHECK/skills" ]; then+ echo "⚠️ Skills directory EXISTS at: $PAI_CHECK/skills"+ ls -la "$PAI_CHECK/skills" 2>/dev/null- if [ -d "$PAI_CHECK/Skills/CORE" ]; then+ if [ -d "$PAI_CHECK/skills/CORE" ]; thenecho ""echo "⚠️ CORE skill directory exists - will merge/update"fi@@ -484,10 +484,10 @@ fiBACKUP_DIR="$HOME/.pai-backup/$(date +%Y%m%d-%H%M%S)"PAI_CHECK="${PAI_DIR:-$HOME/.config/pai}"-if [ -d "$PAI_CHECK/Skills/CORE" ]; then- mkdir -p "$BACKUP_DIR/Skills"- cp -r "$PAI_CHECK/Skills/CORE" "$BACKUP_DIR/Skills/CORE"- echo "✓ Backed up CORE skill to $BACKUP_DIR/Skills/CORE"+if [ -d "$PAI_CHECK/skills/CORE" ]; then+ mkdir -p "$BACKUP_DIR/skills"+ cp -r "$PAI_CHECK/skills/CORE" "$BACKUP_DIR/skills/CORE"+ echo "✓ Backed up CORE skill to $BACKUP_DIR/skills/CORE"fi```@@ -497,10 +497,10 @@ fi```bash# Create the Skills directory-mkdir -p $PAI_DIR/Skills/CORE/Workflows-mkdir -p $PAI_DIR/Skills/CORE/Tools-mkdir -p $PAI_DIR/Skills/CreateSkill/Workflows-mkdir -p $PAI_DIR/Skills/CreateSkill/Tools+mkdir -p $PAI_DIR/skills/CORE/Workflows+mkdir -p $PAI_DIR/skills/CORE/Tools+mkdir -p $PAI_DIR/skills/CreateSkill/Workflows+mkdir -p $PAI_DIR/skills/CreateSkill/Toolsmkdir -p $PAI_DIR/Tools```@@ -508,7 +508,7 @@ mkdir -p $PAI_DIR/Tools## Step 2: Create SkillSystem.md-Save the following to `$PAI_DIR/Skills/CORE/SkillSystem.md`:+Save the following to `$PAI_DIR/skills/CORE/SkillSystem.md`:```markdown# Custom Skill System@@ -618,7 +618,7 @@ import { join } from 'path';import { existsSync } from 'fs';const PAI_DIR = process.env.PAI_DIR || process.env.PAI_HOME || join(process.env.HOME || '', '.claude');-const INDEX_FILE = join(PAI_DIR, 'Skills', 'skill-index.json');+const INDEX_FILE = join(PAI_DIR, 'skills', 'skill-index.json');interface SkillEntry {name: string;@@ -711,7 +711,7 @@ import { join } from 'path';import { existsSync } from 'fs';const PAI_DIR = process.env.PAI_DIR || process.env.PAI_HOME || join(process.env.HOME || '', '.claude');-const SKILLS_DIR = join(PAI_DIR, 'Skills');+const SKILLS_DIR = join(PAI_DIR, 'skills');const OUTPUT_FILE = join(SKILLS_DIR, 'skill-index.json');const ALWAYS_LOADED_SKILLS = ['CORE', 'Development', 'Research'];@@ -827,9 +827,9 @@ import { join } from 'path';import { existsSync } from 'fs';const PAI_DIR = process.env.PAI_DIR || process.env.PAI_HOME || join(process.env.HOME || '', '.claude');-const ARCHITECTURE_FILE = join(PAI_DIR, 'Skills', 'CORE', 'PaiArchitecture.md');+const ARCHITECTURE_FILE = join(PAI_DIR, 'skills', 'CORE', 'PaiArchitecture.md');const BUNDLES_FILE = join(PAI_DIR, '.installed-bundles.json');-const UPGRADES_FILE = join(PAI_DIR, 'History', 'Upgrades.jsonl');+const UPGRADES_FILE = join(PAI_DIR, 'history', 'Upgrades.jsonl');interface PackInfo {name: string;@@ -852,7 +852,7 @@ interface UpgradeEntry {async function detectInstalledPacks(): Promise<PackInfo[]> {const packs: PackInfo[] = [];- const skillsDir = join(PAI_HOME, 'Skills');+ const skillsDir = join(PAI_HOME, 'skills');if (!existsSync(skillsDir)) return packs;@@ -912,12 +912,12 @@ async function checkSystemHealth(): Promise<Record<string, string>> {health['History System'] = existsSync(historyDir) ? '✓ Healthy' : '✗ Not installed';// Check skills- const skillsDir = join(PAI_HOME, 'Skills');+ const skillsDir = join(PAI_HOME, 'skills');if (existsSync(skillsDir)) {const skills = (await readdir(skillsDir)).filter(f => !f.startsWith('.') && !f.endsWith('.json'));- health['Skills'] = `✓ ${skills.length} loaded`;+ health['skills'] = `✓ ${skills.length} loaded`;} else {- health['Skills'] = '✗ Not installed';+ health['skills'] = '✗ Not installed';}return health;@@ -974,7 +974,7 @@ async function logUpgrade(description: string, type: string = 'pack'): Promise<vdescription};- const dir = join(PAI_HOME, 'History');+ const dir = join(PAI_HOME, 'history');if (!existsSync(dir)) {const { mkdir } = await import('fs/promises');await mkdir(dir, { recursive: true });@@ -1027,7 +1027,7 @@ main().catch(console.error);## Step 6: Create the CORE Skill-Save to `$PAI_DIR/Skills/CORE/SKILL.md`:+Save to `$PAI_DIR/skills/CORE/SKILL.md`:**NOTE:** Placeholders in `[BRACKETS]` should be filled in during installation.@@ -1041,41 +1041,15 @@ description: Personal AI Infrastructure core. AUTO-LOADS at session start. USE W**Auto-loads at session start.** This skill defines your AI's identity, response format, and core operating principles.-## Workflow Routing--| Workflow | Trigger | File |-|----------|---------|------|-| **UpdateDocumentation** | "update architecture", "refresh PAI state", after pack/bundle install | `Workflows/UpdateDocumentation.md` |-| **UpdateIdentity** | "update identity", "change personality" | `Workflows/UpdateIdentity.md` |-| **AddContact** | "add contact", "new contact" | `Workflows/AddContact.md` |-| **UpdateAssets** | "update assets", "add property" | `Workflows/UpdateAssets.md` |-## Examples-**Example 1: Check contact information**+**Example: Check contact information**\`\`\`User: "What's Angela's email?"→ Reads Contacts.md→ Returns contact information\`\`\`-**Example 2: Refresh architecture tracking**-\`\`\`-User: "Update my PAI architecture"-→ Invokes UpdateDocumentation workflow-→ Runs PaiArchitecture.ts generate-→ Logs upgrade if specified-→ Refreshes PaiArchitecture.md with current state-\`\`\`--**Example 3: After installing a pack**-\`\`\`-AI: [Completes kai-voice-system installation]-→ Automatically invokes UpdateDocumentation workflow-→ Logs "Installed kai-voice-system v1.0.0"-→ Regenerates Architecture.md with new pack-\`\`\`----## Identity@@ -1154,7 +1128,7 @@ See the full templates in the kai-identity pack documentation. The key files are## Step 7.1: Create UpdateDocumentation Workflow-Save to `$PAI_DIR/Skills/CORE/Workflows/UpdateDocumentation.md`:+Save to `$PAI_DIR/skills/CORE/Workflows/UpdateDocumentation.md`:```markdown# UpdateDocumentation Workflow@@ -1253,7 +1227,7 @@ bun run $PAI_DIR/Tools/PaiArchitecture.ts generate## Step 8: Create the CreateSkill Meta-Skill-Save to `$PAI_DIR/Skills/CreateSkill/SKILL.md`:+Save to `$PAI_DIR/skills/CreateSkill/SKILL.md`:```markdown---@@ -1267,7 +1241,7 @@ MANDATORY skill creation framework for ALL skill creation requests.## Authoritative Source-**Before creating ANY skill, READ:** `$PAI_DIR/Skills/CORE/SkillSystem.md`+**Before creating ANY skill, READ:** `$PAI_DIR/skills/CORE/SkillSystem.md`## Workflow Routing@@ -1342,7 +1316,7 @@ After installation, verify:```bash# Check directory structure-ls $PAI_DIR/Skills/+ls $PAI_DIR/skills/# Should show: CORE/ CreateSkill/ skill-index.jsonls $PAI_DIR/Tools/@@ -1355,7 +1329,7 @@ bun run $PAI_DIR/Tools/SkillSearch.ts --listbun run $PAI_DIR/Tools/PaiArchitecture.ts status# Verify CORE skill content-cat $PAI_DIR/Skills/CORE/SKILL.md | head -20+cat $PAI_DIR/skills/CORE/SKILL.md | head -20```---@@ -1376,7 +1350,7 @@ cat $PAI_DIR/Skills/CORE/SKILL.md | head -20### Architecture Not Generating1. Check PaiArchitecture.ts exists in Tools/-2. Verify write permissions to Skills/CORE/+2. Verify write permissions to skills/CORE/3. Run with explicit PAI_DIR: `PAI_DIR=~/.config/pai bun run ...`---@@ -1389,7 +1363,7 @@ cat $PAI_DIR/Skills/CORE/SKILL.md | head -20The CORE skill includes a placeholder identity. The most valuable customization is filling this in to create a consistent, personalized AI assistant.-**What to Customize:** `$PAI_DIR/Skills/CORE/SKILL.md`+**What to Customize:** `$PAI_DIR/skills/CORE/SKILL.md`**Why:** A well-defined personality creates consistent, predictable interactions. When your AI knows who it is, how formal to be, and what your preferences are, every response feels coherent and familiar.@@ -1448,7 +1422,7 @@ The CORE skill includes a placeholder identity. The most valuable customization**Example: Add Contacts**-Create or edit `$PAI_DIR/Skills/CORE/Contacts.md`:+Create or edit `$PAI_DIR/skills/CORE/Contacts.md`:```markdown# Contacts@@ -1461,7 +1435,7 @@ Create or edit `$PAI_DIR/Skills/CORE/Contacts.md`:**Example: Define Stack Preferences**-Create or edit `$PAI_DIR/Skills/CORE/CoreStack.md`:+Create or edit `$PAI_DIR/skills/CORE/CoreStack.md`:```markdown# Technology Stack Preferencesdiff --git a/Packs/kai-hook-system.md b/Packs/kai-hook-system.mdindex 51846b9f..9b90e9e8 100644--- a/Packs/kai-hook-system.md+++ b/Packs/kai-hook-system.md@@ -835,9 +835,9 @@ async function main() {// 2. Ensure required directories existconst requiredDirs = [join(paiDir, 'hooks', 'lib'),- join(paiDir, 'History', 'Sessions'),- join(paiDir, 'History', 'Learnings'),- join(paiDir, 'History', 'Research'),+ join(paiDir, 'history', 'sessions'),+ join(paiDir, 'history', 'learnings'),+ join(paiDir, 'history', 'research'),];for (const dir of requiredDirs) {diff --git a/Packs/kai-prompting-skill.md b/Packs/kai-prompting-skill.mdindex 4877c464..869e9e0e 100644--- a/Packs/kai-prompting-skill.md+++ b/Packs/kai-prompting-skill.md@@ -53,15 +53,15 @@ Please follow the installation instructions below to integrate this Pack into yo| Component | File | Purpose ||-----------|------|---------|-| Prompting skill | `Skills/Prompting/SKILL.md` | Routing and quick reference |-| Standards guide | `Skills/Prompting/Standards.md` | Claude 4.x best practices |-| Roster template | `Skills/Prompting/Templates/Primitives/Roster.hbs` | Agent/skill definitions |-| Voice template | `Skills/Prompting/Templates/Primitives/Voice.hbs` | Personality calibration |-| Structure template | `Skills/Prompting/Templates/Primitives/Structure.hbs` | Workflow patterns |-| Briefing template | `Skills/Prompting/Templates/Primitives/Briefing.hbs` | Agent context handoff |-| Gate template | `Skills/Prompting/Templates/Primitives/Gate.hbs` | Validation checklists |-| Render tool | `Skills/Prompting/Tools/RenderTemplate.ts` | Template rendering CLI |-| Validate tool | `Skills/Prompting/Tools/ValidateTemplate.ts` | Template validation |+| Prompting skill | `skills/Prompting/SKILL.md` | Routing and quick reference |+| Standards guide | `skills/Prompting/Standards.md` | Claude 4.x best practices |+| Roster template | `skills/Prompting/Templates/Primitives/Roster.hbs` | Agent/skill definitions |+| Voice template | `skills/Prompting/Templates/Primitives/Voice.hbs` | Personality calibration |+| Structure template | `skills/Prompting/Templates/Primitives/Structure.hbs` | Workflow patterns |+| Briefing template | `skills/Prompting/Templates/Primitives/Briefing.hbs` | Agent context handoff |+| Gate template | `skills/Prompting/Templates/Primitives/Gate.hbs` | Validation checklists |+| Render tool | `skills/Prompting/Tools/RenderTemplate.ts` | Template rendering CLI |+| Validate tool | `skills/Prompting/Tools/ValidateTemplate.ts` | Template validation |**Summary:**- **Files created:** 12+ (skill, standards, templates, tools)@@ -139,7 +139,7 @@ Five core primitives that cover 90% of prompt composition needs:## Component Overview```-$PAI_DIR/Skills/Prompting/+$PAI_DIR/skills/Prompting/├── SKILL.md # Skill routing and overview├── Standards.md # Complete prompt engineering guide├── Templates/@@ -555,17 +555,17 @@ gate:## Step 1: Create Directory Structure```bash-mkdir -p $PAI_DIR/Skills/Prompting/Templates/Primitives-mkdir -p $PAI_DIR/Skills/Prompting/Templates/Data/Examples-mkdir -p $PAI_DIR/Skills/Prompting/Templates/Compiled-mkdir -p $PAI_DIR/Skills/Prompting/Tools+mkdir -p $PAI_DIR/skills/Prompting/Templates/Primitives+mkdir -p $PAI_DIR/skills/Prompting/Templates/Data/Examples+mkdir -p $PAI_DIR/skills/Prompting/Templates/Compiled+mkdir -p $PAI_DIR/skills/Prompting/Tools```---## Step 2: Create SKILL.md-Save to `$PAI_DIR/Skills/Prompting/SKILL.md`:+Save to `$PAI_DIR/skills/Prompting/SKILL.md`:```markdown---@@ -616,7 +616,7 @@ Five core primitives for programmatic prompt generation:**RenderTemplate.ts** - Core rendering engine\`\`\`bash-bun run $PAI_DIR/Skills/Prompting/Tools/RenderTemplate.ts \+bun run $PAI_DIR/skills/Prompting/Tools/RenderTemplate.ts \--template Primitives/Briefing.hbs \--data path/to/data.yaml \--output path/to/output.md@@ -624,7 +624,7 @@ bun run $PAI_DIR/Skills/Prompting/Tools/RenderTemplate.ts \**ValidateTemplate.ts** - Template syntax checker\`\`\`bash-bun run $PAI_DIR/Skills/Prompting/Tools/ValidateTemplate.ts \+bun run $PAI_DIR/skills/Prompting/Tools/ValidateTemplate.ts \--template Primitives/Briefing.hbs\`\`\`@@ -669,7 +669,7 @@ User: "Check my new template for errors"## Step 3: Create Standards.md-Save to `$PAI_DIR/Skills/Prompting/Standards.md`:+Save to `$PAI_DIR/skills/Prompting/Standards.md`:```markdown---@@ -832,7 +832,7 @@ Focus on high-value tokens that drive desired outcomes.## Step 4: Create RenderTemplate.ts-Save to `$PAI_DIR/Skills/Prompting/Tools/RenderTemplate.ts`:+Save to `$PAI_DIR/skills/Prompting/Tools/RenderTemplate.ts`:```typescript#!/usr/bin/env bun@@ -1110,7 +1110,7 @@ if (import.meta.main) {## Step 5: Create ValidateTemplate.ts-Save to `$PAI_DIR/Skills/Prompting/Tools/ValidateTemplate.ts`:+Save to `$PAI_DIR/skills/Prompting/Tools/ValidateTemplate.ts`:```typescript#!/usr/bin/env bun@@ -1335,7 +1335,7 @@ if (import.meta.main) {### Roster.hbs-Save to `$PAI_DIR/Skills/Prompting/Templates/Primitives/Roster.hbs`:+Save to `$PAI_DIR/skills/Prompting/Templates/Primitives/Roster.hbs`:```handlebars{{!--@@ -1392,7 +1392,7 @@ Save to `$PAI_DIR/Skills/Prompting/Templates/Primitives/Roster.hbs`:### Briefing.hbs-Save to `$PAI_DIR/Skills/Prompting/Templates/Primitives/Briefing.hbs`:+Save to `$PAI_DIR/skills/Prompting/Templates/Primitives/Briefing.hbs`:```handlebars{{!--@@ -1478,7 +1478,7 @@ You are **{{agent.name}}**{{#if agent.personality.perspective}}, and your perspe### Structure.hbs-Save to `$PAI_DIR/Skills/Prompting/Templates/Primitives/Structure.hbs`:+Save to `$PAI_DIR/skills/Prompting/Templates/Primitives/Structure.hbs`:```handlebars{{!--@@ -1537,7 +1537,7 @@ Save to `$PAI_DIR/Skills/Prompting/Templates/Primitives/Structure.hbs`:### Voice.hbs-Save to `$PAI_DIR/Skills/Prompting/Templates/Primitives/Voice.hbs`:+Save to `$PAI_DIR/skills/Prompting/Templates/Primitives/Voice.hbs`:```handlebars{{!--@@ -1579,7 +1579,7 @@ Save to `$PAI_DIR/Skills/Prompting/Templates/Primitives/Voice.hbs`:### Gate.hbs-Save to `$PAI_DIR/Skills/Prompting/Templates/Primitives/Gate.hbs`:+Save to `$PAI_DIR/skills/Prompting/Templates/Primitives/Gate.hbs`:```handlebars{{!--@@ -1636,7 +1636,7 @@ Save to `$PAI_DIR/Skills/Prompting/Templates/Primitives/Gate.hbs`:## Step 7: Create Templates README-Save to `$PAI_DIR/Skills/Prompting/Templates/README.md`:+Save to `$PAI_DIR/skills/Prompting/Templates/README.md`:```markdown# PAI Templating System@@ -1680,7 +1680,7 @@ Handlebars notation (Anthropic's official syntax):### Basic Rendering```bash-bun run $PAI_DIR/Skills/Prompting/Tools/RenderTemplate.ts \+bun run $PAI_DIR/skills/Prompting/Tools/RenderTemplate.ts \--template Primitives/Roster.hbs \--data Data/Examples/Agents.yaml \--output Compiled/AgentRoster.md@@ -1689,7 +1689,7 @@ bun run $PAI_DIR/Skills/Prompting/Tools/RenderTemplate.ts \### Preview Without Writing```bash-bun run $PAI_DIR/Skills/Prompting/Tools/RenderTemplate.ts \+bun run $PAI_DIR/skills/Prompting/Tools/RenderTemplate.ts \--template Primitives/Briefing.hbs \--data Data/Examples/Briefing.yaml \--preview@@ -1709,7 +1709,7 @@ bun run $PAI_DIR/Skills/Prompting/Tools/RenderTemplate.ts \## Step 8: Install Dependencies```bash-cd $PAI_DIR/Skills/Prompting/Tools+cd $PAI_DIR/skills/Prompting/Toolsbun init -ybun add handlebars yaml```@@ -1739,10 +1739,10 @@ After installation, verify:```bash# Check directory structure-ls $PAI_DIR/Skills/Prompting/+ls $PAI_DIR/skills/Prompting/# Should show: SKILL.md Standards.md Templates/ Tools/-ls $PAI_DIR/Skills/Prompting/Templates/Primitives/+ls $PAI_DIR/skills/Prompting/Templates/Primitives/# Should show: Roster.hbs Voice.hbs Structure.hbs Briefing.hbs Gate.hbs# Test template rendering@@ -1759,14 +1759,14 @@ echo 'agents:- "Thorough"- "Precise"' > /tmp/test-agents.yaml-bun run $PAI_DIR/Skills/Prompting/Tools/RenderTemplate.ts \- --template $PAI_DIR/Skills/Prompting/Templates/Primitives/Roster.hbs \+bun run $PAI_DIR/skills/Prompting/Tools/RenderTemplate.ts \+ --template $PAI_DIR/skills/Prompting/Templates/Primitives/Roster.hbs \--data /tmp/test-agents.yaml \--preview# Validate a template-bun run $PAI_DIR/Skills/Prompting/Tools/ValidateTemplate.ts \- --template $PAI_DIR/Skills/Prompting/Templates/Primitives/Briefing.hbs+bun run $PAI_DIR/skills/Prompting/Tools/ValidateTemplate.ts \+ --template $PAI_DIR/skills/Prompting/Templates/Primitives/Briefing.hbs```---@@ -1814,7 +1814,7 @@ Handlebars.registerHelper('myHelper', (value: string) => {### Agents Skill```typescript-import { renderTemplate } from '$PAI_DIR/Skills/Prompting/Tools/RenderTemplate.ts';+import { renderTemplate } from '$PAI_DIR/skills/Prompting/Tools/RenderTemplate.ts';const prompt = renderTemplate({templatePath: 'Primitives/Briefing.hbs',diff --git a/Packs/kai-voice-system.md b/Packs/kai-voice-system.mdindex 86e6269b..c382852a 100644--- a/Packs/kai-voice-system.md+++ b/Packs/kai-voice-system.md@@ -367,8 +367,8 @@ elsefi# Check core install (REQUIRED - includes skills and identity)-if [ -d "$PAI_CHECK/Skills" ] && [ -f "$PAI_CHECK/Skills/CORE/SKILL.md" ]; then- echo "✓ kai-core-install is installed (Skills + CORE skill)"+if [ -d "$PAI_CHECK/skills" ] && [ -f "$PAI_CHECK/skills/CORE/SKILL.md" ]; then+ echo "✓ kai-core-install is installed (skills + CORE skill)"elseecho "❌ kai-core-install NOT installed - REQUIRED! Install it first."fidiff --git a/Tools/CheckPAIState.md b/Tools/CheckPAIState.mdindex de7b450f..c0e3fc42 100644--- a/Tools/CheckPAIState.md+++ b/Tools/CheckPAIState.md@@ -75,15 +75,15 @@ ls -la $PAI_DIR/hooks/capture-all-events.ts 2>/dev/null```bash# Check for history directory structure-ls -la $PAI_DIR/History/ 2>/dev/null+ls -la $PAI_DIR/history/ 2>/dev/null# Check for raw event logs-ls -la $PAI_DIR/History/raw-outputs/ 2>/dev/null+ls -la $PAI_DIR/history/raw-outputs/ 2>/dev/null# Check today's event file exists (if system is active)TODAY=$(date +%Y-%m-%d)MONTH=$(date +%Y-%m)-ls -la "$PAI_DIR/History/raw-outputs/$MONTH/${TODAY}_all-events.jsonl" 2>/dev/null+ls -la "$PAI_DIR/history/raw-outputs/$MONTH/${TODAY}_all-events.jsonl" 2>/dev/null```**Health indicators:**@@ -141,7 +141,7 @@ curl -s http://localhost:4000/health 2>/dev/null || echo "Observability server ncurl -s http://localhost:5172 2>/dev/null || echo "Observability dashboard not running"# Check for observability installation-ls -la $PAI_DIR/Observability/ 2>/dev/null+ls -la $PAI_DIR/observability/ 2>/dev/null```**Health indicators:**diff --git a/Tools/PAIBundleTemplate.md b/Tools/PAIBundleTemplate.mdindex 55a2bfd8..1333eae4 100644--- a/Tools/PAIBundleTemplate.md+++ b/Tools/PAIBundleTemplate.md@@ -348,7 +348,7 @@ export PAI_DIR="$HOME/.config/pai"export DA="YourAIName"# 2. Create directories-mkdir -p $PAI_DIR/{hooks,History,Skills,Tools}+mkdir -p $PAI_DIR/{hooks,history,skills,tools}# 3. Install each pack in order (give to your AI)```diff --git a/Tools/PAIPackTemplate.md b/Tools/PAIPackTemplate.mdindex 608ea26a..2b5d7b28 100644--- a/Tools/PAIPackTemplate.md+++ b/Tools/PAIPackTemplate.md@@ -114,7 +114,7 @@ Every pack MUST have a 256x256 transparent PNG icon immediately after the frontmWhen generating icons, you MUST use the `--remove-bg` flag to ensure actual transparency:```bash-bun run ~/.claude/Skills/Art/Tools/Generate.ts \+bun run ~/.claude/skills/Art/Tools/Generate.ts \--model nano-banana-pro \--prompt "[ICON_DESCRIPTION], simple flat icon design, 256x256 pixels. COLOR PALETTE: Background solid dark (#0a0a0f), Primary electric blue (#4a90d9), Accent purple (#8b5cf6). Simple enough to read at 64x64." \--size 1K \