about-oracle
What is Oracle — told by the AI itself. Origin story, stats, family count, ecosystem overview. Use when someone asks "what is…
Extract YouTube video transcripts via yt-dlp and pipe to /learn. Use when user says "watch", "youtube", "video", "transcript", or shares a YouTube URL.
$ npx -y skills add soul-brews-studio/arra-oracle-skills-cli --skill watch --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/watchContext preview
The summary Claude sees to decide when to auto-load this skill.
Extract YouTube video transcripts via yt-dlp and pipe to /learn. Use when user says "watch", "youtube", "video", "transcript", or shares a YouTube URL.
name: watch description: 'Extract YouTube video transcripts via yt-dlp and pipe to /learn. Use when user says "watch", "youtube", "video", "transcript", or shares a YouTube URL.' argument-hint: "<youtube-url> [--raw | --learn | --summary]" hidden: true metadata: internal: true
> Eyes that see. Ears that listen. Knowledge that stays.
Extract transcripts from YouTube videos using yt-dlp, then optionally pipe through /learn for deep analysis.
/watch <url> # Extract CC + summarize /watch <url> --raw # Extract CC only, save raw SRT /watch <url> --learn # Extract CC → /learn --deep pipeline /watch <url> --summary # Extract CC → concise summary only
---
date "+🕐 %H:%M %Z (%A %d %B %Y)" && 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/ψ"
else
ORACLE_ROOT="$(pwd)"
PSI="$ORACLE_ROOT/ψ"
fiif command -v yt-dlp &>/dev/null; then YTDLP="yt-dlp" elif [ -x /tmp/yt-dlp ]; then YTDLP="/tmp/yt-dlp" else echo "⚠️ yt-dlp not found. Install: pip install yt-dlp OR curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /tmp/yt-dlp && chmod +x /tmp/yt-dlp" exit 1 fi
Extract video ID from URL. Accept:
VIDEO_URL="$1"
VIDEO_ID=$(echo "$VIDEO_URL" | grep -oP '(?:v=|youtu\.be/)[\w-]{11}' | head -1 | sed 's/v=//')
if [ -z "$VIDEO_ID" ]; then
echo "❌ Invalid YouTube URL: $VIDEO_URL"
exit 1
fi
echo "🎬 Video ID: $VIDEO_ID"---
$YTDLP --print title --print duration_string --print channel --skip-download "$VIDEO_URL" 2>/dev/null
Save as variables: `TITLE`, `DURATION`, `CHANNEL`.
---
Try auto-generated English CC first, fall back to manual subs:
TMPDIR=$(mktemp -d)
$YTDLP --write-auto-sub --sub-lang en --sub-format srt --skip-download -o "$TMPDIR/%(id)s" "$VIDEO_URL" 2>/dev/null
# Check if SRT was downloaded
SRT_FILE="$TMPDIR/${VIDEO_ID}.en.srt"
if [ ! -f "$SRT_FILE" ]; then
# Try manual subs
$YTDLP --write-sub --sub-lang en --sub-format srt --skip-download -o "$TMPDIR/%(id)s" "$VIDEO_URL" 2>/dev/null
SRT_FILE=$(ls "$TMPDIR"/*.srt 2>/dev/null | head -1)
fi
if [ ! -f "$SRT_FILE" ]; then
echo "❌ No English subtitles found for this video."
echo "💡 Try: $YTDLP --list-subs '$VIDEO_URL' to see available languages."
exit 1
fi
SUB_COUNT=$(grep -c '^[0-9]\+$' "$SRT_FILE")
echo "📝 Extracted $SUB_COUNT subtitle blocks"---
Strip SRT formatting (timestamps, numbers, blank lines) into plain text:
# Remove SRT formatting → clean text sed '/^[0-9]*$/d; /^$/d; /-->/d' "$SRT_FILE" | sed 's/<[^>]*>//g' | sort -u > "$TMPDIR/clean.txt"
Read the clean transcript.
---
# Slugify title SLUG=$(echo "$TITLE" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g; s/--*/-/g; s/^-//; s/-$//' | cut -c1-50) DATE=$(date +%Y-%m-%d) OUT_DIR="$PSI/learn/$SLUG/$DATE" mkdir -p "$OUT_DIR"
Save raw SRT + clean text only:
cp "$SRT_FILE" "$OUT_DIR/raw-cc.srt" cp "$TMPDIR/clean.txt" "$OUT_DIR/transcript.txt"
Output:
✅ Raw transcript saved 📁 $OUT_DIR/raw-cc.srt (SRT) 📁 $OUT_DIR/transcript.txt (clean) 🎬 $TITLE ($DURATION) by $CHANNEL
Read the clean transcript and produce a structured analysis:
# [TITLE] **Source**: [YouTube URL] **Duration**: [DURATION] | **Channel**: [CHANNEL] **Extracted**: [DATE] via yt-dlp CC + Oracle analysis --- ## Thesis [1-2 sentence core argument] ## Timestamped Summary [Key points with timestamps from SRT] ## Key Quotes [5-10 most important quotes] ## Relevance [How this connects to our work — skills, fleet, philosophy]
Save to `$OUT_DIR/analysis.md` + raw files.
Save raw files, then invoke the full /learn pipeline:
💡 Transcript extracted. Piping to /learn --deep...
Create a temporary markdown file with the full transcript content, then use it as input for deep analysis. The /learn pipeline will produce the full 5-document deep study.
---
rm -rf "$TMPDIR"
---
1. **Never download video** — subtitles only (`--skip-download` always) 2. **Oracle root** — detect before writing to ψ/ 3. **English first** — try `en` auto-subs, then manual, then fail with language hint 4. **Clean text** — strip SRT formatting before analysis 5. **Credit source** — always include YouTube URL, channel, and extraction date 6. **No redistribution** — transcript stays in local ψ/ vault, never committed to public repos
---
ARGUMENTS: $ARGUMENTS
25 skills for AI coding agents — persistent memory, session awareness, and collaborative tools.
What is Oracle — told by the AI itself. Origin story, stats, family count, ecosystem overview. Use when someone asks "what is…
Guided Oracle birth and awakening ritual. Default is Soul Sync (~20min), or --fast (~5min). Use when creating a new Oracle in a…
บำเพ็ญเพียร — diligent practice. A guided conversation between human and Oracle about doing hard things without knowing why. Like…
Create a new oracle via maw bud — yeast-colony reproduction. Use when user says "bud", "new oracle", "create oracle", "spawn…
Create local skills as shortcuts — makes real /commands in .claude/skills/. Use when user says "create shortcut", "create skill",…
Mine Claude Code sessions — timeline, gaps, repo attribution, session history. Use when user says "dig", "sessions", "past…