resume

Solid

Load the latest snapshot of an active pause thread and announce its state in chat. Use when user signals they want to continue work that was paused — 'resume', 'กลับมาทำต่อ', 'pick up', 'continue from where I left off', 'ที่ค้างไว้'. Reads from 07-logs/pause/. Idempotent — running in same session as the pause is a no-op. Do NOT use for: starting fresh work (just talk), recap of past sessions (use /distill or /search), promoting insights (use /recap).

AI & Automation 20 stars 2 forks Updated 5 days ago Apache-2.0

Install

View on GitHub

Quality Score: 81/100

Stars 20%
44
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /resume — Load Active Pause Thread (TL;DR) Reads the latest snapshot of the active pause thread and announces its state in chat so the agent and user can pick up seamlessly. Has no effect if there is no active thread. --- ## Step 1: Resolve Active Thread 1. Read `[logs_folder]/pause/_active.md`. If absent or empty → output "No active pause. คุยใหม่ได้เลย" and stop. 2. Parse the single-line content as `active_slug`. 3. If `/resume --task=<slug>` was invoked with explicit slug → use `<slug>` and overwrite `_active.md` to match (this enables switching from one paused thread to another). --- ## Step 2: Locate Latest Pause File 1. Glob `[logs_folder]/pause/*-{active_slug}-pause-*.md`. 2. Sort by NN descending (tiebreak: date prefix descending). Pick the first. 3. If no file matches (orphan pointer): output "⚠️ Active pointer references `<slug>` but no pause file found. Run /doctor." and stop. --- ## Step 3: Idempotency Check 1. Read the file's frontmatter `session_token`. If frontmatter is absent, malformed, or `session_token` cannot be parsed → skip this idempotency check and proceed to Step 4 (treat as a fresh resume). 2. If `session_token` parsed cleanly AND equals the current session token → output "Still in active thread `<slug>`. Already resumed." and stop. Do NOT re-announce content. --- ## Step 4: Load & Announce Read the file. Extract: `## Where I Stopped`, `## Resume With`, `## Key Decisions`, count of `## Action Items` items (lines matching `- [ ] `), cou...

Details

Author
onebrain-ai
Repository
onebrain-ai/onebrain
Created
4 months ago
Last Updated
5 days ago
Language
Shell
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category