with one click
work-session
// Preserve work progress across disconnected sessions. Use '/work-session save' when ending work, '/work-session restore' when starting fresh.
// Preserve work progress across disconnected sessions. Use '/work-session save' when ending work, '/work-session restore' when starting fresh.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | work-session |
| description | Preserve work progress across disconnected sessions. Use '/work-session save' when ending work, '/work-session restore' when starting fresh. |
| license | Apache-2.0 |
| metadata | {"author":"wangxu-dev","version":"0.0.1","argument-hint":"<save|restore>"} |
Maintain development continuity across disconnected conversations by preserving progress, modified files, TODOs, and git state in a durable session file, with minimal console output.
| Command | When to Use | Behavior |
|---|---|---|
/work-session save | End of work session | Write current state to .session.md (primary output). Console output should be a short confirmation only. |
/work-session restore | Start of new session | If .session.md exists: read ā display summary to user ā load context ā delete file |
End of session (with context):
/work-session save
ā Analyze conversation ā Save to .session.md (rich detail) ā Print brief confirmation only
Start of new session (file exists):
/work-session restore
ā Read .session.md ā Display summary ā Delete file
Start of new session (no file found):
/work-session restore
ā Report "No saved session found" and explain how to save at end of work
.session.md is stored at project root (gitignored). It should be detailed and practical, capturing concrete work done and what remains. Keep it concise enough to scan, but not overly compressed.
# Work Session (2026-01-18 18:45)
## Summary
- Completed JWT token refresh logic in auth module
## Files Modified
- apps/back/src/modules/auth/routes.ts:75-82
- apps/back/src/modules/auth/middleware.ts
## TODOs
- [ ] Add token expiration error handling
## Next Steps
- Implement error handling for expired tokens
## Git State
- Branch: feature/auth-refresh
- Uncommitted changes: true
When saving, analyze the full working context (conversation + commands run + files touched + decisions made) and extract:
Output format (file content):
Session saved at 18:45
Summary:
- Completed JWT token refresh logic in auth module
- Modified apps/back/src/modules/auth/routes.ts:75-82
Developer-Style Notes:
- Keep responses terse, avoid console spam; focus on practical next actions
Detailed Progress:
- Added refresh flow with rotation
- Updated middleware to read new token location
- Left TODO comments for error edge cases
TODOs preserved:
- [ ] Add token expiration error handling
Next session may continue with error handling implementation.
Open Questions:
- Decide whether to expire refresh token on login or on first use
Git State:
- Branch: feature/auth-refresh
- Uncommitted changes: true
Console output (save):
Session saved to .session.md
When restoring, display the saved context, load it into the assistant's working context, state that it was consumed, and immediately delete the file.
Output format:
Restoring session from 18:45 (2 days ago)
Previous work:
- Completed JWT token refresh logic in auth module
- Modified apps/back/src/modules/auth/routes.ts:75-82
Detailed Progress:
- Added refresh flow with rotation
- Updated middleware to read new token location
- Left TODO comments for error edge cases
TODOs:
- [ ] Add token expiration error handling
Context hints:
- Branch: feature/auth-refresh
- Uncommitted changes detected
Session record consumed and deleted.
Ready to continue with error handling, or something else?
If no session file is found:
No saved session found.
Tip: Use /work-session save at the end of work to preserve context.
.session.md# End of work (save current session)
/work-session save
# Start of new work (restore previous session)
/work-session restore
Workflow:
Day 1 Evening: /work-session save
Day 2 Morning: /work-session restore