Capture session learnings before ending work. Use when user says goodbye, is done for the day, or explicitly asks to save session context.
From cortexnpx claudepluginhub jsvitolo/cortex-plugins --plugin cortexThis skill is limited to using the following tools:
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Provides Kotlin patterns for JetBrains Exposed ORM: DSL/DAO queries, coroutine transactions, HikariCP pooling, Flyway migrations, repository pattern.
Before ending this session, let's capture what was learned.
!cx ls -s progress 2>/dev/null | head -5
Based on the work done in this session, I'll create a diary entry:
Task: [Summary of what was worked on]
Work Done:
- [Main accomplishments]
Design Decisions:
- [Key technical decisions made]
Challenges:
- [Problems encountered]
Solutions:
- [How challenges were solved]
Lessons Learned:
- [Key takeaways for future sessions]
Preferences:
- [User preferences observed]
After filling the template, run:
echo "Task: ...
Work Done:
- ...
Design Decisions:
- ...
Lessons Learned:
- ..." | cx memory diary --task CX-N
After creating the diary:
Check if patterns are emerging:
cx memory reflect
If strong patterns exist, generate rules:
cx memory rules --min-strength pattern
For a quick capture without full template:
echo "Task: [brief summary]
Lessons Learned:
- [main takeaway]" | cx memory diary