<< Home | Work
Automated session cleanup, memory updates, and content drafting
| Area | Work |
| AI used | Claude Code |
| Source | r/ClaudeCode |
| Posted | 2026-02-18 |
The move
Create a custom 'wrap-up' skill that automatically commits code, updates project memory, applies self-improvement rules, and drafts content at the end of every session.Steps
- Define a 'wrap-up' skill in your Claude Code configuration that triggers on session end.
- Configure Phase 1 to auto-commit changes, push to remote, and organize file structures.
- Configure Phase 2 to review session insights and save them to CLAUDE.md or local memory.
- Configure Phase 3 to analyze conversation patterns and auto-apply rules to prevent future friction.
- Configure Phase 4 to identify and draft publishable content from the session notes.
Prompt for your AI
Create a custom skill named 'wrap-up' that runs at the end of my sessions. It should: 1. Commit and push all uncommitted changes. 2. Review the session for new knowledge and save it to [CLAUDE.md or local memory]. 3. Identify repetitive tasks I asked for and create a rule to automate them next time. 4. Draft a summary of any interesting technical solutions found during the session into a file in the /drafts folder.
What happened
The user struggled with forgetting to commit code, losing project insights, and failing to document work for publishing. They built a custom 'wrap-up' skill for Claude Code that executes a four-phase checklist at the end of every session. This automation ensures code is pushed, project rules are updated, and potential blog posts are drafted without manual effort.Watch out
Automated file moving and rule creation can occasionally miscategorize files or create conflicting rules if not monitored. Always review the summary report generated by the skill to ensure no unintended changes were committed.Give it to your agent
Read https://howtheyuse.ai/p/automated-session-cleanup-memory-updates-and-content-drafting.md and help me do this.