| name | bookend |
| description | This skill should be used when the user asks to "set up bookend", "morning briefing", "session start", "session end", "checkpoint", "save state", "capture context", "evening wrap", "end of day", or discusses memory management, context persistence, or session continuity for AI assistants. |
| version | 1.0.0 |
Bookend — Anti-Context-Loss System
Never lose context again. Bookend gives your agent a structured memory system with morning briefings, checkpoints, and end-of-day routines.
The Problem
Your agent forgets everything when context compacts. You say "do point 5" and it has no idea what you mean.
The Solution
Bookend creates a state/current.md that survives any compaction. Your agent reads it on startup and always knows what's going on.
Features
- Morning Briefing — Agent wakes up, reads state, checks emails, briefs you
- Auto-Checkpoints — Saves progress every 30 min and after every task
- End of Day — Finalizes state, updates daily memory
- Nightly Builds — Agent works on a backlog while you sleep
- Survives Compaction —
state/current.md is the single source of truth
Setup
Create the following files in the user's workspace:
state/current.md — Live state file with sections: Active Threads, Recent Context, Pending Tasks, Notes
state/ROUTINES.md — Morning/checkpoint/EOD routines
state/nightly-backlog.md — Tasks for overnight builds
memory/ directory — For daily memory files
MEMORY.md — Long-term curated memory
- Update
AGENTS.md with the bookend checkpoint rules
How It Works
Morning (first heartbeat after 07:00)
- Read
state/current.md
- Check yesterday's memory file
- Scan emails for urgent items
- Send brief: Top 3 priorities, new emails, next appointment
During the Day (every ~30 min)
- Update
state/current.md with current topics
- Append to
memory/YYYY-MM-DD.md
- If context is getting full, checkpoint NOW
End of Day
- Finalize
state/current.md
- Close daily memory file
- Review if anything belongs in long-term memory
Overnight (optional cron at 23:00)
- Read
state/nightly-backlog.md
- Work on top item
- Document in
memory/nightly-builds.md
- Don't disturb the human
Why This Works
The key insight: your agent needs a "current state" file that's always up to date. When compaction happens, the agent reads this file and picks up exactly where it left off.
- Explicit state — No "did we discuss this?" guessing
- Daily files — Easy to review, grep, reference
- Curated memory — Long-term file stays relevant (not just logs)
- Checkpoint discipline — Survive context compaction