← Back to Skills

session-summary

romiluz13
Updated Today
25 views
15
3
15
View on GitHub
Metawordautomation

About

The session-summary skill creates comprehensive documentation of conversation context to preserve important details before compaction events. It automatically analyzes transcripts to capture accomplishments, file changes, decisions, and next steps. Use it when approaching token limits, after major workflow phases, or as a mandatory step before final deliverables.

Documentation

Session Summary Skill

CRITICAL: This skill creates comprehensive session documentation to preserve context across compaction events. Use proactively before compaction or when context is large.

When to Use

Use this skill when:

  • Before Phase 6 (final deliverable) - MANDATORY
  • Approaching token limits (75%+ usage)
  • After major workflow phase completion (Phase 4 or Phase 5)
  • End of session or workflow completion

CRITICAL: This skill is MANDATORY before Phase 6 in all workflows. It cannot be skipped.

CRITICAL REQUIREMENT

YOU MUST output a clean, well-formatted session summary document both in your response AND save to file using the exact structure provided below.

Your Task

COMPLETE WORKFLOW - Follow these steps in order:

Step 1: Archive Management

  1. Check existing session: Use Read tool on .claude/memory/CURRENT_SESSION.md

    • If file doesn't exist, proceed to Step 2
    • If file exists, continue to archive it
  2. Archive existing session: If CURRENT_SESSION.md exists:

    • Create timestamp: YYYY-MM-DD-HH-MM-SS format
    • Ensure directory exists: .claude/memory/session_summaries/
    • Use Write tool to save to .claude/memory/session_summaries/session-{timestamp}.md
    • Copy exact content from CURRENT_SESSION.md
  3. Prune old archives: Use ListDir or Bash tool to check .claude/memory/session_summaries/

    • Count existing session files (session-*.md pattern)
    • If more than 10 files exist, delete oldest files to keep only 10 most recent
    • Use file modification times to determine age

Step 2: Create New Session Summary

Analyze the conversation transcript and create a polished session summary document that captures:

  • What actually happened (not what was planned)
  • Real file changes and tool usage
  • Concrete accomplishments and decisions
  • Technical details and learning moments
  • Current workflow state and progress
  • Next steps explicitly

Step 3: Save Session Record

Write the formatted session summary to .claude/memory/CURRENT_SESSION.md

Analysis Process

  1. Parse Tool Calls: Extract all Edit, Write, Bash, Grep, Read, CodebaseSearch tool calls with parameters
  2. Track File Changes: List every file that was actually modified (check git status if available)
  3. Extract Commands: Document important bash commands executed
  4. Identify Patterns: Find architectural decisions and problem-solving approaches
  5. Capture Learning: Note insights, discoveries, and knowledge gained
  6. Extract Workflow State: Check for active workflow checkpoints and include current phase/progress
  7. Document Decisions: Extract key decisions from conversation and WORKING_PLAN.md

MANDATORY OUTPUT FORMAT

You MUST output exactly this structure with proper formatting:

# πŸ“‹ Session Summary - [Month Day, Year]

## 🎯 Session Overview

[2-3 sentences describing the main focus, what was worked on, and key outcomes]

## πŸ“ Files Modified

### Code Changes

- **`src/path/file.ts`** - [Detailed description of what changed and why]
- **`templates/path/file.md`** - [Specific changes made with technical context]

### Documentation Updates

- **`README.md`** - [What documentation was added/updated]
- **`CLAUDE.md`** - [Any project instructions updated]

## βš’οΈ Tool Calls & Operations

### File Operations

- **Edit**: `file.ts:45-67` - [What was edited]
- **Write**: `newfile.md` - [What was created]
- **Read**: `config.json` - [What was examined]

### System Commands

- **Bash**: `npm run lint:fix` - [Why command was run and result]
- **Bash**: `git commit -m "message"` - [Commit details]

## βœ… Key Accomplishments

- **[Feature/Fix Name]**: [Specific implementation details and impact]
- **[Bug Resolution]**: [Problem identified, solution implemented, verification]
- **[Architecture Change]**: [Design decision made and technical rationale]

## πŸ”§ Problems Solved

- **Issue**: [Problem description]
  - **Solution**: [How it was resolved with technical details]
  - **Files**: [Which files were modified]
  - **Verification**: [How solution was tested/validated]

## πŸ’‘ Technical Decisions

- **Decision**: [What was decided]
  - **Rationale**: [Why this approach was chosen]
  - **Impact**: [How this affects the project]
  - **Alternatives**: [Other options considered]

## πŸ”„ Next Steps

