Other

/wizard

Fresh-machine golems setup: prereqs, config, repos, MCP, BrainLayer. Triggers: setup, wizard, install golems.

$ golems-cli skills install wizard
Good
100% best pass rate
23 assertions
5 evals
1 workflow

Updated 5 days ago

Automated fresh-machine setup. Checks prerequisites, writes config, clones repos, wires MCP servers, verifies connections.

Step 1: Check Prerequisites

Run all checks in parallel where possible:

for cmd in brew node bun claude gh git; do
  path=$(which $cmd 2>/dev/null)
  if [ -n "$path" ]; then
    version=$($cmd --version 2>/dev/null | head -1)
    echo "  $cmd : $path ($version)"
  else
    echo "  $cmd : NOT FOUND"
  fi
done

Required Tools

ToolRequired?Install if missing
gitYESxcode-select --install (macOS) or sudo apt install git
brewYES (macOS)/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
nodeYESbrew install node or nvm install --lts
bunYESbrew install oven-sh/bun/bun or curl -fsSL https://bun.sh/install | bash
claudeYESbrew install claude or npm install -g @anthropic-ai/claude-code
ghYESbrew install gh then gh auth login

If any required tool is missing: List what's missing, provide install commands, and ask the user to install them before continuing. Do NOT proceed without all 6 tools.

After gh is confirmed installed, verify auth:

gh auth status

If not authenticated, guide the user through gh auth login.


Step 2: Read or Create ~/.golems/config.yaml

Check if config exists:

cat ~/.golems/config.yaml 2>/dev/null

If config.yaml EXISTS:

  1. Display the current config to the user (reposPath, tools, features, contextProfiles)
  2. Validate it: bash <reposPath>/orchestrator/scripts/sync-config.sh --validate (substituting the actual reposPath from config)
  3. Ask: "Config found. Use it as-is, or reconfigure?"
  4. If use as-is -> jump to Step 3 (clone repos)
  5. If reconfigure -> continue below

If config.yaml DOES NOT EXIST:

Create it interactively:

  1. Ask for workspace root (parent dir for repos, e.g., ~/Gits):

    • Validate the path exists: ls -d "<expanded_path>" 2>/dev/null
    • If invalid -> re-ask. Do NOT proceed with nonexistent path.
    • Expand ~ to full path before writing.
  2. Detect tool paths (store absolute paths for launchd compatibility):

    which claude && which gh && which bun && which node && which git
  3. Ask about features (all OFF by default):

    FeatureDefaultDescription
    nightShiftOFFAutonomous improvement loop at 3am
    telegramOFFTelegram notifications
    emailGolemOFFEmail triage and scoring
  4. Write the config:

    mkdir -p ~/.golems

    Write ~/.golems/config.yaml with this structure:

    # Golems Configuration
    reposPath: "<workspace_root>"
    stateDir: "<home>/.golems-zikaron"
     
    tools:
      claude: "<path>"
      gh: "<path>"
      # ... other detected tools
     
    features:
      nightShift: false
      telegram: false
      emailGolem: false
     
    mcpServers:
      brainlayer:
        command: brainlayer-mcp-stdio-bridge
      context7:
        command: npx
        args: ["-y", "@upstash/context7-mcp@latest"]
      supabase:
        command: npx
        args: ["-y", "@supabase/mcp-server-supabase@latest", "--access-token", "<token>"]
     
    contextProfiles:
      # Start with one profile per cloned repo — user adds more later

    Show the written config to the user for confirmation.


Step 3: Clone Required Repos

Read reposPath from config.yaml. Check which repos exist:

REPOS_PATH=$(python3 -c "import yaml; print(yaml.safe_load(open('$HOME/.golems/config.yaml'))['reposPath'])")
for repo in golems orchestrator brainlayer; do
  if [ -d "$REPOS_PATH/$repo" ]; then
    echo "  $repo : EXISTS"
  else
    echo "  $repo : NOT FOUND — will clone"
  fi
done

Required Repos

RepoURLPurpose
golemsgit@github.com:EtanHey/golems.gitMain monorepo (skills, packages)
orchestratorgit@github.com:EtanHey/orchestrator.gitScripts, sync-config.sh, plans
brainlayergit@github.com:EtanHey/brainlayer.gitMemory layer (BrainBar daemon)

For each missing repo:

cd "$REPOS_PATH"
gh repo clone EtanHey/<repo>

After cloning golems, install dependencies:

cd "$REPOS_PATH/golems" && bun install

Workflows

/wizard:setup