session-end
Installation
SKILL.md
Procedure for Ending and Archiving a Development Session
This procedure archives the work from the current session into a permanent, detailed log for future reference.
Token Optimization
This skill optimizes summary generation through Bash-based analysis and template structures:
1. Bash-Based Session Analysis (1,500 token savings)
Pattern: Use git commands and file metadata instead of reading files
# Bash-based analysis (400 tokens)
SESSION_FILE=$(cat .claude/sessions/.current-session)
START_TIME=$(head -1 "$SESSION_FILE" | grep -oP '\d{4}-\d{2}-\d{2} \d{2}:\d{2}')
END_TIME=$(date '+%Y-%m-%d %H:%M')