Skip to content
Back to skills

Project

BSecurity

Clone 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.

  • 132 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 31, 2026
developmentgobashgitapi

Works with

  • api

Security analysis

B85/100
  • highPerforms destructive filesystem operations

Pro scans all 14 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add Soul-Brews-Studio/arra-oracle-skills-cli --skill project --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Project?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Project
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/soul-brews-studio-project/badge)](https://www.skillsdirectory.com/skills/soul-brews-studio-project)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: project
description: Clone 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.
argument-hint: "<github-url> | search <query>"
group: code
tier: full
hidden: true
metadata:
  internal: true
---

# /project

Track and manage external repos: Learn (study) | Incubate (develop)

## Golden Rule

**ghq owns the clone → ψ/ owns the symlink**

Never copy. Always symlink. One source of truth.

**Clone, never unpack.** External code enters only through `ghq get`; a clone
does not carry the remote's `.git/config`. A repo that arrived as an archive,
shared drive, or USB keeps an attacker-controlled `.git/` (`core.fsmonitor`,
`core.hooksPath`, `diff.external`, `pager`, `alias` run programs on plain
`git status`; GitSpawn, 2026-09). Before any agent touches it: `rm -rf .git
&& git init`, or inspect with
`git config --list --local | grep -E 'fsmonitor|hooksPath|sshCommand|external|textconv|pager|alias'`.

## When to Use

Invoke this skill when:
- User shares a GitHub URL and wants to study/clone it
- User mentions wanting to learn from a codebase
- User wants to start developing on an external repo
- Need to find where a previously cloned project lives

## Step 0 — Anchor (date-stamp + root)

```bash
date "+🕐 %H:%M %Z (%A %d %B %Y)"

# Find oracle root — git toplevel that has CLAUDE.md + ψ/
ORACLE_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
if [ -n "$ORACLE_ROOT" ] && [ -f "$ORACLE_ROOT/CLAUDE.md" ] && { [ -d "$ORACLE_ROOT/ψ" ] || [ -L "$ORACLE_ROOT/ψ" ]; }; then
  PSI="$ORACLE_ROOT/ψ"
elif [ -f "$(pwd)/CLAUDE.md" ] && { [ -d "$(pwd)/ψ" ] || [ -L "$(pwd)/ψ" ]; }; then
  ORACLE_ROOT="$(pwd)"
  PSI="$ORACLE_ROOT/ψ"
else
  echo "⚠️ Not in oracle repo (no CLAUDE.md + ψ/ at git root). Writing to pwd."
  ORACLE_ROOT="$(pwd)"
  PSI="$ORACLE_ROOT/ψ"
fi
```

## Actions

### learn [url|slug]

Clone repo for **study** (read-only reference).

```bash
# 1. Clone via ghq
ghq get -u https://github.com/owner/repo

# 2. Create org/repo symlink structure
GHQ_ROOT=$(ghq root)
mkdir -p "$PSI/learn/owner"
ln -sf "$GHQ_ROOT/github.com/owner/repo" "$PSI/learn/owner/repo"
```

**Output** (announce-mode — absolute path):

# announce-mode → absolute path (no ψ/, no ~/, no $VAR, no ...).
# Use:  echo "marker: $RESOLVED_PATH"  — bash substitutes. See CONVENTIONS.md.

```bash
LINK="$PSI/learn/owner/repo"
echo "✅ Linked: $LINK"
```

### incubate — REDIRECTS TO /incubate

> **`/project incubate` is now `/incubate`.**
> If the user says `/project incubate [args]`, run `/incubate [args]` instead.
> Do NOT execute incubate logic here — invoke the standalone `/incubate` skill with the same arguments.

### find [query]

Search for project across all locations:

```bash
# Search ghq repos
ghq list | grep -i "query"

# Search learn/incubate symlinks (org/repo structure)
find "$PSI/learn" "$PSI/incubate" -type l 2>/dev/null | grep -i "query"
```

**Output**: List matches with their ghq paths

### list

Show all tracked projects with rich metadata (#227):

```bash
echo "📦 Projects"
echo ""

# Collect all tracked repos (learn + incubate symlinks)
REPOS=()
for link in $(find "$PSI/learn" "$PSI/incubate" -name "origin" -type l 2>/dev/null | sort); do
  dir=$(dirname "$link")
  owner=$(basename "$(dirname "$dir")")
  repo=$(basename "$dir")
  type="learn"
  echo "$link" | grep -q "incubate" && type="incubate"
  REPOS+=("$owner/$repo:$type")
done

if [ ${#REPOS[@]} -eq 0 ]; then
  echo "  No tracked projects. Use /learn or /incubate to add."
else
  printf "  %-35s %-6s %-8s %-8s %s\n" "Repo" "Stars" "License" "Type" "Description"
  printf "  %-35s %-6s %-8s %-8s %s\n" "───────────────────────────────────" "──────" "────────" "────────" "──────────────────────"

  for entry in "${REPOS[@]}"; do
    slug="${entry%%:*}"
    type="${entry##*:}"
    # Fetch metadata from GitHub (cached per session)
    meta=$(gh api "repos/$slug" --jq '"\(.stargazers_count)\t\(.license.spdx_id // "none")\t\(.description // "-" | .[0:40])"' 2>/dev/null || echo "?\tnone\t-")
    stars=$(echo "$meta" | cut -f1)
    license=$(echo "$meta" | cut -f2)
    desc=$(echo "$meta" | cut -f3)
    printf "  %-35s %-6s %-8s %-8s %s\n" "$slug" "⭐$stars" "$license" "$type" "$desc"
  done
fi

echo ""
echo "  Total: ${#REPOS[@]} tracked repos"
```

## Directory Structure

```
ψ/
├── learn/owner/repo     → ~/Code/github.com/owner/repo  (symlink)
└── incubate/owner/repo  → ~/Code/github.com/owner/repo  (symlink)

~/Code/               ← ghq root (source of truth)
└── github.com/owner/repo/  (actual clone)
```

## Health Check

When listing, verify symlinks are valid:

```bash
# Check for broken symlinks
find "$PSI/learn" "$PSI/incubate" -type l ! -exec test -e {} \; -print 2>/dev/null
```

If broken: `ghq get -u [url]` to restore source.

## Examples

```
# User shares URL to study
User: "I want to learn from https://github.com/SawyerHood/dev-browser"
→ ghq get -u https://github.com/SawyerHood/dev-browser
→ mkdir -p ψ/learn/SawyerHood
→ ln -sf ~/Code/github.com/SawyerHood/dev-browser ψ/learn/SawyerHood/dev-browser

# User wants to develop → redirect to /incubate
User: "I want to work on claude-mem"
→ /incubate https://github.com/thedotmack/claude-mem

# User says "/project incubate" → redirect to /incubate
User: "/project incubate https://github.com/Soul-Brews-Studio/arra-oracle-v3 --contribute"
→ /incubate https://github.com/Soul-Brews-Studio/arra-oracle-v3 --contribute
```

## Anti-Patterns

| ❌ Wrong | ✅ Right |
|----------|----------|
| `git clone` directly to ψ/ | `ghq get` then symlink |
| Flat: `ψ/learn/repo-name` | Org structure: `ψ/learn/owner/repo` |
| Copy files | Symlink always |
| Manual clone outside ghq | Everything through ghq |

## The scripts

This skill ships ten runnable scripts and, until the 2026-12-01 audit, named none of them:
732 lines installed to every user's disk with nothing telling them how to run one. They
take `ROOT` and are invoked with `bun`. `SKILL_DIR` is the base directory printed above.

```bash
ROOT=$(git rev-parse --show-toplevel) bun "$SKILL_DIR/scripts/<name>.ts" --help
```

| script | what it does |
|---|---|
| `search.ts` | find repos — local ghq first, GitHub API as fallback |
| `learn.ts` | clone a repo for read-only study |
| `incubate.ts` | clone or create a repo for active work |
| `create.ts` | create a new GitHub repo, init, commit, push |
| `reunion.ts` | scan a project, write a manifest, optionally offload |
| `offload.ts` | remove symlinks, keep ghq and slugs |
| `spinoff.ts` | graduate a project into its own repo |
| `history.ts` | git timeline analysis |
| `index.ts` | index manifest files into the knowledge base (`list` \| `all` \| `<slug>`, `--dry-run`) |
| `resolve-slug.ts` | resolve a slug to a path |
| `utils.ts` | shared helpers — not run directly |

`templates/slugs.yaml` is the slug map these read; `project-manager.md` is the longer
reference for the eight-command lifecycle.

Every one of them assumes a fleet and a ghq tree. On a machine with neither, this skill
has nothing to do — which is the open question in #556: whether it belongs on the public
shelf at all, or in the vault with the other fleet-only skills.

## Quick Reference

```bash
# Add to learn
ghq get -u URL && mkdir -p "$PSI/learn/owner" && ln -sf "$(ghq root)/github.com/owner/repo" "$PSI/learn/owner/repo"

# Incubate (use standalone /incubate skill)
/incubate URL [--flash | --contribute | --status | --offload]

# Update source
ghq get -u URL

# Find repo
ghq list | grep name
```

Files in this skill

  • SKILL.md5.7 KB
  • project-manager.md5.2 KB
  • scripts/create.ts2.2 KB
  • scripts/history.ts1.8 KB
  • scripts/incubate.ts1.8 KB
  • scripts/index.ts3.2 KB
  • scripts/learn.ts1.5 KB
  • scripts/offload.ts1.3 KB
  • scripts/resolve-slug.ts1.4 KB
  • scripts/reunion.ts2.8 KB
  • scripts/search.ts2 KB
  • scripts/spinoff.ts1.9 KB
  • scripts/utils.ts3.7 KB
  • templates/slugs.yaml556 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.