
Context Summary squeezes a long chat into one short note you paste into a fresh chat to carry on where you left off.
What It Is
Context Summary is a skill I built for Claude, Anthropic's AI assistant. A skill is a file of written instructions that an AI assistant follows when you call it by name. This one has a single job. When a long conversation gets heavy, you type 'context summary', and it writes a handoff.
A handoff is a short note for whoever works next. Here, the next worker is a brand new chat that knows nothing. You paste the note as the first message, and the new chat is ready to continue without you explaining the project again.
I call the result a boarding pass, not an archive. A boarding pass is small. It has only what you need to get on the plane. An archive is the whole suitcase. This skill makes the boarding pass.
Why It Exists
Long chats wear out. The assistant has limited memory, and a very long chat gets slow and costly to carry. At some point you want to start fresh. But a fresh chat has forgotten everything: what you are building, what you already decided, and the mistake that cost you an hour yesterday.
You could paste the whole old chat into the new one. That wastes space and buries the useful parts. You could write a quick summary yourself. That depends on your memory at the end of a long day, and it tends to miss the dull details that cause trouble later.
Every word in a handoff is paid for again on every turn of the new chat, because the assistant rereads it each time. So the standard I set is strict. If a line does not change what the next session does, it does not belong in the note.
How It Works: From Trigger to Note
You say a trigger phrase. The skill answers to 'context summary', 'context handoff', 'give me the handoff', 'carry context forward', 'hand this off', and a few close variations. Saying 'we are out of room here, give me the handoff' works too.
The assistant then reads the conversation directly. It never asks you to paste the chat, because it already has it. There is one exception. If you say you have notes or an earlier handoff from another conversation to add, it pauses so you can paste them in, waits for you to say 'continue', and then folds them in.
If the chat is connected to a Git repository, the skill checks the real state with tools instead of guessing. Git is the program that tracks changes to code. The skill looks up the current branch, the latest commit, and whether there are unsaved changes. Anything it cannot check is marked as unverified, so nobody mistakes a guess for a fact.
The output is plain Markdown, a simple text format with headings and bullet points. There is no greeting above it and no comment below it. The very first character of the reply must be the start of the note itself. That makes it safe to copy in one go and paste straight into a new chat.
How It Works: The Seven Blocks
The shape of the note never changes. There are seven blocks, always in the same order, always with the same meaning. A fresh session learns where to look once, and from then on it finds the branch, the locked decisions, and the first move without reading a transcript.
TASK STATE comes first. It is three to five sentences on what the work is, why it matters, and exactly where it stands. CURRENT HEAD lists one fact per line, such as the branch, the latest commit, whether the working folder is clean, whether it is pushed, and the state of any hosting or database service. For work with no code, such as writing or planning, it describes the main document and its state instead.
DECISIONS LOCKED holds the choices nobody should reopen, grouped by topic. Fragile ones carry a 'do not weaken' flag and a short reason. ACTIVE GOTCHAS lists five to twelve traps that could bite next. Each line names the trap, the symptom you would see if you ignored it, and the guard that prevents it. Quiet failures come first, because those are the hardest to notice.
OPEN QUESTIONS lists what is still unresolved, what is assumed for now, and when the answer is needed. If the skill is unsure whether something was settled, it goes here, not in the locked list. ARCHIVE POINTER takes one to three lines and says where the full log lives, or states plainly that no archive exists. NEXT STEP is a three-line message in a code box. It names the project, gives the next action, and ends with a fixed line telling the new chat that the attached handoff is the authority.

What Keeps It Short and Honest
The note has a length budget. The target is about 40 content lines, with a hard ceiling of 80. The README gives rough equivalents of about 3,000 and 5,000 tokens for intuition. A token is a small chunk of text that an AI model counts when it reads and writes. I count lines instead, because a model can count its own lines while it writes and cannot reliably count tokens. If the note creeps toward the ceiling, the skill treats that as a sign that archive material has leaked in, and it cuts.
Empty blocks are left out rather than filled with filler. When a block is dropped, the very first line of the note says so: 'Blocks empty this session', followed by the names. That way a missing block reads as a deliberate choice. A short session gets a short note. The skill refuses to pad it.
The skill also refuses to invent. If the conversation never established a fact, the skill leaves it out or marks it unverified. A confident wrong handoff does more harm than an honest gap, because the next session will trust it. Anything the skill is unsure about goes under open questions with a resolve-by marker.

What I Built It With and Where It Stands
The skill is one file, SKILL.md, with a header that tells Claude when to use it. The repository also holds a README, a changelog, contribution notes, a banner image, and a version of the command for Claude Code. To install it in Claude.ai, you paste the file into Settings, then Skills, then Personal skills. There are no libraries and no servers behind it.
The current version is 2.2.0, dated 2026-07-06 in the changelog. That release turned the next-step block into a short pointer, switched the budget from tokens to lines, and made empty blocks vanish behind the ledger line. It also made the infrastructure lines generic, so the skill is not tied to one hosting company or database.
Context Summary pairs with Session Detail. Session Detail keeps the long record of a whole session. Context Summary carries forward only what the next session needs to resume at full strength. The skill also runs fine on its own with no companion.
It is open source under the MIT license, so anyone can use it and change it. The README includes a worked example of a handoff from a multi-session web API build.
Glossary
- skill
- A file of written instructions that an AI assistant follows when you call it by name.
- handoff
- A short note that lets a new chat or a new person carry on the work.
- Git
- A program that tracks every change made to a set of files.
- Markdown
- A simple text format that uses plain symbols for headings and bullet points.
- commit
- A saved snapshot of your code at one moment, with a short message about it.
- gotcha
- A trap that is easy to miss and causes trouble later.
- ledger line
- The first line of the note, which names the blocks left out on purpose.
- MIT license
- A permission note that lets anyone use and change the work for free.
- token
- A small chunk of text that an AI model counts when it reads and writes.
Key Facts
- Seven blocks in a fixed order
- Pairs with Session Detail
- Open source