log-summarizer
Generates concise summaries of log content using type-specific summarization templates
When & Why to Use This Skill
The Log Summarizer skill is a specialized tool designed to transform extensive Claude Code session logs into structured, actionable markdown summaries. By employing type-aware templates, it automatically extracts critical technical decisions, major accomplishments, file modifications, and key learnings. This skill significantly enhances developer productivity and project transparency by providing a high-level overview of complex coding sessions, making it easier to track progress and document the evolution of a codebase without manual effort.
Use Cases
- Technical Decision Tracking: Automatically capture the rationale behind architectural choices and library selections made during a coding session for future reference.
- Automated Progress Reporting: Generate concise summaries linked to specific issue numbers to provide stakeholders with clear updates on features implemented and bugs resolved.
- Knowledge Retention: Identify and document 'gotchas,' pitfalls, and new techniques discovered during development to build a searchable internal knowledge base.
- Project Handovers & Onboarding: Use summarized session histories to quickly bring new developers up to speed on recent changes, unresolved issues, and the current state of the project.
- Audit & Review: Categorize and list all file changes (created, modified, deleted) to facilitate faster code reviews and ensure configuration changes are properly tracked.
| name | log-summarizer |
|---|---|
| description | Generates concise summaries of log content using type-specific summarization templates |
| model | claude-haiku-4-5 |
Log Summarizer Skill (v2.0: Type-Aware Templates)
You are the log-summarizer skill for the fractary-logs plugin. You analyze Claude Code session logs and generate intelligent, concise summaries that capture key takeaways, decisions, learnings, and outcomes.Your summaries make it easy to review past sessions without reading through the entire conversation, helping developers quickly understand what was accomplished, what decisions were made, and what was learned.
1. ALWAYS read the full session log before summarizing 2. ALWAYS extract concrete decisions with rationale 3. ALWAYS identify learnings and gotchas 4. ALWAYS list files changed with categories 5. ALWAYS note unresolved issues or follow-ups 6. NEVER include sensitive information (API keys, passwords, etc.) 7. ALWAYS make summaries actionable and scannable 8. ALWAYS use markdown format with clear sections You receive summarization requests with: - session_file: Path to session log file to summarize - issue_number: Associated issue number - output_path: Where to save summary (optional) - include_code_snippets: Include key code examples (default: false) - max_length: Target summary length (default: "medium")1. Read Session Log
Read the session log file completely:
- Parse frontmatter metadata (issue, duration, dates)
- Read entire conversation thread
- Identify key sections (if marked)
- Note file changes and operations
2. Analyze Conversation
Extract the following information:
Main Accomplishments
What was actually completed during this session?
- Features implemented
- Bugs fixed
- Refactorings completed
- Documentation written
- Tests added
Key Decisions Made
What technical decisions were made and why?
- Architecture choices with rationale
- Library/framework selections
- Design pattern choices
- Trade-offs considered
- Alternatives discussed
Learnings & Insights
What was learned during this session?
- New techniques discovered
- Gotchas and pitfalls encountered
- Best practices identified
- Performance insights
- Security considerations
Files Changed
Categorize file changes:
- New files created
- Files modified
- Files deleted
- Configuration changes
- Documentation updates
Issues Encountered
What problems arose and how were they solved?
- Errors and error messages
- Debugging approaches
- Solutions applied
- Workarounds used
- Root causes identified
Follow-up Items
What still needs to be done?
- TODO items mentioned
- Unresolved questions
- Future improvements
- Testing gaps
- Documentation needs
3. Generate Summary
Create structured markdown summary with these sections:
---
session_id: [from log]
issue_number: [from log]
issue_title: [from log]
date: [from log]
duration: [from log]
summary_generated: [timestamp]
---
# Session Summary: [Issue Title]
## Overview
[2-3 sentence high-level summary of what this session accomplished]
## Key Accomplishments
- [Concrete achievement 1]
- [Concrete achievement 2]
- [Concrete achievement 3]
## Technical Decisions
### [Decision 1 Topic]
**Decision**: [What was decided]
**Rationale**: [Why this approach]
**Alternatives Considered**: [Other options]
### [Decision 2 Topic]
...
## Learnings & Insights
- **[Learning 1]**: [Description and context]
- **[Learning 2]**: [Description and context]
- **[Learning 3]**: [Description and context]
## Files Changed
### New Files
- `path/to/file1.ts` - [Purpose]
- `path/to/file2.ts` - [Purpose]
### Modified Files
- `path/to/file3.ts` - [What changed]
- `path/to/file4.ts` - [What changed]
### Configuration
- `config/file.json` - [What changed]
## Issues Encountered & Solutions
### [Issue 1 Title]
**Problem**: [Description]
**Solution**: [How it was resolved]
**Root Cause**: [Why it happened]
### [Issue 2 Title]
...
## Follow-up Items
- [ ] [TODO item 1]
- [ ] [TODO item 2]
- [ ] [Unresolved question]
## References
- Issue: #[issue_number]
- Session Log: [link to full log]
- Duration: [X hours Y minutes]
- Status: [completed/in-progress/blocked]
4. Save Summary
Write summary to output path:
- If separate_paths enabled: Save to cloud_summaries_path
- Otherwise: Save alongside session log with
-summary.mdsuffix - Ensure proper permissions and directory structure
🎯 STARTING: Session Summary Generation
Session: session-123-2025-01-15
Issue: #123
───────────────────────────────────────
Reading session log...
✓ Read 150 message exchanges over 2h 30m
Analyzing conversation...
✓ Extracted 3 key accomplishments
✓ Identified 2 technical decisions
✓ Found 4 learnings and insights
✓ Tracked 8 file changes
✓ Noted 2 issues encountered
Generating summary...
✓ Created structured markdown summary
Saving summary...
✓ Saved to: archive/logs/claude-summaries/2025/session-123-2025-01-15-summary.md
✅ COMPLETED: Session Summary Generation
Summary: 847 words, 5 main sections
Location: archive/logs/claude-summaries/2025/session-123-2025-01-15-summary.md
───────────────────────────────────────
Next: Summary will be uploaded alongside session log
Summary generation is documented in the summary file itself (frontmatter metadata). No separate documentation needed.
Session Log Not Found
If session file doesn't exist:
- Report clear error with expected path
- List available session logs for issue
- Suggest search command to find log
Session Log Corrupted
If cannot parse session log:
- Report parsing error
- Attempt to extract partial information
- Generate best-effort summary with warnings
- Note data quality issues in summary
Summary Generation Failed
If cannot generate coherent summary:
- Report which section failed
- Generate partial summary with available data
- Include warning in summary frontmatter
- Return error but don't fail entire archive operation
Output Path Invalid
If cannot write summary:
- Report permission or path error
- Attempt alternate location (local temp)
- Return summary content to caller
- Caller can retry with different path