Agent skill · software engineering · daffy0208

Context Preserver

Automatically save and restore development context to minimize cognitive load when resuming work. Use when switching tasks, taking breaks, or returning after interruptions. Captures mental state, file locations, and next steps. Designed for ADHD developers with high context-switching costs.

Why this skill is useful

Adds executable scripts for automatic context capture and restoration that significantly enhance productivity for ADHD developers.

What it needs

Requires bash installed locally. About 8k tokens when loaded. Last updated 2025-12-25. 33 stars on the source repository.

What this skill does

Context Preserver Never lose your place. Resume in 5 minutes. Eliminate "Where was I?" moments. Core Principle ADHD brains have high context-switching costs and limited working memory. Every interruption means 15-30 minutes of "getting back into it." The solution: Automatically capture and restore mental state so you can resume work in under 5 minutes. Key Insight: The act of saving context is therapeutic - it signals "I can stop safely." --- The Context Problem Problem 1: High Context-Switching Cost Issue: After breaks, spend 15-30 min remembering what you were doing Result: Lost productivity, frustration, avoidance of breaks ###Problem 2: Working Memory Limits Issue: Can't hold complex state in mind Result: Constant re-reading code, forgetting next steps Problem 3: Interruption Anxiety Issue: Fear of losing place prevents taking needed breaks Result: Burnout, health issues, reduced quality Problem 4: "Where Was I?" Syndrome Issue: Return to work with no idea what you were doing Result: Thrashing, starting over, wasted time --- Phase 1: Automatic Context Capture What Gets Saved (Auto-Every 15 Minutes) File Context: Current file path Line number and function Related files (imports, dependencies) Git branch Mental State: What you were thinking What you just finished What you're about to do Blockers or questions Environment: Dev server status Open terminals Database state API keys loaded Time Context: When you started How long you've been working When you plan to stop Automated Saves Trigger 1: Every 15 Minutes (Background) Trigger 2: Before Breaks (Manual Command) Trigger 3: On Claude Session End (Auto) Trigger 4: On Interruption (Auto-Detect) --- Phase 2: Context Structure The .adhd/context.json File --- Phase 3: Automatic Context Restoration Quick Resume (< 5 Minutes) One-Command Resume Claude Automatic Resume When you start new Claude session: --- Phase 4: Mental State Capture Techniques Capturing "What Were You Thinking?" The 3-Question Method (Auto-Prompted) Eve …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills daffy0208/context-preserver

View the source on GitHub

Browse the @skills marketplace