home / skills / alekspetrov / navigator / nav-install-multi-claude

nav-install-multi-claude skill

/skills/nav-install-multi-claude

This skill installs Navigator multi-Claude workflow scripts, enabling parallel Claude executions and easy setup with automatic verification and PATH

npx playbooks add skill alekspetrov/navigator --skill nav-install-multi-claude

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
9.8 KB
---
name: nav-install-multi-claude
description: Install Navigator multi-Claude workflow orchestration scripts. Auto-invokes when user says "install multi-Claude workflows", "set up multi-Claude", or "enable parallel execution".
allowed-tools: Bash, Read, Write
version: 1.0.0
---

# Navigator Multi-Claude Workflow Installer

Install multi-Claude orchestration scripts for parallel AI execution.

## When to Invoke

Auto-invoke when user says:
- "Install multi-Claude workflows"
- "Set up multi-Claude orchestration"
- "Enable parallel execution"
- "Complete Navigator 4.3.0 installation"
- "Install Navigator workflows"

**DO NOT invoke** if:
- Scripts already installed (check with `which navigator-multi-claude.sh`)
- User is just asking about multi-Claude (informational)
- Navigator plugin not installed

## What This Installs

**Scripts installed to `$HOME/bin/`**:
- `navigator-multi-claude.sh` - Full 6-phase workflow orchestration
- `navigator-multi-claude-poc.sh` - Simple 3-phase POC
- `install-multi-claude.sh` - This installer (for future updates)

**Why needed**: Plugin installation only copies skills/templates. Multi-Claude scripts live outside plugin structure and require separate installation.

## Execution Steps

### Step 1: Check if Already Installed

```bash
if command -v navigator-multi-claude.sh &> /dev/null; then
  INSTALLED_PATH=$(which navigator-multi-claude.sh)
  INSTALLED_VERSION=$(grep -o 'VERSION=.*' "$INSTALLED_PATH" | head -1 | cut -d'=' -f2 | tr -d '"' || echo "unknown")

  echo "โœ… Multi-Claude workflows already installed"
  echo ""
  echo "Location: $INSTALLED_PATH"
  echo "Version: $INSTALLED_VERSION"
  echo ""
  echo "To reinstall/update:"
  echo "  rm $INSTALLED_PATH"
  echo "  'Install multi-Claude workflows'"

  exit 0
fi
```

### Step 2: Verify Prerequisites

```bash
# Check Claude CLI
if ! command -v claude &> /dev/null; then
  echo "โŒ Claude Code CLI not found in PATH"
  echo ""
  echo "Multi-Claude workflows require Claude Code CLI to spawn sub-Claude instances."
  echo ""
  echo "Install Claude Code first, then retry:"
  echo "  https://docs.claude.com/claude-code/installation"
  exit 1
fi

# Check Navigator plugin installed
PLUGIN_PATHS=(
  "$HOME/.claude/plugins/marketplaces/navigator-marketplace"
  "$HOME/.config/claude/plugins/navigator"
  "$HOME/.claude/plugins/navigator"
)

PLUGIN_FOUND=false
for path in "${PLUGIN_PATHS[@]}"; do
  if [ -d "$path" ]; then
    PLUGIN_FOUND=true
    PLUGIN_PATH="$path"
    break
  fi
done

if [ "$PLUGIN_FOUND" = false ]; then
  echo "โŒ Navigator plugin not found"
  echo ""
  echo "Install Navigator plugin first:"
  echo "  /plugin marketplace add alekspetrov/navigator"
  echo "  /plugin install navigator"
  exit 1
fi

echo "โœ… Prerequisites verified"
echo "   - Claude CLI: $(which claude)"
echo "   - Navigator plugin: $PLUGIN_PATH"
echo ""
```

### Step 3: Download Latest Scripts from GitHub

```bash
echo "๐Ÿ“ฅ Downloading multi-Claude scripts from GitHub..."
echo ""

# Detect installed plugin version
if [ -f "$PLUGIN_PATH/.claude-plugin/plugin.json" ]; then
  PLUGIN_VERSION=$(grep -o '"version": "[^"]*"' "$PLUGIN_PATH/.claude-plugin/plugin.json" | head -1 | cut -d'"' -f4)
  VERSION_TAG="v$PLUGIN_VERSION"
  echo "   Plugin version: $PLUGIN_VERSION"
  echo "   Fetching matching scripts: $VERSION_TAG"
else
  # Fallback to latest stable if version detection fails
  VERSION_TAG="main"
  echo "   โš ๏ธ  Could not detect plugin version"
  echo "   Fetching from: main branch (latest stable)"
fi

echo ""

# Clone repository to temp location
TEMP_DIR="/tmp/navigator-install-$$"
if git clone --depth 1 --branch "$VERSION_TAG" https://github.com/alekspetrov/navigator.git "$TEMP_DIR" 2>&1; then
  echo "โœ… Downloaded Navigator repository"
else
  echo "โŒ Failed to download from GitHub"
  echo ""
  echo "Possible causes:"
  echo "  - No internet connection"
  echo "  - Version tag $VERSION_TAG doesn't exist"
  echo "  - GitHub rate limit exceeded"
  echo ""
  echo "Retry with main branch? [y/N]"
  exit 1
fi

echo ""
```

