tim-hub/powerball-harness / harness/skills/maintenance
maintenance
VerifiedPeriodic housekeeping and session lifecycle management. Use when performing cleanup, pruning, or session commands.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.2 KB |
| references/cleanup.md | markdown | 5.7 KB |
| references/execution-flow.md | markdown | 1.2 KB |
| references/memory-optimization.md | markdown | 1.6 KB |
| references/session-control.md | markdown | 988 B |
| references/state-transition.md | markdown | 2.1 KB |
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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |