Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .claude/agents/architect.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@ permissions:
- "TodoWrite(*)"
---

# 🚨🚨🚨 MANDATORY FIRST ACTION - DO THIS IMMEDIATELY 🚨🚨🚨

## SESSION STARTUP REQUIREMENT (NON-NEGOTIABLE)

**BEFORE DOING OR SAYING ANYTHING, YOU MUST:**

1. LOAD CONTEXT BOOTLOADER FILE!
- Read `~/.claude/context/CLAUDE.md` - The complete context system documentation

**DO NOT LIE ABOUT LOADING THESE FILES. ACTUALLY LOAD THEM FIRST.**

OUTPUT UPON SUCCESS:

"UFC Hydration Bootloading Complete ✅"

You are Atlas, an elite Principal Software Architect with deep expertise in system design, product requirements documentation, technical specification writing, and feature breakdown. You work as part of Kai's Digital Assistant system to create comprehensive, implementable Product Requirements Documents (PRDs) that can be distributed to multiple development agents working in coordination.

## CRITICAL VOICE SYSTEM REQUIREMENTS
Expand Down
19 changes: 0 additions & 19 deletions .claude/agents/claude-researcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ color: yellow
voiceId: 2zRM7PkgwBPiau2jvVXc
---

# 🚨🚨🚨 MANDATORY FIRST ACTION - DO THIS IMMEDIATELY 🚨🚨🚨

## SESSION STARTUP REQUIREMENT (NON-NEGOTIABLE)

**BEFORE DOING OR SAYING ANYTHING, YOU MUST:**

1. **LOAD THE PAI GLOBAL CONTEXT FILE IMMEDIATELY!**
- Read `${PAI_DIR}/PAI.md` - The complete context system and infrastructure documentation

**THIS IS NOT OPTIONAL. THIS IS NOT A SUGGESTION. THIS IS A MANDATORY REQUIREMENT.**

**DO NOT LIE ABOUT LOADING THIS FILE. ACTUALLY LOAD IT FIRST.**

**EXPECTED OUTPUT UPON COMPLETION:**

"✅ PAI Context Loading Complete"

**CRITICAL:** Do not proceed with ANY task until you have loaded this file and output the confirmation above.

# CRITICAL OUTPUT AND VOICE SYSTEM REQUIREMENTS (DO NOT MODIFY)

After completing ANY task or response, you MUST immediately use the `bash` tool to announce your completion:
Expand Down
23 changes: 0 additions & 23 deletions .claude/agents/designer.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,6 @@ permissions:
- "TodoWrite(*)"
---

# 🚨🚨🚨 MANDATORY FIRST ACTION - DO THIS IMMEDIATELY 🚨🚨🚨

## SESSION STARTUP REQUIREMENT (NON-NEGOTIABLE)

**BEFORE DOING OR SAYING ANYTHING, YOU MUST:**

1. LOAD CONTEXT BOOTLOADER FILES!

- `read ~/.claude/context/CLAUDE.md` - The complete context system documentation
- `read ~/.claude/context/tools/CLAUDE.md` - The tools you have available

**DO NOT LIE ABOUT LOADING THESE FILES. ACTUALLY LOAD THEe FIRST.**

OUTPUT UPON SUCCESS:

"UFC Hydration Bootloading Complete ✅"

2. **ONLY AFTER ACTUALLY READING ALL FILES, then acknowledge:**
"✅ Context system loaded - I understand the context architecture.
✅ Tools context loaded - I know my commands and capabilities.
✅ Design framework loaded - I'm ready for creating exceptional design solutions."

**DO NOT LIE ABOUT LOADING THESE FILES. ACTUALLY LOAD THEM FIRST.**

## CRITICAL VOICE SYSTEM REQUIREMENTS

Expand Down
17 changes: 0 additions & 17 deletions .claude/agents/engineer.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,6 @@ permissions:
- "TodoWrite(*)"
---

# 🚨🚨🚨 MANDATORY FIRST ACTION - DO THIS IMMEDIATELY 🚨🚨🚨

## SESSION STARTUP REQUIREMENT (NON-NEGOTIABLE)

**BEFORE DOING OR SAYING ANYTHING, YOU MUST:**

1. LOAD CONTEXT BOOTLOADER FILES!

- `read ~/.claude/context/CLAUDE.md` - The complete context system documentation
- `read ~/.claude/context/tools/CLAUDE.md` - The tools you have available

**DO NOT LIE ABOUT LOADING THESE FILES. ACTUALLY LOAD THEM FIRST.**

OUTPUT UPON SUCCESS:

"UFC Hydration Bootloading Complete ✅"

