$npx -y skills add Soul-Brews-Studio/arra-oracle-skills-cli --skill projectClone and track external repos. Use when user shares a GitHub URL to study or develop, or says "search repos", "find repo", "where is [project]". For active development, use /incubate.
| 1 | # project-manager |
| 2 | |
| 3 | Track and manage external repos: Learn (study) | Incubate (develop) |
| 4 | |
| 5 | ## Golden Rule |
| 6 | |
| 7 | **ghq owns the clone → ψ/ owns the symlink** |
| 8 | |
| 9 | Never copy. Always symlink. One source of truth. |
| 10 | |
| 11 | ## When to Use |
| 12 | |
| 13 | Invoke this skill when: |
| 14 | - User shares a GitHub URL and wants to study/clone it |
| 15 | - User mentions wanting to learn from a codebase |
| 16 | - User wants to start developing on an external repo |
| 17 | - Need to find where a previously cloned project lives |
| 18 | |
| 19 | ## Step 0 — Anchor (date-stamp + root) |
| 20 | |
| 21 | ```bash |
| 22 | date "+🕐 %H:%M %Z (%A %d %B %Y)" |
| 23 | |
| 24 | # Find oracle root — git toplevel that has CLAUDE.md + ψ/ |
| 25 | ORACLE_ROOT=$(git rev-parse --show-toplevel 2>/dev/null) |
| 26 | if [ -n "$ORACLE_ROOT" ] && [ -f "$ORACLE_ROOT/CLAUDE.md" ] && { [ -d "$ORACLE_ROOT/ψ" ] || [ -L "$ORACLE_ROOT/ψ" ]; }; then |
| 27 | PSI="$ORACLE_ROOT/ψ" |
| 28 | elif [ -f "$(pwd)/CLAUDE.md" ] && { [ -d "$(pwd)/ψ" ] || [ -L "$(pwd)/ψ" ]; }; then |
| 29 | ORACLE_ROOT="$(pwd)" |
| 30 | PSI="$ORACLE_ROOT/ψ" |
| 31 | else |
| 32 | echo "⚠️ Not in oracle repo (no CLAUDE.md + ψ/ at git root). Writing to pwd." |
| 33 | ORACLE_ROOT="$(pwd)" |
| 34 | PSI="$ORACLE_ROOT/ψ" |
| 35 | fi |
| 36 | ``` |
| 37 | |
| 38 | ## Actions |
| 39 | |
| 40 | ### learn [url|slug] |
| 41 | |
| 42 | Clone repo for **study** (read-only reference). |
| 43 | |
| 44 | ```bash |
| 45 | # 1. Clone via ghq |
| 46 | ghq get -u https://github.com/owner/repo |
| 47 | |
| 48 | # 2. Create org/repo symlink structure |
| 49 | GHQ_ROOT=$(ghq root) |
| 50 | mkdir -p "$PSI/learn/owner" |
| 51 | ln -sf "$GHQ_ROOT/github.com/owner/repo" "$PSI/learn/owner/repo" |
| 52 | ``` |
| 53 | |
| 54 | **Output** (announce-mode — absolute path): |
| 55 | |
| 56 | # announce-mode → absolute path (no ψ/, no ~/, no $VAR, no ...). |
| 57 | # Use: echo "marker: $RESOLVED_PATH" — bash substitutes. See CONVENTIONS.md. |
| 58 | |
| 59 | ```bash |
| 60 | LINK="$PSI/learn/owner/repo" |
| 61 | echo "✅ Linked: $LINK" |
| 62 | ``` |
| 63 | |
| 64 | ### incubate — REDIRECTS TO /incubate |
| 65 | |
| 66 | > **`/project incubate` is now `/incubate`.** |
| 67 | > If the user says `/project incubate [args]`, run `/incubate [args]` instead. |
| 68 | > Do NOT execute incubate logic here — invoke the standalone `/incubate` skill with the same arguments. |
| 69 | |
| 70 | ### find [query] |
| 71 | |
| 72 | Search for project across all locations: |
| 73 | |
| 74 | ```bash |
| 75 | # Search ghq repos |
| 76 | ghq list | grep -i "query" |
| 77 | |
| 78 | # Search learn/incubate symlinks (org/repo structure) |
| 79 | find "$PSI/learn" "$PSI/incubate" -type l 2>/dev/null | grep -i "query" |
| 80 | ``` |
| 81 | |
| 82 | **Output**: List matches with their ghq paths |
| 83 | |
| 84 | ### list |
| 85 | |
| 86 | Show all tracked projects with rich metadata (#227): |
| 87 | |
| 88 | ```bash |
| 89 | echo "📦 Projects" |
| 90 | echo "" |
| 91 | |
| 92 | # Collect all tracked repos (learn + incubate symlinks) |
| 93 | REPOS=() |
| 94 | for link in $(find "$PSI/learn" "$PSI/incubate" -name "origin" -type l 2>/dev/null | sort); do |
| 95 | dir=$(dirname "$link") |
| 96 | owner=$(basename "$(dirname "$dir")") |
| 97 | repo=$(basename "$dir") |
| 98 | type="learn" |
| 99 | echo "$link" | grep -q "incubate" && type="incubate" |
| 100 | REPOS+=("$owner/$repo:$type") |
| 101 | done |
| 102 | |
| 103 | if [ ${#REPOS[@]} -eq 0 ]; then |
| 104 | echo " No tracked projects. Use /learn or /incubate to add." |
| 105 | else |
| 106 | printf " %-35s %-6s %-8s %-8s %s\n" "Repo" "Stars" "License" "Type" "Description" |
| 107 | printf " %-35s %-6s %-8s %-8s %s\n" "───────────────────────────────────" "──────" "────────" "────────" "──────────────────────" |
| 108 | |
| 109 | for entry in "${REPOS[@]}"; do |
| 110 | slug="${entry%%:*}" |
| 111 | type="${entry##*:}" |
| 112 | # Fetch metadata from GitHub (cached per session) |
| 113 | meta=$(gh api "repos/$slug" --jq '"\(.stargazers_count)\t\(.license.spdx_id // "none")\t\(.description // "-" | .[0:40])"' 2>/dev/null || echo "?\tnone\t-") |
| 114 | stars=$(echo "$meta" | cut -f1) |
| 115 | license=$(echo "$meta" | cut -f2) |
| 116 | desc=$(echo "$meta" | cut -f3) |
| 117 | printf " %-35s %-6s %-8s %-8s %s\n" "$slug" "⭐$stars" "$license" "$type" "$desc" |
| 118 | done |
| 119 | fi |
| 120 | |
| 121 | echo "" |
| 122 | echo " Total: ${#REPOS[@]} tracked repos" |
| 123 | ``` |
| 124 | |
| 125 | ## Directory Structure |
| 126 | |
| 127 | ``` |
| 128 | ψ/ |
| 129 | ├── learn/owner/repo → ~/Code/github.com/owner/repo (symlink) |
| 130 | └── incubate/owner/repo → ~/Code/github.com/owner/repo (symlink) |
| 131 | |
| 132 | ~/Code/ ← ghq root (source of truth) |
| 133 | └── github.com/owner/repo/ (actual clone) |
| 134 | ``` |
| 135 | |
| 136 | ## Health Check |
| 137 | |
| 138 | When listing, verify symlinks are valid: |
| 139 | |
| 140 | ```bash |
| 141 | # Check for broken symlinks |
| 142 | find "$PSI/learn" "$PSI/incubate" -type l ! -exec test -e {} \; -print 2>/dev/null |
| 143 | ``` |
| 144 | |
| 145 | If broken: `ghq get -u [url]` to restore source. |
| 146 | |
| 147 | ## Examples |
| 148 | |
| 149 | ``` |
| 150 | # User shares URL to study |
| 151 | User: "I want to learn from https://github.com/SawyerHood/dev-browser" |
| 152 | → ghq get -u https://github.com/SawyerHood/dev-browser |
| 153 | → mkdir -p ψ/learn/SawyerHood |
| 154 | → ln -sf ~/Code/github.com/SawyerHood/dev-browser ψ/learn/SawyerHood/dev-browser |
| 155 | |
| 156 | # User wants to develop → redirect to /incubate |
| 157 | User: "I want to work on claude-mem" |
| 158 | → /incubate https://github.com/thedotmack/claude-mem |
| 159 | |
| 160 | # User says "/project incubate" → redirect to /incubate |
| 161 | User: "/project incubate https://github.com/Soul-Brews-Studio/arra-oracle-v3 --contribute" |
| 162 | → /incubate https://github.com/Soul-Brews-Studio/arra-oracle-v3 --contribute |
| 163 | ``` |
| 164 | |
| 165 | ## Anti-Patterns |
| 166 | |
| 167 | | ❌ Wrong | ✅ Right | |
| 168 | |----------| |