Skip to content

tim-hub/powerball-harness / harness/skills/maintenance

maintenance

Verified

Periodic housekeeping and session lifecycle management. Use when performing cleanup, pruning, or session commands.

references/session-control.md

View on GitHub
---
name: session-control
description: "Apply /work --resume/--fork flags by updating session state files."
allowed-tools: ["Read", "Bash", "Write", "Edit"]
---

# Session Control

## Input

Workflow variables:
- `resume_session_id` (string)
- `resume_latest` (boolean)
- `fork_session_id` (string)
- `fork_reason` (string)

## Execution

### 1) Determine Arguments
- resume:
  - `resume_latest == true` -> `--resume latest`
  - Otherwise, if `resume_session_id` is present -> `--resume <id>`
- fork:
  - If `fork_session_id` is present -> `--fork <id>`, otherwise `--fork current`
  - If `fork_reason` is present -> `--reason "<text>"`

### 2) Run Script
```bash
./scripts/session-control.sh --resume <id|latest>
./scripts/session-control.sh --fork <id|current> --reason "<text>"
```

## Expected Results
- `.claude/state/session.json` is updated
- A `session.resume` or `session.fork` event is appended to `.claude/state/session.events.jsonl`
- On error, the reason is output to stderr
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall