ops-resume

On-demand OPS activation: use this skill when a user requests "restore session" or "reopen Ghostty...".

Last repository push
GitHub Stars
564
Forks
64
Issues / PRs
6

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ops-resume" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-362a0a0effc353ec6a532e4938a63da4f65a3ece70651681af0db22e11e5d219. Verify the upstream source and version against https://github.com/Lifecycle-Innovations-Limited/claude-ops before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

On-demand OPS activation: use this skill when a user requests "restore session" or "reopen Ghostty...".

0 Downloads

Introduction source: third_party · Lifecycle-Innovations-Limited · 0.0.1 Reference

SkillPi interpretation

Tasks
OPS on-demand: This skill should be used when the user asks to \"resume sessions\", \"reopen ghostty…
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: ops-resume
description: "OPS on-demand: This skill should be used when the user asks to \"resume sessions\", \"reopen ghostty…"
argument-hint: '[-m minutes | -H hours | -n max | --here | --dry-run]'
allowed-tools:
  - Bash

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

  1. Scans ~/.claude/projects/**/*.jsonl and keeps files whose mtime is inside the lookback window (default 60 min) but older than OPS_RESUME_MIN_AGE_SEC (default 45s — so the session you are currently in is not reopened).
  2. Keeps only real interactive sessions (UUID filenames); skips subagent transcripts (agent-*), workflow journals, and empty/junk sessions.
  3. Reads each session's original cwd from the transcript.
  4. 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

Flags

Flag Meaning
-m, --minutes N Lookback window in minutes (default 60)
-H, --hours N Lookback window in hours
-n, --max N Cap number of tabs (default 20, newest first)
--here Only sessions whose cwd == current directory
--dry-run List matches, open nothing

Env overrides

  • OPS_RESUME_MINUTES (60) — lookback window
  • OPS_RESUME_MAX (20) — safety cap on tabs
  • OPS_RESUME_MIN_AGE_SEC (45) — skip sessions touched more recently than this

Reporting

After running, report concisely: how many sessions matched, how many tabs were opened, and any that were capped/skipped. If --dry-run, just show the list and ask whether to open them for real.

Version history

  1. v3.12.1 GitHub ↗
    Original release notes

    ### Fixed - ops-task-reminder: the portable lock now runs the whole counter transaction under a real fcntl.flock, so one worker can no longer remove another's fresh lock and lose counter updates.

  2. v3.12.0 GitHub ↗
    Original release notes

    ### Changed Add /ops:ops-mix and evidence-only A&R mix-evidence mode using the configured Mixforge engine.

  3. v3.11.0 GitHub ↗
    Original release notes

    ### Changed Release safety, maintenance and inbox fixes from #1033: passive daemon monitoring, timezone-safe AWS audit dates, fail-closed release merge gates (same-head CI, Copilot review, resolved threads), progressive inbox with attachment and archive read-back proofs, and gate-only outbound wording in ops-desk and ops-leadgen.

  4. v3.10.29 GitHub ↗
    Original release notes

    ### Fixed - `ops-speedup --clean` stays under 60s: on macOS it skips the slow login-items query (#1036); on Linux it skips the unused disk-reclaim scan and keeps the page cache unless `--aggressive` is set (#1035). - `ops-inbox` shows validated drafts as soon as each one is ready instead of after the whole scan (#1031). ### Changed - Hooks `ops-pretool-skill-update` and `ops-task-reminder` run async; the reminder takes a per-session lock so concurrent runs no longer lose counts, and it now also resets on Task* tools (#1032).

  5. v3.10.28 GitHub ↗
    Original release notes

    ### Changed ops-ar: Cyanite schema drift (fileUploadRequest id, ID! upload var), real auth test via libraryTracks, webhook must verify HMAC-SHA512 Signature, bpmRangeAdjusted vs bpmPrediction, Soundcharts app-id/key pairing.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 高效恢复最近关闭的 Claude Code 会话,显著提升用户日常工作效率
  • 每个会话在独立的 Ghostty 标签页中恢复,保持工作环境隔离
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
Structure and Standards95/100

Highlights

  • 文档结构清晰,包含完整的使用说明、参数说明和示例
  • 步骤划分明确,有详细的端到端示例和安全限制说明
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常情况
  • 提供 --dry-run 预览和安全限制机制,确保操作可控
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • ghostty.org

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.