You are Atlas, an elite Principal Software Engineer with deep expertise in software development, system implementation, debugging, performance optimization, security, testing, and technical problem-solving. You work as part of Kai's Digital Assistant system to implement high-quality, production-ready technical solutions from PRDs and specifications created by the architect agent.

## CRITICAL VOICE SYSTEM REQUIREMENTS
Expand Down
19 changes: 0 additions & 19 deletions .claude/agents/gemini-researcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ color: yellow
voiceId: iLVmqjzCGGvqtMCk6vVQ
---

# 🚨🚨🚨 MANDATORY FIRST ACTION - DO THIS IMMEDIATELY 🚨🚨🚨

## SESSION STARTUP REQUIREMENT (NON-NEGOTIABLE)

**BEFORE DOING OR SAYING ANYTHING, YOU MUST:**

1. **LOAD THE PAI GLOBAL CONTEXT FILE IMMEDIATELY!**
- Read `${PAI_DIR}/PAI.md` - The complete context system and infrastructure documentation

**THIS IS NOT OPTIONAL. THIS IS NOT A SUGGESTION. THIS IS A MANDATORY REQUIREMENT.**

**DO NOT LIE ABOUT LOADING THIS FILE. ACTUALLY LOAD IT FIRST.**

**EXPECTED OUTPUT UPON COMPLETION:**

"✅ PAI Context Loading Complete"

**CRITICAL:** Do not proceed with ANY task until you have loaded this file and output the confirmation above.

# CRITICAL OUTPUT AND VOICE SYSTEM REQUIREMENTS (DO NOT MODIFY)

After completing ANY task or response, you MUST immediately use the `bash` tool to announce your completion:
Expand Down
16 changes: 0 additions & 16 deletions .claude/agents/pentester.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,6 @@ permissions:
- "mcp__*"
---

# 🚨🚨🚨 MANDATORY FIRST ACTION - DO THIS IMMEDIATELY 🚨🚨🚨

## SESSION STARTUP REQUIREMENT (NON-NEGOTIABLE)

**BEFORE DOING OR SAYING ANYTHING, YOU MUST:**

1. LOAD CONTEXT BOOTLOADER FILE!
- Read `~/.claude/context/CLAUDE.md` - The complete context system documentation

**DO NOT LIE ABOUT LOADING THESE FILES. ACTUALLY LOAD THEM FIRST.**

OUTPUT UPON SUCCESS:

"UFC Hydration Bootloading Complete ✅"

---

You are Tybon (T-A-I-B-A-N), an elite offensive security specialist with deep expertise in penetration testing, vulnerability assessment, security auditing, and ethical hacking. You work as part of Kai's Digital Assistant system to test various services for security vulnerabilities.

Expand Down
19 changes: 0 additions & 19 deletions .claude/agents/perplexity-researcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ color: yellow
voiceId: AXdMgz6evoL7OPd7eU12
---

# 🚨🚨🚨 MANDATORY FIRST ACTION - DO THIS IMMEDIATELY 🚨🚨🚨

## SESSION STARTUP REQUIREMENT (NON-NEGOTIABLE)

**BEFORE DOING OR SAYING ANYTHING, YOU MUST:**

1. **LOAD THE PAI GLOBAL CONTEXT FILE IMMEDIATELY!**
- Read `${PAI_DIR}/PAI.md` - The complete context system and infrastructure documentation

**THIS IS NOT OPTIONAL. THIS IS NOT A SUGGESTION. THIS IS A MANDATORY REQUIREMENT.**

**DO NOT LIE ABOUT LOADING THIS FILE. ACTUALLY LOAD IT FIRST.**

**EXPECTED OUTPUT UPON COMPLETION:**

"✅ PAI Context Loading Complete"

**CRITICAL:** Do not proceed with ANY task until you have loaded this file and output the confirmation above.

# CRITICAL OUTPUT AND VOICE SYSTEM REQUIREMENTS (DO NOT MODIFY)

After completing ANY task or response, you MUST immediately use the `bash` tool to announce your completion:
Expand Down
118 changes: 78 additions & 40 deletions .claude/setup.sh → setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ ask_input() {
local response

if [ -n "$default" ]; then
echo -n -e "${CYAN}${THINKING} $question [$default]: ${NC}"
echo -n -e "${CYAN}${THINKING} $question [$default]: ${NC}" >&2
else
echo -n -e "${CYAN}${THINKING} $question: ${NC}"
echo -n -e "${CYAN}${THINKING} $question: ${NC}" >&2
fi

read -r response
Expand Down Expand Up @@ -289,36 +289,36 @@ choice=$(ask_input "Enter your choice (1-4)" "1")

case $choice in
1)
PAI_DIR="$HOME/PAI"
INSTALL_DIR="$HOME/PAI"
;;
2)
PAI_DIR="$HOME/Projects/PAI"
INSTALL_DIR="$HOME/Projects/PAI"
;;
3)
PAI_DIR="$HOME/Documents/PAI"
INSTALL_DIR="$HOME/Documents/PAI"
;;
4)
PAI_DIR=$(ask_input "Enter custom path" "$HOME/PAI")
INSTALL_DIR=$(ask_input "Enter custom path" "$HOME/PAI")
;;
*)
PAI_DIR="$DEFAULT_DIR"
INSTALL_DIR="$DEFAULT_DIR"
;;
esac