### Step 4: Run Installation Script

```bash
echo "๐Ÿ“ฆ Installing multi-Claude scripts..."
echo ""

cd "$TEMP_DIR"

if [ -f "scripts/install-multi-claude.sh" ]; then
  # Run the installer
  chmod +x scripts/install-multi-claude.sh
  ./scripts/install-multi-claude.sh

  INSTALL_EXIT=$?

  if [ $INSTALL_EXIT -eq 0 ]; then
    echo ""
    echo "โœ… Multi-Claude workflows installed successfully"
  else
    echo ""
    echo "โŒ Installation failed with exit code $INSTALL_EXIT"
    echo ""
    echo "Check the output above for errors."
    exit 1
  fi
else
  echo "โŒ install-multi-claude.sh not found in repository"
  echo ""
  echo "This version may not support multi-Claude workflows."
  echo "Upgrade to Navigator v4.3.0+ for multi-Claude features."
  exit 1
fi

echo ""
```

### Step 5: Verify Installation

```bash
echo "๐Ÿ” Verifying installation..."
echo ""

# Check if scripts are in PATH
if command -v navigator-multi-claude.sh &> /dev/null; then
  INSTALLED_PATH=$(which navigator-multi-claude.sh)
  echo "โœ… navigator-multi-claude.sh: $INSTALLED_PATH"
else
  echo "โš ๏ธ  navigator-multi-claude.sh not in PATH"
  echo "   May need to restart terminal or run:"
  echo "   export PATH=\"\$HOME/bin:\$PATH\""
fi

if command -v navigator-multi-claude-poc.sh &> /dev/null; then
  INSTALLED_PATH=$(which navigator-multi-claude-poc.sh)
  echo "โœ… navigator-multi-claude-poc.sh: $INSTALLED_PATH"
else
  echo "โš ๏ธ  navigator-multi-claude-poc.sh not in PATH"
fi

echo ""
```

### Step 6: Cleanup and Next Steps

```bash
# Cleanup temp directory
rm -rf "$TEMP_DIR"
echo "๐Ÿงน Cleaned up temporary files"
echo ""

echo "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”"
echo "โœ… Multi-Claude Workflows Ready"
echo "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”"
echo ""
echo "Test with simple task:"
echo "  navigator-multi-claude-poc.sh \"Add hello world function\""
echo ""
echo "Full 6-phase workflow:"
echo "  navigator-multi-claude.sh \"Implement user authentication\""
echo ""
echo "Documentation:"
echo "  - Release notes: RELEASE-NOTES-v4.3.0.md"
echo "  - POC learnings: scripts/POC-LEARNINGS.md"
echo ""
echo "Status: Experimental (30% success rate)"
echo "Recommendation: Use for simple features, monitor output closely"
echo ""
```

## Error Handling

### Git Clone Fails

```
โŒ Failed to download from GitHub

Possible causes:
  - No internet connection
  - Version tag v4.3.1 doesn't exist
  - GitHub rate limit exceeded

Manual installation:
  1. Download: https://github.com/alekspetrov/navigator/archive/refs/heads/main.zip
  2. Extract and cd to directory
  3. Run: ./scripts/install-multi-claude.sh
```

### Version Mismatch

```
โš ๏ธ  Plugin version: 4.3.1
    Latest release: 4.3.0
    Installing from: main branch

This may include unreleased changes.
Continue? [y/N]
```

### Already Installed

```
โœ… Multi-Claude workflows already installed

Location: /Users/username/bin/navigator-multi-claude.sh
Version: 4.3.0

To reinstall/update:
  rm /Users/username/bin/navigator-multi-claude.sh
  'Install multi-Claude workflows'
```

### Permission Denied

```
โŒ Permission denied: /usr/local/bin/

Installation requires write access to:
  - $HOME/bin/ (recommended)
  - /usr/local/bin/ (requires sudo)

Fix:
  mkdir -p $HOME/bin
  export PATH="$HOME/bin:$PATH"

Then retry: 'Install multi-Claude workflows'
```

## Success Criteria

Installation successful when:
- [ ] Scripts downloaded from GitHub
- [ ] install-multi-claude.sh executed without errors
- [ ] Scripts added to PATH (verified with `which`)
- [ ] Version matches plugin version (or explicit override)
- [ ] User can invoke `navigator-multi-claude-poc.sh --help`

