Session Summary Generator
Overview
Creates session summaries for multi-session work on this repo, enabling seamless resumption. Generates a Markdown file in .claude/summaries/YYYY-MM-DD/ with a standardized format, plus a self-reflection step that updates auto memory and learnings.
Project Context This Skill Serves
This project is a self-improving Claude Code architect and multi-agent framework featuring:
- Core Engine & Orchestrator (
src/core/) — Lifecycle manager running Generate → Reflect → Refine loops, API integration, and tool dispatch.
- Agents (
src/agents/) — Specialized LLM roles (Architect, Builder, Reviewer/Critic).
- Skills (
src/skills/) — Dynamic, executable tools and instructions exposed to agents via tool schemas.
- Hooks (
src/hooks/) — Deterministic lifecycle callbacks enforcing reliability (pre-task, post-generation, on-failure).
- Memory & Reflection (
src/memory/) — Persistent storage (learnings.json, LEARNINGS.md) that stores lessons learned from execution traces.
When summarizing, segment the session's work by which architectural layer it served so resuming agents immediately know which subsystems evolved.
When to Use
- User requests a summary ("generate summary", "wrap up", "save progress", "end session", "create summary")
- Completing a new agent, skill, hook, or core orchestrator feature
- Completing a major refactor or clean-code review
- Updating persistent memory schemas or reflection flows
- Conversation context reaching ~50% capacity before auto-compact
- Before starting a new chat session
Output Location
.claude/summaries/YYYY-MM-DD/YYYY-MM-DDTHH-MM_feature-name.md
- Folder: date portion of the filename (
YYYY-MM-DD)
- Filename:
YYYY-MM-DDTHH-MM_kebab-feature-name.md (time from current timestamp; - instead of : for filesystem safety)
- Feature name: kebab-case, descriptive (
tool-execution-loop, reviewer-reflection-hook, memory-manager-persistence, etc.)
Template Tiers
Choose based on session scope:
Lean Summary
Use for: short or narrow sessions — single bug fixes, dependency updates, single hook additions, small doc edits.
Full Summary
Use for: multi-component features, architectural refactoring, end-to-end self-improving loops, or sessions with significant design decisions.
See TEMPLATE.md for both templates.
Guidelines
Follow these when gathering information and writing the summary:
- Token efficiency (
guidelines/token-efficiency.md): Search before reading, combine operations, scope searches to relevant dirs, don't re-read files already in context. Keep summary prose concise — bullets over paragraphs.
- Command accuracy (
guidelines/command-accuracy.md): Use forward slashes in all paths, verify paths with Glob before referencing them in the summary, copy exact file paths from tool output.
Instructions
Step 1: Analyze Current Work
Run git inspection commands:
git status
git diff --stat
git log --oneline -10
Review the conversation to identify:
- Code changes in
src/core/, src/agents/, src/skills/, src/hooks/, src/memory/
- Documentation and research notes updated
- Dependencies installed or environment config updated
- Unit tests or execution runs performed
- Persistent learnings added to
learnings.json
Step 2: Choose Template Tier
- Lean: narrow scope, ≤3 files/actions
- Full: multi-component work, new agents/skills/hooks, refactors, design decisions
Step 3: Generate Summary File
Group "Completed Work" by this project's natural categories:
- Core Orchestrator & Engine (
src/core/)
- Agents & Roles (
src/agents/)
- Skills & Tools (
src/skills/)
- Hooks & Guardrails (
src/hooks/)
- Memory & Self-Improvement (
src/memory/, learnings.json)
- Documentation & Tests (
docs/, tests/, README.md)
Step 4: Create Resume Prompt
Copy-paste ready, working with zero conversation context. Must include:
- Reference to the generated summary file
- Specific files to review first (e.g.
src/index.js, src/core/Orchestrator.js)
- Current status (clean git tree, tests passing, pending items)
- Immediate next steps and any blockers
Step 5: Session Retrospective (Full template only)
Honest, qualitative assessment:
- Efficiency: Good / Fair / Poor with one-sentence justification
- What went well / What could improve
- Notable issues: only actual errors/failures
Step 6: Self-Reflection & Memory Update
Runs for both Lean and Full summaries:
- Scan for failed commands, edit retries, or execution trace failures.
- Check if a pattern or rule should be saved into
learnings.json or project guidelines.
- Keep entries actionable, concise, and focused on preventing regressions.
Example Usage
When user says: "Let's wrap up for today" or "/summary-generator":
- Analyze git changes and session history.
- Create
.claude/summaries/YYYY-MM-DD/YYYY-MM-DDTHH-MM_feature-name.md.
- Provide the resume prompt in chat.
- Suggest starting the next session with the resume prompt.
1---2name: summary-generator3description: Generates session summaries and resume prompts for multi-session work on this self-improving Claude agent framework (agents, skills, hooks, memory loop). Use when completing features, refactoring architecture, before context limits (~50% capacity), or when user says "summary", "wrap up", "save progress", "end session". Creates markdown in .claude/summaries/YYYY-MM-DD/ with completed work, files modified, and a copy-paste resume prompt.4---56# Session Summary Generator78## Overview910Creates session summaries for multi-session work on this repo, enabling seamless resumption. Generates a Markdown file in `.claude/summaries/YYYY-MM-DD/` with a standardized format, plus a self-reflection step that updates auto memory and learnings.1112## Project Context This Skill Serves1314This project is a **self-improving Claude Code architect and multi-agent framework** featuring:151. **Core Engine & Orchestrator** (`src/core/`) — Lifecycle manager running Generate → Reflect → Refine loops, API integration, and tool dispatch.162. **Agents** (`src/agents/`) — Specialized LLM roles (Architect, Builder, Reviewer/Critic).173. **Skills** (`src/skills/`) — Dynamic, executable tools and instructions exposed to agents via tool schemas.184. **Hooks** (`src/hooks/`) — Deterministic lifecycle callbacks enforcing reliability (pre-task, post-generation, on-failure).195. **Memory & Reflection** (`src/memory/`) — Persistent storage (`learnings.json`, `LEARNINGS.md`) that stores lessons learned from execution traces.2021When summarizing, segment the session's work by which architectural layer it served so resuming agents immediately know which subsystems evolved.2223## When to Use2425- User requests a summary ("generate summary", "wrap up", "save progress", "end session", "create summary")26- Completing a new agent, skill, hook, or core orchestrator feature27- Completing a major refactor or clean-code review28- Updating persistent memory schemas or reflection flows29- Conversation context reaching ~50% capacity before auto-compact30- Before starting a new chat session3132## Output Location3334```35.claude/summaries/YYYY-MM-DD/YYYY-MM-DDTHH-MM_feature-name.md36```3738- **Folder**: date portion of the filename (`YYYY-MM-DD`)39- **Filename**: `YYYY-MM-DDTHH-MM_kebab-feature-name.md` (time from current timestamp; `-` instead of `:` for filesystem safety)40- **Feature name**: kebab-case, descriptive (`tool-execution-loop`, `reviewer-reflection-hook`, `memory-manager-persistence`, etc.)4142## Template Tiers4344Choose based on session scope:4546### Lean Summary47Use for: short or narrow sessions — single bug fixes, dependency updates, single hook additions, small doc edits.4849### Full Summary50Use for: multi-component features, architectural refactoring, end-to-end self-improving loops, or sessions with significant design decisions.5152See [TEMPLATE.md](TEMPLATE.md) for both templates.5354## Guidelines5556Follow these when gathering information and writing the summary:5758- **Token efficiency** (`guidelines/token-efficiency.md`): Search before reading, combine operations, scope searches to relevant dirs, don't re-read files already in context. Keep summary prose concise — bullets over paragraphs.59- **Command accuracy** (`guidelines/command-accuracy.md`): Use forward slashes in all paths, verify paths with Glob before referencing them in the summary, copy exact file paths from tool output.6061## Instructions6263### Step 1: Analyze Current Work6465Run git inspection commands:66```bash67git status68git diff --stat69git log --oneline -1070```7172Review the conversation to identify:73- Code changes in `src/core/`, `src/agents/`, `src/skills/`, `src/hooks/`, `src/memory/`74- Documentation and research notes updated75- Dependencies installed or environment config updated76- Unit tests or execution runs performed77- Persistent learnings added to `learnings.json`7879### Step 2: Choose Template Tier8081- **Lean**: narrow scope, ≤3 files/actions82- **Full**: multi-component work, new agents/skills/hooks, refactors, design decisions8384### Step 3: Generate Summary File8586Group "Completed Work" by this project's natural categories:87- **Core Orchestrator & Engine** (`src/core/`)88- **Agents & Roles** (`src/agents/`)89- **Skills & Tools** (`src/skills/`)90- **Hooks & Guardrails** (`src/hooks/`)91- **Memory & Self-Improvement** (`src/memory/`, `learnings.json`)92- **Documentation & Tests** (`docs/`, `tests/`, `README.md`)9394### Step 4: Create Resume Prompt9596Copy-paste ready, working with zero conversation context. Must include:97- Reference to the generated summary file98- Specific files to review first (e.g. `src/index.js`, `src/core/Orchestrator.js`)99- Current status (clean git tree, tests passing, pending items)100- Immediate next steps and any blockers101102### Step 5: Session Retrospective (Full template only)103104Honest, qualitative assessment:105- **Efficiency**: Good / Fair / Poor with one-sentence justification106- **What went well** / **What could improve**107- **Notable issues**: only actual errors/failures108109### Step 6: Self-Reflection & Memory Update110111Runs for **both** Lean and Full summaries:1121. Scan for failed commands, edit retries, or execution trace failures.1132. Check if a pattern or rule should be saved into `learnings.json` or project guidelines.1143. Keep entries actionable, concise, and focused on preventing regressions.115116## Example Usage117118When user says: "Let's wrap up for today" or "/summary-generator":1191201. Analyze git changes and session history.1212. Create `.claude/summaries/YYYY-MM-DD/YYYY-MM-DDTHH-MM_feature-name.md`.1223. Provide the resume prompt in chat.1234. Suggest starting the next session with the resume prompt.