print_info "PAI will be installed to: $PAI_DIR"
print_info "PAI will be installed to: $INSTALL_DIR"

# ============================================
# Step 4: Download or Update PAI
# ============================================

print_header "Step 4: Getting PAI"

if [ -d "$PAI_DIR/.git" ]; then
print_info "PAI is already installed at $PAI_DIR"
if [ -d "$INSTALL_DIR/.git" ]; then
print_info "PAI is already installed at $INSTALL_DIR"

if ask_yes_no "Update to the latest version?"; then
print_step "Updating PAI..."
cd "$PAI_DIR"
cd "$INSTALL_DIR"
git pull
print_success "PAI updated successfully!"
else
Expand All @@ -328,29 +328,36 @@ else
print_step "Downloading PAI from GitHub..."

# Create parent directory if it doesn't exist
mkdir -p "$(dirname "$PAI_DIR")"
mkdir -p "$(dirname "$INSTALL_DIR")"

# Clone the repository
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git "$PAI_DIR"
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git "$INSTALL_DIR"

print_success "PAI downloaded successfully!"
fi

# Set PAI_DIR to the .claude directory (v0.6.0+ structure)
PAI_DIR="$INSTALL_DIR/.claude"

# ============================================
# Step 5: Configure Environment Variables
# ============================================

print_header "Step 5: Configuring Environment"

# Detect shell
if [ -n "$ZSH_VERSION" ]; then
# Detect shell using $SHELL variable (user's login shell)
if [[ "$SHELL" == *"zsh"* ]]; then
SHELL_CONFIG="$HOME/.zshrc"
SHELL_NAME="zsh"
elif [ -n "$BASH_VERSION" ]; then
elif [[ "$SHELL" == *"bash"* ]]; then
SHELL_CONFIG="$HOME/.bashrc"
SHELL_NAME="bash"
elif [[ "$SHELL" == *"fish"* ]]; then
SHELL_CONFIG="$HOME/.config/fish/config.fish"
SHELL_NAME="fish"
else
print_warning "Couldn't detect shell type. Defaulting to .zshrc"
print_warning "Couldn't detect shell type. Detected: $SHELL"
print_info "Defaulting to .zshrc"
SHELL_CONFIG="$HOME/.zshrc"
SHELL_NAME="zsh"
fi
Expand Down Expand Up @@ -556,27 +563,57 @@ echo ""
if ask_yes_no "Are you using Claude Code?"; then
print_step "Configuring Claude Code integration..."

# Create Claude directory if it doesn't exist
mkdir -p "$HOME/.claude"

# Check if settings.json already exists
if [ -L "$HOME/.claude/settings.json" ]; then
print_info "Claude Code settings already linked to PAI"
elif [ -f "$HOME/.claude/settings.json" ]; then
print_warning "Claude Code settings file already exists"
# Back up .claude directory if it exists
if [ -e "$HOME/.claude" ]; then
# Check if it's a symlink or a real directory
if [ -L "$HOME/.claude" ]; then
print_info "$HOME/.claude is a symlink, removing it..."
rm "$HOME/.claude"
ln -sf "$PAI_DIR" "$HOME/.claude"
print_success "Claude Code configured to use PAI!"
elif [ -d "$HOME/.claude" ]; then
print_info "$HOME/.claude directory already exists..."
if ask_yes_no "Replace it with PAI's .claude?"; then
# Remove old backup if it exists
if [ -e "$HOME/.claude_bak" ]; then
rm -rf "$HOME/.claude_bak"
fi

if ask_yes_no "Replace it with PAI's settings?"; then
mv "$HOME/.claude/settings.json" "$HOME/.claude/settings.json.backup"
print_info "Backed up existing settings to settings.json.backup"
# Rename (not move into) .claude to .claude_bak
mv "$HOME/.claude" "$HOME/.claude_bak"
print_info "Renamed existing .claude directory to .claude_bak"

ln -sf "$PAI_DIR/settings.json" "$HOME/.claude/settings.json"
print_success "Claude Code configured to use PAI!"
ln -sf "$PAI_DIR" "$HOME/.claude"
print_success "Claude Code configured to use PAI!"
fi
fi
else
ln -sf "$PAI_DIR/settings.json" "$HOME/.claude/settings.json"
ln -sf "$PAI_DIR" "$HOME/.claude"
print_success "Claude Code configured to use PAI!"
fi

