Suggest archiving completed work when PRs are merged or work is completed. Triggers when user asks to merge a PR ("merge it", "merge the PR"), after successful gh pr merge, or mentions completion ("shipped", "done with X", "merged to main"). Does NOT archive automatically - suggests running /sessions:archive.
This skill is limited to using the following tools:
This skill detects when session work may be ready for archiving and suggests the appropriate action.
Trigger when:
gh pr mergeIf user asks to merge a PR:
Find git root and check if .sessions/index.md exists
If it exists, read it to assess work state
If user provided a PR URL/number (or you just merged one), verify status:
gh pr view [URL/number] --json state,mergedAt,title
Assess if work appears complete:
If work appears complete, suggest archiving:
"PR merged successfully. This session's work looks complete - want me to archive it? Run
/sessions:archiveto move completed work to the archive."
If there's more work in the session:
"PR merged. I see there's still [X, Y] in the session notes - want to continue with those or archive what's done so far?"
/sessions:archive to perform the archive.sessions/ doesn't exist, don't suggest archiving