dig

/dig - Session Goldminer

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dig" with this command: npx skills add soul-brews-studio/oracle-skills-cli/soul-brews-studio-oracle-skills-cli-dig

/dig - Session Goldminer

Mine Claude Code session data for timelines, gaps, and repo attribution. No query needed.

Usage

/dig # Current repo, 10 most recent /dig [N] # Current repo, N most recent /dig --all # All repos, ALL sessions (auto-detect count) /dig --all [N] # All repos, N most recent /dig --timeline # Day-by-day grouped (current repo) /dig --all --timeline # Day-by-day grouped (all repos, ALL sessions)

Step 0: Timestamp

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

Step 1: Discover Project Dirs

Default (current repo only):

PROJECT_BASE=$(ls -d "$HOME/.claude/projects/""$(basename "$(pwd)")" 2>/dev/null | head -1) export PROJECT_DIRS="$PROJECT_BASE" for wt in "${PROJECT_BASE}"-wt; do [ -d "$wt" ] && export PROJECT_DIRS="$PROJECT_DIRS:$wt"; done

Uses basename of pwd to match the repo name suffix (avoids github.com vs github-com encoding mismatch). Also picks up worktree dirs (-wt , -wt-1 , etc.).

With --all (all repos):

export PROJECT_DIRS=$(ls -d "$HOME/.claude/projects/"*/ | tr '\n' ':')

Step 2: Extract Session Data

Run the dig script. Pass 0 for --all (no limit), or N if user specified a count, default 10:

python3 ~/.claude/skills/dig/scripts/dig.py [N]

N=10 (default), N=0 (scan all sessions), N=50 (50 most recent)

Step 3: Display Timeline

Read the JSON output and display as a table. Sessions are chronological (oldest first). Gap rows (type: "gap" ) span the session column with · · · prefix:

Session Timeline

#DateSessionMinRepoMsgsFocus
· · · sleeping / offline
102-2108:40–09:0828moracle-skills-cli5Wire /rrr to read pulse data
· · · 45m gap
202-2109:55–10:2328mhomelab3oracle-pulse birth + CLI flag
· · · no session yet

Dirs scanned: [list PROJECT_DIRS] Total sessions found: [count]

Column rendering rules:

  • Gap rows: | | | · · · [label] | | | | | — number + date empty, label in Session col

  • Date: MM-DD short format (strip year)

  • Session: HH:MM–HH:MM using startGMT7 and endGMT7 (strip date, keep time only)

  • Min: [durationMin]m

  • Repo: use repoName field from dig.py output (resolved via ghq)

  • Msgs: realHumanMessages count

"Msgs" = real typed human messages (not tool approvals).

With --timeline: Group by Date

When --timeline flag is present, group sessions by date instead of a flat table. Use --all to see all repos (recommended for timeline).

Step 1: Run dig.py with 0 for --all (scans all sessions), or user-specified count

Step 2: Group sessions by date from startGMT7 . Render each day as:

Feb 22 (Sun) — [vibe label]

              · · ·   sleeping / offline

08:48–09:11 23m homelab Update Fleet Runbook + Explore black.local 09:11–11:30 139m homelab Set Up KVM OpenClaw Node on black.local 09:37–12:51 194m Nat-s-Agents /recap → supergateway → CF ZT → oracle-v2 dig · · · 45m gap 12:51–13:03 12m Nat-s-Agents Dig All + Design oracle-v2 ← current · · · no session yet

Feb 21 (Sat) — Long day: Fleet + Brewing + Skills

06:19–08:38 139m homelab Moltworker Gateway + MBP Node 08:40 (bg) openclaw ClawHub Build Script (idle long) 09:23–16:08 405m homelab Debug MBP Node 401 — Gateway Token Auth

Rendering rules:

  • Day header: ## MMM DD (Day) — [vibe label] — infer vibe from session summaries (e.g. "Infrastructure Day", "Brewing + Skills")

  • Session rows: HH:MM–HH:MM [N]m REPO Summary — use repoName for repo, summary for focus

  • Gap rows: · · · [label] between sessions when gap > 30 min

  • Sidechain: prefix (bg) for sessions with isSidechain: true

  • Current: append ← current marker on the last session of the current day (today only)

  • Sort: days newest-first, sessions within each day oldest-first (chronological)

  • Date format: startGMT7 time portion only (HH:MM), endGMT7 time portion (HH:MM)

  • Repo width: pad repo names to align columns

Step 3: Show summary footer:

Days: [count] | Sessions: [count] | Total time: [sum of durationMin]m

No trace log

/dig does NOT write a trace log file or call oracle_trace. It's a read-only scan. Output goes to screen only.

ARGUMENTS: $ARGUMENTS

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

philosophy

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

forward

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

worktree

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

template

No summary provided by upstream source.

Repository SourceNeeds Review