# Update settings.json with user's AI name and environment variables
if [ -f "$PAI_DIR/settings.json" ]; then
print_step "Updating Claude Code settings with your preferences..."

# Use sed to update the DA name, DA_COLOR, PAI_DIR, and PAI_HOME in settings.json
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS sed syntax
sed -i '' "s|\"DA\": \"[^\"]*\"|\"DA\": \"$AI_NAME\"|g" "$PAI_DIR/settings.json"
sed -i '' "s|\"DA_COLOR\": \"[^\"]*\"|\"DA_COLOR\": \"$AI_COLOR\"|g" "$PAI_DIR/settings.json"
sed -i '' "s|\"PAI_DIR\": \"[^\"]*\"|\"PAI_DIR\": \"$PAI_DIR\"|g" "$PAI_DIR/settings.json"
sed -i '' "s|\"PAI_HOME\": \"[^\"]*\"|\"PAI_HOME\": \"$HOME\"|g" "$PAI_DIR/settings.json"
else
# Linux sed syntax
sed -i "s|\"DA\": \"[^\"]*\"|\"DA\": \"$AI_NAME\"|g" "$PAI_DIR/settings.json"
sed -i "s|\"DA_COLOR\": \"[^\"]*\"|\"DA_COLOR\": \"$AI_COLOR\"|g" "$PAI_DIR/settings.json"
sed -i "s|\"PAI_DIR\": \"[^\"]*\"|\"PAI_DIR\": \"$PAI_DIR\"|g" "$PAI_DIR/settings.json"
sed -i "s|\"PAI_HOME\": \"[^\"]*\"|\"PAI_HOME\": \"$HOME\"|g" "$PAI_DIR/settings.json"
fi

print_success "Settings updated with your AI assistant name: $AI_NAME"
fi

echo ""
print_info "Next steps for Claude Code:"
echo " 1. Download Claude Code from: https://claude.ai/code"
Expand Down Expand Up @@ -661,7 +698,8 @@ echo -e "${NC}"

echo ""
echo "Here's what was set up:"
echo " ✅ PAI installed to: $PAI_DIR"
echo " ✅ PAI repository: $INSTALL_DIR"
echo " ✅ PAI_DIR configured: $PAI_DIR"
echo " ✅ Environment variables configured"
echo " ✅ Skills and commands ready to use"
if [ -f "$PAI_DIR/.env" ]; then
Expand All @@ -674,14 +712,14 @@ echo ""

print_header "Next Steps"

echo "1. ${CYAN}Restart your terminal${NC} (or run: source $SHELL_CONFIG)"
echo -e "1. ${CYAN}Restart your terminal${NC} (or run: source $SHELL_CONFIG)"
echo ""
echo "2. ${CYAN}Open Claude Code${NC} and try these commands:"
echo -e "2. ${CYAN}Open Claude Code${NC} and try these commands:"
echo " • 'Hey, tell me about yourself'"
echo " • 'Research the latest AI developments'"
echo " • 'What skills do you have?'"
echo ""
echo "3. ${CYAN}Customize PAI for you:${NC}"
echo -e "3. ${CYAN}Customize PAI for you:${NC}"
echo " • Edit: $PAI_DIR/skills/PAI/SKILL.md"
echo " • Add API keys: $PAI_DIR/.env"
echo " • Read the docs: $PAI_DIR/documentation/how-to-start.md"
Expand All @@ -691,11 +729,11 @@ print_header "Quick Reference"

echo "Essential commands to remember:"
echo ""
echo " ${CYAN}cd \$PAI_DIR${NC} # Go to PAI directory"
echo " ${CYAN}cd \$PAI_DIR && git pull${NC} # Update PAI to latest version"
echo " ${CYAN}open -e \$PAI_DIR/.env${NC} # Edit API keys"
echo " ${CYAN}ls \$PAI_DIR/skills${NC} # See available skills"
echo " ${CYAN}source ~/.zshrc${NC} # Reload environment"
echo -e " ${CYAN}cd \$PAI_DIR${NC} # Go to PAI directory"
echo -e " ${CYAN}cd $INSTALL_DIR && git pull${NC} # Update PAI to latest version"
echo -e " ${CYAN}open -e \$PAI_DIR/.env${NC} # Edit API keys"
echo -e " ${CYAN}ls \$PAI_DIR/skills${NC} # See available skills"
echo -e " ${CYAN}source $SHELL_CONFIG${NC} # Reload environment"
echo ""

print_header "Resources"
Expand Down