## Rollback Procedure

If installation fails or causes issues:

```bash
# Remove installed scripts
rm -f $HOME/bin/navigator-multi-claude.sh
rm -f $HOME/bin/navigator-multi-claude-poc.sh
rm -f $HOME/bin/install-multi-claude.sh

# Verify removal
which navigator-multi-claude.sh
# Should output: navigator-multi-claude.sh not found
```

## Notes

**Why separate installation**:
- Plugin system only copies skills/templates from `.claude-plugin/`
- Multi-Claude scripts are executable Bash files that need to be in PATH
- Installation location varies by system ($HOME/bin vs /usr/local/bin)
- Scripts need `chmod +x` for execution

**Version matching**:
- Always fetches scripts matching installed plugin version
- Prevents version drift (v4.3.1 plugin with v4.3.0 scripts)
- Falls back to main branch if version tag doesn't exist

**What gets installed**:
```
$HOME/bin/
โ”œโ”€โ”€ navigator-multi-claude.sh         # Full 6-phase workflow
โ”œโ”€โ”€ navigator-multi-claude-poc.sh     # 3-phase POC
โ””โ”€โ”€ install-multi-claude.sh           # Reinstaller
```

## Related Skills

- **nav-start**: Detects missing workflows and prompts installation
- **nav-upgrade**: Updates plugin (workflows need separate reinstall)
- **nav-stats**: Shows multi-Claude workflow efficiency metrics

## Examples

### Example 1: Fresh Installation

User: "Install multi-Claude workflows"

Assistant executes:
1. Checks prerequisites (Claude CLI, Navigator plugin)
2. Downloads from GitHub (v4.3.1 tag)
3. Runs install-multi-claude.sh
4. Verifies installation
5. Shows test commands

Output:
```
โœ… Multi-Claude Workflows Ready

Test with simple task:
  navigator-multi-claude-poc.sh "Add hello world function"
```

### Example 2: Already Installed

User: "Set up multi-Claude"

Assistant checks:
```bash
which navigator-multi-claude.sh
# Found at: /Users/alex/bin/navigator-multi-claude.sh
```

Output:
```
โœ… Multi-Claude workflows already installed

Location: /Users/alex/bin/navigator-multi-claude.sh
Version: 4.3.0

Already ready to use!
```

### Example 3: After Plugin Update

User updates plugin 4.3.0 โ†’ 4.3.1, then:
"Install multi-Claude workflows"

Overview

This skill installs Navigator multi-Claude workflow orchestration scripts to enable parallel Claude Code execution. It places executable scripts into $HOME/bin (or another writable bin) and verifies prerequisites, downloads, installs, and verifies the workflow toolchain. Use it to add a 6-phase workflow and a 3-phase POC for multi-Claude orchestration.

How this skill works

The installer first checks whether the multi-Claude scripts are already on PATH and reports location and version if present. It verifies prerequisites (Claude Code CLI and Navigator plugin), clones the matching release from the repository, runs the bundled install script, and verifies that the installed scripts are executable and discoverable in PATH. It cleans temporary files and prints test commands and next steps.

When to use it

  • User requests: "Install multi-Claude workflows", "Set up multi-Claude orchestration", or "Enable parallel execution"
  • After installing or upgrading the Navigator plugin when workflows are missing
  • When you want the 6-phase orchestration or the 3-phase POC available as CLI scripts
  • When you have Claude Code CLI installed and want parallel sub-claude orchestration
  • Do not run if navigator-multi-claude.sh is already installed and up to date

Best practices

  • Ensure claude CLI is in PATH before running the installer
  • Install to $HOME/bin where no sudo is required, and add it to PATH if needed
  • Verify Navigator plugin directories exist so version detection can match scripts
  • Check installer output for permission or git clone errors and follow suggested fixes
  • Test with navigator-multi-claude-poc.sh for simple tasks before running full 6-phase workflows

Example use cases

  • Fresh system: install scripts after installing Navigator plugin to enable multi-Claude orchestration
  • Reinstall after plugin update to keep script versions aligned with the plugin release
  • Quick validation: run navigator-multi-claude-poc.sh "Add hello world function" to confirm setup
  • CI or developer workstation: add installer step to bootstrap multi-Claude tools into $HOME/bin
  • Rollback: remove installed scripts if installation fails or you want to revert

FAQ

What if the installer fails to clone the repo?

Check internet access, verify the version tag exists, or retry using the main branch. You can manually download the repository zip and run ./scripts/install-multi-claude.sh.

What if scripts are installed but not found in my terminal?

Add $HOME/bin to your PATH or restart the terminal. You can run export PATH="$HOME/bin:$PATH" to make them available immediately.