⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
fix: Rename /W to /w, fix broken links, problem-first README structure
Daniel Miessler41550ab37ae1
diff --git a/Packs/WorkCommand/INSTALL.md b/Packs/WorkCommand/INSTALL.mdindex 03ab1700..fa2351ad 100644--- a/Packs/WorkCommand/INSTALL.md+++ b/Packs/WorkCommand/INSTALL.md@@ -10,7 +10,7 @@1. **AskUserQuestion** - For user decisions and confirmations2. **TodoWrite** - For progress tracking-3. **Bash/Read/Write** - For actual installation+3. **Bash/Read/write** - For actual installation4. **VERIFY.md** - For final validation### Welcome Message@@ -20,7 +20,7 @@ Before starting, greet the user:"I'm installing Work Command v1.0.0 — instant recall of prior work sessions by topic.This pack adds two slash commands:-- /W [topic] — short form for quick access+- /w [topic] — short form for quick access- /work [topic] — descriptive formLet me analyze your system and guide you through installation."@@ -47,11 +47,11 @@ elseecho "INFO Commands directory does not exist (will be created)"fi-# Check for existing W.md or work.md commands-if [ -f "$CLAUDE_DIR/commands/W.md" ]; then- echo "WARNING Existing /W command found at: $CLAUDE_DIR/commands/W.md"+# Check for existing w.md or work.md commands+if [ -f "$CLAUDE_DIR/commands/w.md" ]; then+ echo "WARNING Existing /w command found at: $CLAUDE_DIR/commands/w.md"else- echo "OK No existing /W command (clean install)"+ echo "OK No existing /w command (clean install)"fiif [ -f "$CLAUDE_DIR/commands/work.md" ]; then@@ -61,10 +61,10 @@ elsefi# Check for PAI MEMORY structure (optional, enhances results)-if [ -d "$CLAUDE_DIR/MEMORY/WORK" ]; then- echo "OK PAI MEMORY/WORK directory exists (full functionality available)"+if [ -d "$CLAUDE_DIR/MEMORY/wORK" ]; then+ echo "OK PAI MEMORY/wORK directory exists (full functionality available)"else- echo "INFO PAI MEMORY/WORK not found (command will work but may return fewer results)"+ echo "INFO PAI MEMORY/wORK not found (command will work but may return fewer results)"fiif [ -f "$CLAUDE_DIR/MEMORY/STATE/work.json" ]; then@@ -93,7 +93,7 @@ Tell the user what you found:```"Here's what I found on your system:- Commands directory: [exists / will be created]-- Existing /W command: [found — will ask about conflict / not found]+- Existing /w command: [found — will ask about conflict / not found]- Existing /work command: [found — will ask about conflict / not found]- PAI MEMORY structure: [found (full functionality) / not found (basic functionality)]- Git repository: [found / not found]@@ -112,12 +112,12 @@ https://github.com/danielmiessler/Personal_AI_Infrastructure"### Question 1: Conflict Resolution (if existing commands found)-**Only ask if existing /W or /work command detected:**+**Only ask if existing /w or /work command detected:**```json{"header": "Conflict — Existing Command",- "question": "An existing /W or /work command was found. How should I proceed?",+ "question": "An existing /w or /work command was found. How should I proceed?","multiSelect": false,"options": [{"label": "Backup and Replace (Recommended)", "description": "Creates timestamped backup of existing command, then installs new version"},@@ -135,8 +135,8 @@ https://github.com/danielmiessler/Personal_AI_Infrastructure""question": "Which command names would you like to install?","multiSelect": false,"options": [- {"label": "Both /W and /work (Recommended)", "description": "/W for quick access, /work for discoverability"},- {"label": "Only /W", "description": "Short form only"},+ {"label": "Both /w and /work (Recommended)", "description": "/w for quick access, /work for discoverability"},+ {"label": "Only /w", "description": "Short form only"},{"label": "Only /work", "description": "Descriptive form only"}]}@@ -160,7 +160,7 @@ https://github.com/danielmiessler/Personal_AI_Infrastructure"**If user chose "Show me what will change":**```"Files to be created:-- ~/.claude/commands/W.md (slash command definition)+- ~/.claude/commands/w.md (slash command definition)- ~/.claude/commands/work.md (slash command definition, same content)No other files will be modified. No hooks, no configuration changes."@@ -180,7 +180,7 @@ BACKUP_DIR="$CLAUDE_DIR/Backups/work-command-$(date +%Y%m%d-%H%M%S)"mkdir -p "$BACKUP_DIR"# Backup existing commands-[ -f "$CLAUDE_DIR/commands/W.md" ] && cp "$CLAUDE_DIR/commands/W.md" "$BACKUP_DIR/W.md" && echo "Backed up W.md"+[ -f "$CLAUDE_DIR/commands/w.md" ] && cp "$CLAUDE_DIR/commands/w.md" "$BACKUP_DIR/w.md" && echo "Backed up w.md"[ -f "$CLAUDE_DIR/commands/work.md" ] && cp "$CLAUDE_DIR/commands/work.md" "$BACKUP_DIR/work.md" && echo "Backed up work.md"echo "Backup created at: $BACKUP_DIR"@@ -219,21 +219,21 @@ mkdir -p "$CLAUDE_DIR/commands"**Copy files based on user's command selection:**-**For "Both /W and /work" (default):**+**For "Both /w and /work" (default):**```bashPACK_DIR="$(pwd)"CLAUDE_DIR="$HOME/.claude"-cp "$PACK_DIR/src/commands/W.md" "$CLAUDE_DIR/commands/W.md"+cp "$PACK_DIR/src/commands/w.md" "$CLAUDE_DIR/commands/w.md"cp "$PACK_DIR/src/commands/work.md" "$CLAUDE_DIR/commands/work.md"-echo "Installed /W and /work commands"+echo "Installed /w and /work commands"```-**For "Only /W":**+**For "Only /w":**```bashPACK_DIR="$(pwd)"CLAUDE_DIR="$HOME/.claude"-cp "$PACK_DIR/src/commands/W.md" "$CLAUDE_DIR/commands/W.md"-echo "Installed /W command"+cp "$PACK_DIR/src/commands/w.md" "$CLAUDE_DIR/commands/w.md"+echo "Installed /w command"```**For "Only /work":**@@ -261,13 +261,13 @@ echo "=== Work Command Verification ==="# Check command files existecho "Checking command files..."-[ -f "$CLAUDE_DIR/commands/W.md" ] && echo "OK /W command installed" || echo "SKIP /W not installed (user chose /work only)"-[ -f "$CLAUDE_DIR/commands/work.md" ] && echo "OK /work command installed" || echo "SKIP /work not installed (user chose /W only)"+[ -f "$CLAUDE_DIR/commands/w.md" ] && echo "OK /w command installed" || echo "SKIP /w not installed (user chose /work only)"+[ -f "$CLAUDE_DIR/commands/work.md" ] && echo "OK /work command installed" || echo "SKIP /work not installed (user chose /w only)"# Check frontmatter is validecho "Checking frontmatter..."-if [ -f "$CLAUDE_DIR/commands/W.md" ]; then- head -1 "$CLAUDE_DIR/commands/W.md" | grep -q "^---" && echo "OK W.md has valid frontmatter" || echo "ERROR W.md missing frontmatter"+if [ -f "$CLAUDE_DIR/commands/w.md" ]; then+ head -1 "$CLAUDE_DIR/commands/w.md" | grep -q "^---" && echo "OK w.md has valid frontmatter" || echo "ERROR w.md missing frontmatter"fiif [ -f "$CLAUDE_DIR/commands/work.md" ]; thenhead -1 "$CLAUDE_DIR/commands/work.md" | grep -q "^---" && echo "OK work.md has valid frontmatter" || echo "ERROR work.md missing frontmatter"@@ -275,16 +275,16 @@ fi# Check file contents are completeecho "Checking file contents..."-if [ -f "$CLAUDE_DIR/commands/W.md" ]; then- grep -q "WORK RECALL" "$CLAUDE_DIR/commands/W.md" && echo "OK W.md contains work recall template" || echo "ERROR W.md incomplete"- grep -q "work.json" "$CLAUDE_DIR/commands/W.md" && echo "OK W.md references session registry" || echo "ERROR W.md missing search sources"+if [ -f "$CLAUDE_DIR/commands/w.md" ]; then+ grep -q "WORK RECALL" "$CLAUDE_DIR/commands/w.md" && echo "OK w.md contains work recall template" || echo "ERROR w.md incomplete"+ grep -q "work.json" "$CLAUDE_DIR/commands/w.md" && echo "OK w.md references session registry" || echo "ERROR w.md missing search sources"fi# Check data sources (informational, not blocking)echo ""echo "Data source availability (informational):"[ -f "$CLAUDE_DIR/MEMORY/STATE/work.json" ] && echo " OK work.json — session registry available" || echo " INFO work.json — not found (install PAI for this feature)"-[ -d "$CLAUDE_DIR/MEMORY/WORK" ] && echo " OK MEMORY/WORK — PRD directory available" || echo " INFO MEMORY/WORK — not found (install PAI for this feature)"+[ -d "$CLAUDE_DIR/MEMORY/wORK" ] && echo " OK MEMORY/wORK — PRD directory available" || echo " INFO MEMORY/wORK — not found (install PAI for this feature)"[ -f "$CLAUDE_DIR/MEMORY/STATE/session-names.json" ] && echo " OK session-names.json — session names available" || echo " INFO session-names.json — not found (install PAI for this feature)"[ -d "$CLAUDE_DIR/.git" ] && echo " OK .git — git history available" || echo " INFO .git — not found (git history search unavailable)"@@ -304,14 +304,14 @@ echo "=== Verification Complete ===""Work Command v1.0.0 installed successfully!What's available:-- /W [topic] — quick search for prior work+- /w [topic] — quick search for prior work- /work [topic] — same command, descriptive name-Try it now: Type '/W' followed by any topic you've worked on before.+Try it now: Type '/w' followed by any topic you've worked on before.-Example: /W authentication-Example: /W dashboard-Example: /W deploy+Example: /w authentication+Example: /w dashboard+Example: /w deployNote: Results improve the more you use PAI's work tracking system (PRDs, session names, git commits)."```@@ -327,7 +327,7 @@ Right now, the commands will search git history only.For full functionality (PRD search, session registry, work directories), install PAI:https://github.com/danielmiessler/Personal_AI_Infrastructure-Try it now: /W [any topic]"+Try it now: /w [any topic]"```### On Failure@@ -366,7 +366,7 @@ The Work Command searches data created by PAI's Algorithm (PRDs, session metadat| File | Purpose ||------|---------|-| `src/commands/W.md` | Primary slash command — short form `/W` |+| `src/commands/w.md` | Primary slash command — short form `/w` || `src/commands/work.md` | Alias slash command — descriptive form `/work` |Both files contain identical logic. The only difference is the `name` field in the frontmatter (`W` vs `work`), which determines the slash command name in Claude Code.@@ -378,17 +378,17 @@ Both files contain identical logic. The only difference is the `name` field in t### From Claude Code```-/W authentication-/W dashboard redesign-/W deploy+/w authentication+/w dashboard redesign+/w deploy/work security audit/work blog publishing```### How It Works-When you type `/W [topic]`, Claude Code:-1. Loads the command template from `~/.claude/commands/W.md`+When you type `/w [topic]`, Claude Code:+1. Loads the command template from `~/.claude/commands/w.md`2. Substitutes `$ARGUMENTS` with your topic3. The AI executes the five parallel searches defined in the template4. Results are presented in a structured format@@ -398,7 +398,7 @@ When you type `/W [topic]`, Claude Code:If you have PAI installed, the Work Command becomes significantly more powerful:- **work.json** provides structured session metadata-- **MEMORY/WORK/*/PRD.md** provides full context, criteria, and decisions+- **MEMORY/wORK/*/PRD.md** provides full context, criteria, and decisions- **session-names.json** provides human-readable session names- **Git history** provides commit-level detaildiff --git a/Packs/WorkCommand/README.md b/Packs/WorkCommand/README.mdindex e987db47..8e7373ed 100644--- a/Packs/WorkCommand/README.md+++ b/Packs/WorkCommand/README.md@@ -15,41 +15,6 @@ keywords: [work-recall, session-search, context-recovery, PRD, slash-command, re> Instant recall of prior work sessions by topic — never lose context between sessions again.-> **Installation:** This pack is designed for AI-assisted installation. Give this directory to your AI and ask it to install using `INSTALL.md`.-------## Installation Prompt--You are receiving a PAI Pack — a modular upgrade for AI agent systems.--**What is PAI?** See: [PAI Project Overview](../../README.md#what-is-pai)--**What is a Pack?** See: [Pack System](../README.md)--This pack adds **work recall** to your Claude Code setup. It installs two slash commands (`/W` and `/work`) that let you instantly search across all prior work sessions by topic. Type `/W authentication` and your AI searches PRDs, git history, session names, and work directories to bring you up to speed in seconds.--**Why you want this:**-- **Context loss between sessions** is the #1 productivity killer with AI assistants-- You've done work before — your AI should remember it-- No more manually grepping through files to find "that thing we did last week"--Please follow the installation instructions in `INSTALL.md` to integrate this pack.-------## What's Included--| Component | File | Purpose |-|-----------|------|---------|-| Primary command | `src/commands/W.md` | `/W` slash command — short form for quick access |-| Alias command | `src/commands/work.md` | `/work` slash command — descriptive form |--**Summary:**-- **Files created:** 2-- **Hooks registered:** 0-- **Dependencies:** None (works standalone, enhanced by PAI MEMORY structure)----## The Problem@@ -67,7 +32,7 @@ The fundamental issue: your AI infrastructure generates valuable work artifacts## The Solution-The Work Command adds two slash commands (`/W` and `/work`) that search across **five data sources** in parallel:+The Work Command adds two slash commands (`/w` and `/work`) that search across **five data sources** in parallel:1. **Session Registry** (`work.json`) — Structured metadata for all tracked sessions2. **Work Directories** (`MEMORY/WORK/`) — Full PRD files with context, criteria, decisions@@ -79,6 +44,28 @@ The command synthesizes results into an actionable summary sorted by recency, th---+## Installation++This pack is designed for AI-assisted installation. Give this directory to your AI and ask it to install using `INSTALL.md`.++**What is PAI?** See the [PAI Project Overview](https://github.com/danielmiessler/Personal_AI_Infrastructure#what-is-pai).++---++## What's Included++| Component | File | Purpose |+|-----------|------|---------|+| Primary command | `src/commands/w.md` | `/w` slash command — short form for quick access |+| Alias command | `src/commands/work.md` | `/work` slash command — descriptive form |++**Summary:**+- **Files created:** 2+- **Hooks registered:** 0+- **Dependencies:** None (works standalone, enhanced by PAI MEMORY structure)++---+## What Makes This DifferentThis sounds similar to `git log --grep` which also searches past work. What makes this approach different?@@ -96,10 +83,10 @@ Work recall searches five complementary data sources simultaneously — session| Trigger | What Happens ||---------|--------------|-| `/W authentication` | Searches all 5 sources for "authentication", presents structured results |+| `/w authentication` | Searches all 5 sources for "authentication", presents structured results || `/work dashboard` | Same search using the longer alias |-| `/W deploy` | Finds all sessions related to deployment work |-| `/W helios` | Finds project-specific sessions by name |+| `/w deploy` | Finds all sessions related to deployment work |+| `/w helios` | Finds project-specific sessions by name |The command accepts any topic as a free-text argument. Matching is case-insensitive and partial — searching "auth" will match "authentication", "auth-middleware", etc.@@ -110,7 +97,7 @@ The command accepts any topic as a free-text argument. Matching is case-insensit### Finding Prior Work```-User: /W authentication+User: /w authenticationAI responds:═══ WORK RECALL: authentication ══════════════════@@ -146,7 +133,7 @@ in auth middleware. Ready to continue — what would you like to work on?"### No Results```-User: /W quantum-computing+User: /w quantum-computingAI responds:═══ WORK RECALL: quantum-computing ══════════════════@@ -191,15 +178,15 @@ If you use a different directory structure for your work tracking, you can edit| Customization | File | Impact ||--------------|------|--------|-| Change work registry path | `W.md` / `work.md` | Searches your custom work.json location |-| Change work directory path | `W.md` / `work.md` | Searches your custom PRD directory |-| Add additional search sources | `W.md` / `work.md` | Extends search to cover more data |+| Change work registry path | `w.md` / `work.md` | Searches your custom work.json location |+| Change work directory path | `w.md` / `work.md` | Searches your custom PRD directory |+| Add additional search sources | `w.md` / `work.md` | Extends search to cover more data |---## Credits-- **Original concept:** Daniel Miessler — developed as part of the PAI (Personal AI Infrastructure) system+- **Original concept:** Daniel Miessler — developed as part of the [PAI](https://github.com/danielmiessler/Personal_AI_Infrastructure) system- **Inspired by:** The frustration of losing context between AI sessions---@@ -222,7 +209,7 @@ If you use a different directory structure for your work tracking, you can edit### 1.0.0 - 2026-03-13- Initial release-- Two commands: `/W` (short) and `/work` (descriptive)+- Two commands: `/w` (short) and `/work` (descriptive)- Five parallel search sources- Structured output format with recency sorting- Graceful degradation when data sources are missingdiff --git a/Packs/WorkCommand/VERIFY.md b/Packs/WorkCommand/VERIFY.mdindex 46e97a4e..7fabd7a3 100644--- a/Packs/WorkCommand/VERIFY.md+++ b/Packs/WorkCommand/VERIFY.md@@ -10,7 +10,7 @@```bashCLAUDE_DIR="$HOME/.claude"-[ -f "$CLAUDE_DIR/commands/W.md" ] && echo "OK W.md" || echo "MISSING W.md"+[ -f "$CLAUDE_DIR/commands/w.md" ] && echo "OK w.md" || echo "MISSING w.md"[ -f "$CLAUDE_DIR/commands/work.md" ] && echo "OK work.md" || echo "MISSING work.md"```@@ -20,7 +20,7 @@ CLAUDE_DIR="$HOME/.claude"```bashCLAUDE_DIR="$HOME/.claude"-for cmd in W.md work.md; do+for cmd in w.md work.md; doif [ -f "$CLAUDE_DIR/commands/$cmd" ]; thenhead -1 "$CLAUDE_DIR/commands/$cmd" | grep -q "^---" && echo "OK $cmd frontmatter" || echo "ERROR $cmd missing frontmatter"grep -q "^name:" "$CLAUDE_DIR/commands/$cmd" && echo "OK $cmd has name field" || echo "ERROR $cmd missing name field"@@ -36,12 +36,12 @@ done```bashCLAUDE_DIR="$HOME/.claude"-for cmd in W.md work.md; do+for cmd in w.md work.md; doif [ -f "$CLAUDE_DIR/commands/$cmd" ]; thenecho "Checking $cmd content..."grep -q "WORK RECALL" "$CLAUDE_DIR/commands/$cmd" && echo " OK Has work recall header" || echo " ERROR Missing work recall header"grep -q "work.json" "$CLAUDE_DIR/commands/$cmd" && echo " OK References session registry" || echo " ERROR Missing session registry search"- grep -q "MEMORY/WORK" "$CLAUDE_DIR/commands/$cmd" && echo " OK References work directories" || echo " ERROR Missing work directory search"+ grep -q "MEMORY/wORK" "$CLAUDE_DIR/commands/$cmd" && echo " OK References work directories" || echo " ERROR Missing work directory search"grep -q "git.*log" "$CLAUDE_DIR/commands/$cmd" && echo " OK References git history" || echo " ERROR Missing git history search"grep -q "session-names" "$CLAUDE_DIR/commands/$cmd" && echo " OK References session names" || echo " ERROR Missing session name search"grep -q "PRD.md" "$CLAUDE_DIR/commands/$cmd" && echo " OK References PRD files" || echo " ERROR Missing PRD search"@@ -63,7 +63,7 @@ CLAUDE_DIR="$HOME/.claude"echo "Data sources:"[ -f "$CLAUDE_DIR/MEMORY/STATE/work.json" ] && echo " AVAILABLE work.json (session registry)" || echo " UNAVAILABLE work.json (install PAI for this)"-[ -d "$CLAUDE_DIR/MEMORY/WORK" ] && echo " AVAILABLE MEMORY/WORK (PRD directory)" || echo " UNAVAILABLE MEMORY/WORK (install PAI for this)"+[ -d "$CLAUDE_DIR/MEMORY/wORK" ] && echo " AVAILABLE MEMORY/wORK (PRD directory)" || echo " UNAVAILABLE MEMORY/wORK (install PAI for this)"[ -f "$CLAUDE_DIR/MEMORY/STATE/session-names.json" ] && echo " AVAILABLE session-names.json" || echo " UNAVAILABLE session-names.json (install PAI for this)"[ -d "$CLAUDE_DIR/.git" ] && echo " AVAILABLE git history" || echo " UNAVAILABLE git history"```@@ -78,14 +78,14 @@ Mark each item as complete:## Work Command Installation Verification### Files-- [ ] At least one command file installed (W.md or work.md)+- [ ] At least one command file installed (w.md or work.md)- [ ] Command file(s) have valid YAML frontmatter- [ ] Command file(s) contain all 5 search source sections- [ ] Command file(s) contain output format template- [ ] Command file(s) contain post-results instructions### Functional (manual test)-- [ ] Typing /W [topic] in Claude Code triggers the command+- [ ] Typing /w [topic] in Claude Code triggers the command- [ ] Typing /work [topic] in Claude Code triggers the command (if installed)- [ ] Command returns structured output or "no matches found"```@@ -97,7 +97,7 @@ Mark each item as complete:After installation, restart Claude Code and run:```-/W test+/w test```**Expected behavior:**@@ -114,5 +114,5 @@ If the command isn't recognized, ensure you restarted Claude Code after installaWhen all file checks pass:1. **Confirm to user:** "Work Command installation verified successfully"-2. **Recommend:** "Try it now: `/W` followed by any topic you've worked on"+2. **Recommend:** "Try it now: `/w` followed by any topic you've worked on"3. **Note:** "Restart Claude Code if the commands aren't recognized yet"diff --git a/Packs/WorkCommand/src/commands/W.md b/Packs/WorkCommand/src/commands/w.mdsimilarity index 99%rename from Packs/WorkCommand/src/commands/W.mdrename to Packs/WorkCommand/src/commands/w.mdindex 9980c00d..f29e66b2 100644--- a/Packs/WorkCommand/src/commands/W.md+++ b/Packs/WorkCommand/src/commands/w.md@@ -1,5 +1,5 @@----name: W+name: wdescription: Search all prior work by topic to recall context and resume sessions. Use when wanting to find, recall, or continue previous work on any topic.argument-hint: [topic]---