Skip to content

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

fix: Address issues #259, #260, #261 - wizard clarity and pack manifests

Daniel Miessler197f08288c47
diff --git a/Bundles/Kai/install.ts b/Bundles/Kai/install.ts
index cfa59320..a34c4abe 100644
--- a/Bundles/Kai/install.ts
+++ b/Bundles/Kai/install.ts
@@ -832,6 +832,28 @@ ${config.elevenLabsVoiceId ? `export ELEVENLABS_VOICE_ID="${config.elevenLabsVoi
console.log(`ℹ PAI environment variables already exist in ${config.shellProfile}`);
}
+ // Also create .env file for packs to read (fixes #260)
+ console.log("Creating .env file for pack compatibility...");
+ const envFileContent = `# PAI Environment Configuration
+# Created by Kai Bundle installer - ${new Date().toISOString().split("T")[0]}
+# This file is read by packs during installation
+
+DA="${config.daName}"
+PAI_DIR="${config.paiDir}"
+TIME_ZONE="${config.timeZone}"
+${config.elevenLabsApiKey ? `ELEVENLABS_API_KEY="${config.elevenLabsApiKey}"` : "# ELEVENLABS_API_KEY="}
+${config.elevenLabsVoiceId ? `ELEVENLABS_VOICE_ID="${config.elevenLabsVoiceId}"` : "# ELEVENLABS_VOICE_ID="}
+`;
+ await Bun.write(`${paiDir}/.env`, envFileContent);
+ console.log(`✓ Created ${config.paiDir}/.env`);
+
+ // Export to current process for immediate use
+ process.env.PAI_DIR = config.paiDir;
+ process.env.DA = config.daName;
+ process.env.TIME_ZONE = config.timeZone;
+ if (config.elevenLabsApiKey) process.env.ELEVENLABS_API_KEY = config.elevenLabsApiKey;
+ if (config.elevenLabsVoiceId) process.env.ELEVENLABS_VOICE_ID = config.elevenLabsVoiceId;
+
// Summary
printHeader("INSTALLATION COMPLETE");
@@ -848,11 +870,16 @@ Your Kai system is configured with:
Next steps:
1. Reload your shell: source ${config.shellProfile}
- 2. Install the packs in order:
- - kai-hook-system
- - kai-history-system
- - kai-core-install
- - kai-voice-system
+
+ 2. Install the packs in order by asking your AI:
+ - "Install kai-hook-system pack"
+ - "Install kai-history-system pack"
+ - "Install kai-core-install pack"
+ - "Install kai-voice-system pack"
+
+ Each pack is a markdown file in Packs/. Give it to your AI
+ and ask it to install - it contains all instructions.
+
3. Restart Claude Code to activate hooks
Files created:
diff --git a/Packs/kai-agents-skill.md b/Packs/kai-agents-skill.md
index 81831f12..c7e15294 100644
--- a/Packs/kai-agents-skill.md
+++ b/Packs/kai-agents-skill.md
@@ -40,6 +40,24 @@ Please follow the installation instructions below to integrate this pack into yo
---
+## What's Included
+
+| 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 |
+
+**Summary:**
+- **Files created:** 8+ (skill, tool, workflows, data)
+- **Hooks registered:** 0 (skill-based, not hook-based)
+- **Dependencies:** kai-core-install (required), kai-voice-system (optional for voice)
+
+---
+
## The Concept and/or Problem
AI agent systems typically offer one-size-fits-all agents. You spawn "an agent" to do research, security review, or creative work - but they all have the same personality, same approach, same voice.
diff --git a/Packs/kai-art-skill.md b/Packs/kai-art-skill.md
index b5edc046..95bd19ed 100644
--- a/Packs/kai-art-skill.md
+++ b/Packs/kai-art-skill.md
@@ -43,6 +43,24 @@ Please follow the installation instructions below to integrate this pack into yo
---
+## What's Included
+
+| 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 |
+
+**Summary:**
+- **Files created:** 8+ (skill, tool, workflows)
+- **Hooks registered:** 0 (skill-based, not hook-based)
+- **Dependencies:** kai-core-install (required), API keys for image models
+
+---
+
## The Concept and/or Problem
AI image generation is powerful but inconsistent. Each request requires:
diff --git a/Packs/kai-core-install.md b/Packs/kai-core-install.md
index 07e36797..abd50958 100644
--- a/Packs/kai-core-install.md
+++ b/Packs/kai-core-install.md
@@ -56,6 +56,24 @@ Please follow the installation instructions below to integrate this Pack into yo
---
+## What's Included
+
+| 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 |
+| 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 |
+
+**Summary:**
+- **Files created:** 10+ (skill files, templates, tools)
+- **Hooks registered:** 0 (uses hook system from kai-hook-system)
+- **Dependencies:** kai-hook-system (required), kai-history-system (optional)
+
+---
+
# PART 1: THE PROBLEM
## Why You Need This
diff --git a/Packs/kai-history-system.md b/Packs/kai-history-system.md
index 50316229..fed6c426 100644
--- a/Packs/kai-history-system.md
+++ b/Packs/kai-history-system.md
@@ -43,6 +43,23 @@ Please follow the installation instructions below to integrate this pack into yo
---
+## What's Included
+
+| Component | File | Purpose |
+|-----------|------|---------|
+| Universal event capture | `hooks/capture-all-events.ts` | Log all events to JSONL for audit trail |
+| Stop hook | `hooks/stop-hook.ts` | Capture main agent completions and learnings |
+| Subagent stop hook | `hooks/subagent-stop-hook.ts` | Route subagent outputs by type |
+| Session summary | `hooks/capture-session-summary.ts` | Summarize sessions at close |
+| Metadata extraction lib | `hooks/lib/metadata-extraction.ts` | Extract agent instance metadata |
+
+**Summary:**
+- **Files created:** 5 + history directory structure
+- **Hooks registered:** 7 (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit)
+- **Dependencies:** kai-hook-system (required)
+
+---
+
## The Concept and/or Problem
AI agents are powerful but forgetful. Each session starts fresh with no memory of:
diff --git a/Packs/kai-hook-system.md b/Packs/kai-hook-system.md
index c7cfc8ec..f026eb6d 100644
--- a/Packs/kai-hook-system.md
+++ b/Packs/kai-hook-system.md
@@ -42,6 +42,23 @@ Please follow the installation instructions below to integrate this Pack into yo
---
+## What's Included
+
+| Component | File | Purpose |
+|-----------|------|---------|
+| Security validator | `hooks/security-validator.ts` | Block dangerous commands before execution |
+| Session initializer | `hooks/initialize-session.ts` | Set up session context and markers |
+| Context loader | `hooks/load-core-context.ts` | Load CORE skill at session start |
+| Tab title updater | `hooks/update-tab-titles.ts` | Update terminal tabs with task context |
+| Observability lib | `hooks/lib/observability.ts` | Event logging and dashboard integration |
+
+**Summary:**
+- **Files created:** 5
+- **Hooks registered:** 4 (PreToolUse, SessionStart ×2, UserPromptSubmit)
+- **Dependencies:** None (foundation pack)
+
+---
+
## The Concept and/or Problem
Claude Code fires events throughout its operation, but by default nothing listens to them:
diff --git a/Packs/kai-observability-server.md b/Packs/kai-observability-server.md
index 8b604a01..40007776 100644
--- a/Packs/kai-observability-server.md
+++ b/Packs/kai-observability-server.md
@@ -42,6 +42,24 @@ Please follow the installation instructions below to integrate this Pack into yo
---
+## What's Included
+
+| Component | File | Purpose |
+|-----------|------|---------|
+| WebSocket server | `Observability/server/index.ts` | HTTP API + WebSocket streaming |
+| File ingestion | `Observability/server/file-ingest.ts` | Watch JSONL and stream events |
+| Type definitions | `Observability/server/types.ts` | TypeScript interfaces |
+| Vue dashboard | `Observability/dashboard/App.vue` | Real-time monitoring UI |
+| Event capture hook | `hooks/capture-all-events.ts` | Capture all events to JSONL |
+| Metadata extraction | `hooks/lib/metadata-extraction.ts` | Agent instance tracking |
+
+**Summary:**
+- **Files created:** 8+ (server, dashboard, hooks)
+- **Hooks registered:** 7 (all event types via capture-all-events)
+- **Dependencies:** kai-hook-system (required)
+
+---
+
## The Concept and/or Problem
When running AI agents, especially multiple agents in parallel, you're flying blind:
diff --git a/Packs/kai-prompting-skill.md b/Packs/kai-prompting-skill.md
index 573da15f..4877c464 100644
--- a/Packs/kai-prompting-skill.md
+++ b/Packs/kai-prompting-skill.md
@@ -49,6 +49,27 @@ Please follow the installation instructions below to integrate this Pack into yo
---
+## What's Included
+
+| 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 |
+
+**Summary:**
+- **Files created:** 12+ (skill, standards, templates, tools)
+- **Hooks registered:** 0 (skill-based, not hook-based)
+- **Dependencies:** kai-core-install (required)
+
+---
+
# PART 1: THE PROBLEM
## Why You Need This
diff --git a/Packs/kai-voice-system.md b/Packs/kai-voice-system.md
index 43c1a1e8..92590783 100644
--- a/Packs/kai-voice-system.md
+++ b/Packs/kai-voice-system.md
@@ -45,6 +45,24 @@ Please follow the installation instructions below to integrate this Pack into yo
---
+## What's Included
+
+| Component | File | Purpose |
+|-----------|------|---------|
+| Voice stop hook | `hooks/stop-hook-voice.ts` | Main agent voice notification |
+| Subagent voice hook | `hooks/subagent-stop-hook-voice.ts` | Subagent voice notification |
+| Prosody enhancer | `hooks/lib/prosody-enhancer.ts` | Add emotion/pauses to speech |
+| Voice server | `voice/server.ts` | HTTP server for TTS requests |
+| Server management | `voice/manage.sh` | Start/stop/restart server |
+| LaunchAgent | `com.pai.voice-server.plist` | Auto-start on login (macOS) |
+
+**Summary:**
+- **Files created:** 6
+- **Hooks registered:** 2 (Stop, SubagentStop)
+- **Dependencies:** kai-hook-system (required), kai-core-install (required), ElevenLabs API key
+
+---
+
## The Concept and/or Problem
AI agents complete work constantly, but you only know if you're watching the screen:
diff --git a/Tools/PAIPackTemplate.md b/Tools/PAIPackTemplate.md
index a795f1f1..912908e7 100644
--- a/Tools/PAIPackTemplate.md
+++ b/Tools/PAIPackTemplate.md
@@ -196,6 +196,45 @@ Please follow the installation instructions below to integrate this pack into yo
---
+## What's Included
+<!--
+(256 words max)
+
+INSTRUCTIONS FOR AI: Provide a quick manifest of what this pack creates.
+This gives users an at-a-glance summary of the pack's contents BEFORE
+they commit to installation.
+
+Include:
+- A table with Component | File | Purpose columns
+- Summary counts: Files created, Hooks registered, Dependencies
+- This section is REQUIRED for all packs
+
+Example:
+| Component | File | Purpose |
+|-----------|------|---------|
+| Session initializer | `hooks/initialize-session.ts` | Sets up session context |
+| Security validator | `hooks/security-validator.ts` | Blocks dangerous commands |
+| Observability lib | `hooks/lib/observability.ts` | Event logging to dashboard |
+
+**Summary:**
+- **Files created:** 3
+- **Hooks registered:** 2
+- **Dependencies:** kai-hook-system (required)
+-->
+
+| Component | File | Purpose |
+|-----------|------|---------|
+| [Component 1] | `path/to/file1.ts` | [What it does] |
+| [Component 2] | `path/to/file2.ts` | [What it does] |
+| [Library 1] | `hooks/lib/library.ts` | [Shared functionality] |
+
+**Summary:**
+- **Files created:** [N]
+- **Hooks registered:** [N]
+- **Dependencies:** [List or "None"]
+
+---
+
## The Concept and/or Problem
<!--
(2048 words max)
@@ -1032,6 +1071,7 @@ Format: ### {version} - {YYYY-MM-DD}
| Section | Word Limit | Purpose |
|---------|------------|---------|
| `## Installation Prompt` | 512 | Context briefing for receiving AI |
+| `## What's Included` | 256 | Quick manifest of pack contents |
| `## The Concept and/or Problem` | 2048 | What problem does this solve? |
| `## The Solution` | 4096 | How does this pack solve it? |
| `## Why This Is Different` | 128 | Differentiation from similar solutions |