log-summarizer
Generates concise summaries of log content using type-specific summarization templates
$ Instalar
git clone https://github.com/fractary/claude-plugins /tmp/claude-plugins && cp -r /tmp/claude-plugins/plugins/logs/skills/log-summarizer ~/.claude/skills/claude-plugins// tip: Run this command in your terminal to install the skill
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)
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.
<CRITICAL_RULES>
- ALWAYS read the full session log before summarizing
- ALWAYS extract concrete decisions with rationale
- ALWAYS identify learnings and gotchas
- ALWAYS list files changed with categories
- ALWAYS note unresolved issues or follow-ups
- NEVER include sensitive information (API keys, passwords, etc.)
- ALWAYS make summaries actionable and scannable
- ALWAYS use markdown format with clear sections </CRITICAL_RULES>
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
<COMPLETION_CRITERIA> Summary is complete when:
- Full session log has been read and analyzed
- All key information extracted
- Summary follows markdown template structure
- No sensitive information included
- File saved to correct location
- Summary path returned to caller </COMPLETION_CRITERIA>
🎯 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
<ERROR_HANDLING>
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
</ERROR_HANDLING>
Repository
