session-cleanup
Session Cleanup
Run this skill before saying a conversation is finished when this session created temp files, started background services, or opened browser pages, and whenever the user asks to clean those up. Finish the report before the closing message.
Resolve <integration> once and reuse it. Take the remote default branch (git symbolic-ref --short refs/remotes/origin/HEAD, drop the remote prefix). If that ref is missing, use the branch the current checkout tracks. Comparisons below use that name.
Inventory
List what this session actually did, in five groups:
- Paths this session created.
- Background processes and services this session started, with the process id and any port that process bound.
- Browser pages this session opened.
- Uncommitted and untracked paths in the workspace.
- Paths, processes, and pages whose origin is unclear.
Classify each item as unique uncommitted content, a session-started background service, a session-opened browser page, a disposable temp file, or pre-existing user state. Unclear origin is unique uncommitted content.
Show the classified list before stopping anything, closing a page, or deleting anything.