- **Immediate**: [Tasks that need to be done next session]
- **Short-term**: [Planned work for upcoming sessions]
- **Follow-up**: [Items to investigate or validate later]

## 🧠 Learning & Insights

- **Technical Patterns**: [Code patterns or architectural insights discovered]
- **Development Process**: [Process improvements or workflow learnings]
- **Project Context**: [Important project knowledge gained]

## πŸ“Š Session Metrics

- **Duration**: [Estimated session length based on message count]
- **Tool Calls**: [Total number of tool calls made]
- **Files Changed**: [Number of files modified]
- **Commands Run**: [Number of bash commands executed]

## 🌳 Git Repository State

### Changes Made

- **Branch**: [Current branch]
- **Commits**: [Any commits made during session]
- **Modified Files**: [List from git status]
- **Status**: [Clean/dirty working tree]

### Repository Health

- **Build Status**: [If build was run, the result]
- **Tests**: [If tests were run, the result]
- **Linting**: [If linting was run, the result]

## πŸ”„ Active Workflow State

- **Workflow**: [Current workflow type if active]
- **Phase**: [Current phase and progress]
- **Checkpoint**: [Most recent checkpoint path if available]
- **Next Steps**: [Next phase or actions from checkpoint]

Quality Requirements

  • Be Specific: Use exact file paths, line numbers, function names
  • Show Impact: Explain why changes matter and how they help
  • Include Details: Technical specifics that aid future development
  • Format Consistently: Use proper markdown, emojis, and structure
  • Focus on Facts: Document what actually happened, not intentions
  • Add Context: Explain the "why" behind decisions and changes
  • Include Workflow State: Reference active workflows, phases, and checkpoints

Integration with Workflows

This skill is integrated into all cc10x workflows:

  • Plan Workflow: Create summary after Phase 4 (Synthesis) if context is large
  • Build Workflow: Create summary after Phase 4 (Component Execution) if many components built
  • Review Workflow: Create summary after Phase 4 (Synthesis) if many files reviewed
  • Debug Workflow: Create summary after Phase 3 (Consolidation) if many bugs fixed

Workflows MUST call this skill in Phase 5.5 (Context Preservation) before final deliverables. Phase 5.5 is MANDATORY and cannot be skipped.

CRITICAL REMINDERS

  • DUAL OUTPUT: Create session document both in your response AND save to file
  • COMPLETE WORKFLOW: Always follow the 3-step process (archive β†’ analyze β†’ save)
  • ARCHIVE MANAGEMENT: Handle existing sessions automatically before creating new ones
  • EXACT FORMATTING: Use the structure shown above with emojis and proper markdown
  • TECHNICAL DETAILS: Include specific file paths, line numbers, and tool call parameters
  • PROFESSIONAL QUALITY: Make it beautiful and comprehensive - this is permanent documentation
  • FILE PERSISTENCE: Save formatted document to CURRENT_SESSION.md for future archiving
  • WORKFLOW INTEGRATION: Reference active workflows, checkpoints, and next phases

Quick Start

  1. Load this skill using Skill tool
  2. Execute the 3-step workflow (archive β†’ analyze β†’ save)
  3. Output summary in conversation AND save to .claude/memory/CURRENT_SESSION.md
  4. Document in Actions Taken: "Session summary created"

Example Usage

User: "We're approaching token limits, create a session summary"

Claude: [Loads session-summary skill]
        [Executes archive management]
        [Analyzes conversation]
        [Creates comprehensive summary]
        [Saves to CURRENT_SESSION.md]
        [Outputs summary in conversation]

Quick Install

/plugin add https://github.com/romiluz13/cc10x/tree/main/session-summary

Copy and paste this command in Claude Code to install this skill

GitHub δ»“εΊ“

romiluz13/cc10x
Path: plugins/cc10x/skills/session-summary

Related Skills

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

Algorithmic Art Generation

Meta

This skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.

View skill

llamaindex

Meta

LlamaIndex is a data framework for building RAG-powered LLM applications, specializing in document ingestion, indexing, and querying. It provides key features like vector indices, query engines, and agents, and supports over 300 data connectors. Use it for document Q&A, chatbots, and knowledge retrieval when building data-centric applications.

View skill

canvas-design

Meta

The canvas-design skill generates original visual art in PNG and PDF formats for creating posters, designs, and other static artwork. It operates through a two-step process: first creating a design philosophy document, then visually expressing it on a canvas. The skill focuses on original compositions using form, color, and space while avoiding copyright infringement by never copying existing artists' work.

View skill