Ops Resume
OPS on-demand: This skill should be used when the user asks to \"resume sessions\"...
Install
npx skills add Lifecycle-Innovations-Limited/claude-ops --skill ops-resume -g -a claude-code -y- Repository
- Lifecycle-Innovations-Limited/claude-ops547
- Category
- Engineering
- Updated
- 4d ago
- License
- MIT
- Context cost
- Lightabout 693 tokens
- Runs scripts
- No, instructions only
What it does
OPS on-demand: This skill should be used when the user asks to \"resume sessions\", \"reopen ghostty…
ops-resume
Load ops-rules before acting. Public repo (no personal data). Outbound: one draft → one approval → one send. If AskUserQuestion / Workflow are missing, follow Rule 10 in ops-rules (Hermes: numbered options / two-turn Telegram card; delegate_task).
Reopen recently-closed Claude Code sessions, one session per Ghostty tab.
For every recent session transcript under ~/.claude/projects, the helper opens a
new Ghostty tab (cmd+t) and types cd <cwd> && claude --resume <sessionId>, so each
session resumes in its own tab from whatever directory or repo it was running in.
Default: every session touched in the last 60 minutes, from any directory.
Platform: macOS + Ghostty only. Tabs are driven via AppleScript System Events, so Accessibility permission must be granted to the terminal running this.
How it works
- Scans
~/.claude/projects/**/*.jsonland keeps files whose mtime is inside the lookback window (default 60 min) but older thanOPS_RESUME_MIN_AGE_SEC(default 45s, so the session you are currently in is not reopened). - Keeps only real interactive sessions (UUID filenames); skips subagent transcripts
(
agent-*), workflow journals, and empty/junk sessions. - Reads each session's original
cwdfrom the transcript. - For each, opens a fresh Ghostty tab and resumes the session there.
Usage
Run the bundled helper. Pass through any flags the user gave ($ARGUMENTS).
Always preview first with --dry-run, show the user the list, and, unless they
clearly asked to "just open them", confirm before opening real tabs (opening many
tabs is hard to undo).
# Preview what would be resumed
${CLAUDE_PLUGIN_ROOT}/bin/ops-resume --dry-run $ARGUMENTS
# Actually open the tabs
${CLAUDE_PLUGIN_ROOT}/bin/ops-resume $ARGUMENTS
