brainstorming
Structured design dialogue that validates ideas before implementation begins.
72-close-session-150
[72] CLOSE. Save and restore session context between conversations. Use when ending a session to preserve progress, or starting a new session to restore context. Triggers on \"save session\", \"end session\", \"preserve context\", \"handoff\", \"continue from last time\", or when context window i...
Full skill instructions
Core Principle: Never lose progress. Save context before ending, restore context when starting.
This skill handles two modes:
SAVE triggers:
RESTORE triggers:
Before saving, collect data from all sources:
| Source | What to Read | Purpose |
|---|---|---|
.sessions/SESSION_[date]-[name].md | Progress Log / Findings / Decisions | Raw data for lessons |
| Chat history | Current conversation context | What was discussed, tried, decided |
MEMORY.md | Lessons Inbox | Existing lessons |
| Files touched | Recent changes | What was modified |
Critical: Don't start saving until you've read all sources!
Review the session log Progress Log and extract lessons:
MEMORY.md Lessons (Inbox)Progress Log Analysis:
❌ Failed attempts → Why did they fail? → Principle for future
✅ Successful fixes → What made it work? → Confirm understanding
🔄 Experiments → What was learned? → Document insight
What was accomplished:
Key choices made and why:
Clear continuation path:
Important state to remember:
💾 **SESSION-SAVE 150**
**Date:** [YYYY-MM-DD HH:MM]
**Project:** [Project name/path]
## Progress Made
- ✅ [Completed item 1]
- ✅ [Completed item 2]
- 🔄 [In progress item]
## Current State
- Working on: [Current focus]
- Files touched: [Key files]
- Status: [Overall status]
## Key Decisions
| Decision | Reasoning |
|----------|-----------|
| [Choice 1] | [Why] |
| [Choice 2] | [Why] |
## Next Steps (Priority Order)
1. **Immediate:** [Next action]
2. **Then:** [Following action]
3. **Later:** [Future action]
## Blockers & Risks
- ⚠️ [Blocker/Risk 1]
- ⚠️ [Blocker/Risk 2]
## Context to Remember
- [Important detail 1]
- [Important detail 2]
---
**Handoff Status:** ✅ Ready for next session
🔄 **SESSION-RESTORE 150**
**Restoring from:** [Date of saved session]
## Previous Progress
[Summary of what was done]
## Continuing From
- Last state: [Where we left off]
- Next step: [What to do now]
## Context Restored
- ✅ [Verified context 1]
- ✅ [Verified context 2]
- ⚠️ [Needs verification]
## Ready to Continue
Starting with: [First action]
For fast saves when time is short:
💾 **QUICK SAVE**
**Done:** [What was accomplished]
**Current:** [Where we are]
**Next:** [What to do next]
**Remember:** [Key context]
If 74-mid-session-save-150 was used during the session:
Session Flow:
┌─────────────────────────────────────────────────────────┐
│ mid-session-save → mid-session-save → close-session │
│ ↓ ↓ ↓ │
│ Progress Log #1 Progress Log #2 READ ALL LOGS │
│ (raw data) (more data) EXTRACT LESSONS │
│ FINAL HANDOFF │
└─────────────────────────────────────────────────────────┘
Close-session responsibility:
.sessions/SESSION_[date]-[name].mdMEMORY.md Lessons (Inbox)📁 SAVE LOCATIONS
├── MEMORY.md # Project memory file + extracted lessons
├── .sessions/SESSION_[date]-[name].md # Session-specific log (read & update)
├── Project README # For major milestones
└── Git commit message # For code changes
| Location | READ | WRITE |
|---|---|---|
.sessions/SESSION_[date]-[name].md | Progress Log, checkpoints, findings | Final handoff state |
MEMORY.md | Lessons Inbox | New lessons |
| Chat history | Full conversation context | — |
| Files touched | What was modified | — |
Input: Progress Log from .sessions/SESSION_[date]-[name].md
### Checkpoint #1
❌ Didn't Work: Direct state update in useEffect — infinite loop
Reason: dependency array included computed object
### Checkpoint #2
🔄 Tried: useMemo for computed dependency
✅ Worked: useMemo solved the loop — stable reference now
### Checkpoint #3
❌ Didn't Work: Hardcoded colors in component
Reason: Violates project convention (use themeColors)
✅ Worked: Imported from @/utils/themeColors
Output: Lessons extracted to MEMORY.md
### 2026-01-10 useEffect dependency stability
**Problem:** Infinite loop from computed object in useEffect deps
**Attempts:** Direct state update failed
**Solution:** Use useMemo to create stable reference
**Why it worked:** useMemo memoizes the computed value, preventing new reference on each render
**Principle:** Never use computed objects in useEffect deps — wrap with useMemo or extract primitive IDs
### 2026-01-10 Color convention adherence
**Problem:** Hardcoded colors violated project standards
**Solution:** Import from @/utils/themeColors
**Principle:** All colors must come from central theme utilities, never hardcoded
"Was working on stuff. Continue later."
Result: Next session spends 30 min figuring out what "stuff" was
💾 SESSION-SAVE 150
Progress Made:
- ✅ Created 7 skills from protocols
- ✅ Refactored chain-flow to include action-plan
- 🔄 Working through remaining protocols
Current State:
- Converting PROTOCOLS_GENERALIZED.md to skills
- 7/13 protocols converted
Key Decisions:
| Decision | Reasoning |
|----------|-----------|
| Renamed "Plan-First" → "chain-flow" | It's an orchestrator, not just a plan |
| Separated action-plan as own skill | Needed as component in chains |
Next Steps:
1. **Immediate:** Create a mid-session checkpoint (`74-mid-session-save-150`) if context is low
2. **Then:** Continue with remaining protocols
3. **Later:** Test skills integration
Context to Remember:
- Skills go in ./.codex/skills/ folder
- Each skill needs SKILL.md with yaml frontmatter
- chain-flow orchestrates other skills
Handoff Status: ✅ Ready
| Failure | Detection | Recovery |
|---|---|---|
| No save | Session ended without handoff | Reconstruct from memory, files, git |
| Vague save | Can't understand notes | Ask questions, check artifacts |
| Outdated context | Things changed since save | Verify current state, update |
| Missing decisions | Don't know why choices made | Review code/docs, make new decision |
| Skipped Progress Log | Lessons not extracted | Re-read session log, extract |
| Didn't read sources | Incomplete handoff | Gather from all sources, redo save |
Remember: Future you (or next session) will thank present you for good notes. Context loss is expensive — prevention is cheap.
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs