skills/use-session/SKILL.md
Use when: 'session state', 'resume work', 'worktree session'.
npx skillsauth add kenoxa/spine use-sessionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Workflow continuity contract. Keeps long-running Spine work reconstructable across context loss, provider switch, and worktree switch.
.scratch/<session>/ from the active workflow. If none exists, create
.scratch/<slug>-<hash>/ and bootstrap session-log.md before machine files.session.json — atomic current-state snapshot.events.jsonl — append-only event stream, one JSON object per line.session-log.md — human-readable recovery log; required until consumers
prove equivalent recovery from machine files.session.json,
events.jsonl, and session-log.md. Subagents write assigned artifacts only.
Worktree agent may write session files only after explicit attach to the same
session.attention_required: true, set attention_reason, append attention, stop.session.json to temp path in same directory,
then mv into place. Never leave a partial JSON file.events.jsonl. Add monotonic seq,
timestamp, actor, branch, and worktree path on every event..scratch is bridged into a worktree, reuse
the existing session and append session.attach. Creating a second session for
the same goal is a failure.use-session stores continuity state only. It does
not run DAGs, retries, permissions, review/merge automation, aggregation, or
queue supervision.Read references/session-v1-contract.md before creating or updating machine
state. Read references/session-v1-examples.md when writing examples, fixtures,
or proofs.
session.json valid JSON with schema version, status, writer, branch,
worktree path, attention fields, and next step. [E3: jq]events.jsonl line valid JSON and tied to the same session_id. [E3:
line-by-line jq]session.json.status (complete, partial, blocked) has a
matching terminal event; otherwise mark missing_terminal. [E2/E3]session-log.md contains a phase row for the same current state. [E2]events.jsonl as a replay engine or analytics stream.run-queue behavior under a session name.tools
Use when: 'create a worktree', 'git worktree', 'parallel branch'.
development
Use when: 'goal prompt'.
testing
Thinking-lens stress-test on a recommendation.
data-ai
Git conflict resolver for prepared merge briefs. Use when a merge, sync, or land operation has conflicts and the caller provides a self-contained brief.