pre-compact-notelisted
Install: claude install-skill restarter/lets-workflow
# Pre-Compact Resume Snapshot
Shared resume-snapshot step for the `--pre-compact` modes of `/lets:note` and `/lets:end`. **Single source of truth** for the snapshot — both commands delegate here so the template never drifts.
Goal: ONE recovery-grade `## RESUME` comment on the active task so a future you / another agent can fully reconstruct the working context after `/compact` summarizes the conversation — what is decided, where everything lives, and the exact next step.
> **Contract — this skill ONLY writes the snapshot.** It does NOT end the session, push, merge, commit, or close anything. The caller decides what else to do.
## Step 1: Active task
The caller passes the active task id (from its own `detect-task`). If none was passed, run `Skill(skill: "lets:detect-task")`. If still no active task -> use the no-task fallback (Step 4).
## Step 2: Gather state
```bash
git branch --show-current
git log --oneline -5
git status --short # uncommitted / untracked
```
## Step 3: Write the snapshot to the active task
English; one continuous line per paragraph - no hard wrap:
```bash
bd comments add <task-id> "## RESUME {YYYY-MM-DD} - {short label}
### Where things live
- repo / branch: {branch} @ {short-sha}; key paths touched: {file:line, ...}
- external sources: {PR #, links, other-project paths, index / recovery commands}
### State
- committed/merged: {...}; uncommitted/untracked: {git status}; frozen artifacts + SHAs: {...}
### Decided (do NOT re-litigate)
-