#!/bin/bash # WEVAL GHGrab — Bulk GitHub Repo Cloner QUERY="${1:-claude-code}" MAX="${2:-5}" echo "Searching: $QUERY (max $MAX)" curl -s "https://api.github.com/search/repositories?q=$QUERY&sort=stars&per_page=$MAX" | \ python3 -c "import json,sys;[print(f\"{r['full_name']}|{r['stargazers_count']}|{r['clone_url']}\") for r in json.load(sys.stdin).get('items',[])]" | \ while IFS='|' read name stars url; do dir="/opt/$(echo $name | tr '/' '-')" [ -d "$dir" ] && echo "SKIP $name" || (git clone --depth 1 "$url" "$dir" 2>/dev/null && echo "OK $name") done