bye
Original:🇺🇸 English
Translated
Use when the user says /bye, "wrap up", "end session", or similar. Reconstructs full session history including compacted context, creates a sessionlog, commits changes, and summarizes next steps.
56installs
Sourceeins78/skills
Added on
NPX Install
npx skill4agent add eins78/skills byeTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Session Wrap-up
CRITICAL: Restore Full Session History First
Nothing proceeds until full history is reconstructed. Context compaction hides earlier work — you must recover it or the sessionlog will be incomplete.
- Use a subagent to analyze the session file (see subagent-tasks.md)
- Follow the tool-specific restoration guide:
- Claude Code: claude-code-session-restoration.md
- Cursor: cursor-session-restoration.md
- Combine restored history with current context before continuing
If restoration finds no prior work beyond current context, proceed — but log that restoration was attempted.
Parallel session safety: The user may have multiple sessions running. Filter byand timestamp correlation. Never combine work from other sessions. If uncertain, ASK.$CLAUDE_SESSION_ID
Session Type Detection
After restoring history, classify the session:
| Signal | Type | Action |
|---|---|---|
| Subagent | STOP — do not run /bye |
| Metadata session | SKIP — not a real work session |
First messages reference executing a plan; recent file in | Plan execution | Read plan file; sessionlog documents execution vs plan |
System message contains | Plan creation | Plan file is the deliverable |
| None of above | Normal | Continue with checklist |
Session Wrap-up Checklist
- Determine scope — everything between last /bye (or session start) and now. Verify each item was discussed in THIS conversation.
- Assess work — files created, files modified, decisions made, research done, tasks completed, tasks remaining.
- Trivial session? If just Q&A with no file changes, ask: "Skip sessionlog?"
- Create or update sessionlog — see sessionlog-template.md for format, naming, and create-vs-update logic.
- Update project status — if work relates to , update its
projects/*/.status.md - Handle git — see git decision table below.
- Print final summary — see template below.
Git Decision Table
| Situation | Action |
|---|---|
| Files I created/edited THIS session | Auto-commit |
| Untracked files from before | ASK |
| Modified files I didn't touch | ASK — likely parallel session |
| .env, credentials, secrets | NEVER, warn user |
Commit message:
[Brief description]\n\nSession wrap-up: YYYY-MM-DDPush if remote tracking exists.
Final Summary Template
## Session Complete
**Accomplished:**
- [item 1]
- [item 2]
**Committed:** [hash]
- [file list]
**Pending:**
- [ ] [task 1]
**Sessionlog:** `sessionlogs/[file].md`
Ready to clear context.