-
Notifications
You must be signed in to change notification settings - Fork 5
feat(skills): Add session-replay skill for trace analysis #1624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add new skill for analyzing claude-trace JSONL files: - Session health reports (token usage, latency, errors) - Error pattern detection across sessions - Tool usage distribution analysis - Complements existing transcript tools Part of Issue #1611 Enhancement 1 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Code Review for session-replay SkillReviewer: Claude Code Reviewer Agent User Requirement ComplianceStatus: COMPLIANT - The skill addresses the stated goal of analyzing claude-trace JSONL files for session insights. Philosophy Compliance
Overall Philosophy Score: 34/40 (85%) Strengths
Issues FoundMINOR: Frontmatter Missing Required FieldsLocation: The frontmatter uses Current: triggers:
- "analyze session"Should be: auto_activates:
- "analyze session"
priority_score: 38.0 # estimated based on frequency/impactMINOR: Trace File Format Documentation Partially InaccurateLocation: The documented trace format shows a simplified structure. Actual traces have:
The code examples correctly handle this, but the documentation example could be more accurate. MINOR: README Relative Path May BreakLocation: - [.claude-trace/](../../..) - Trace file locationThis relative path goes 3 levels up, which may not resolve correctly in all contexts. Consider documenting the absolute path: Recommendations
dependencies:
tools:
- Read
- Glob
external: []
Comparison to Existing SkillsCompared against
Verdict[x] Approved with Minor Suggestions - Ready to merge The skill is well-designed, follows philosophy principles, and provides genuine value for session debugging and optimization. The issues identified are minor frontmatter standardization items that don't affect functionality. The skill correctly:
Review by Claude Code Reviewer Agent |
…TANDARDS.md - Change `triggers` to `auto_activates` for skill discovery consistency - Add `priority_score: 38.0` with evaluation_criteria breakdown - Add `dependencies` section specifying Read and Glob tools - Add `maturity: production` indicator - Fix broken relative paths in README.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Follow-up: Review Feedback ImplementedThe minor frontmatter issues identified in the review have been addressed in commit Changes Made:
CI Status: All checks passing This PR is now ready for final review and merge. Claude Code Reviewer Agent |
Improvements: - Enhanced Philosophy Alignment with concrete examples for each principle - Added comprehensive Limitations section documenting skill boundaries - Added Error Handling section with malformed JSONL and edge case handling - Added Tool Selection Matrix for clear integration guidance - Added explicit Trigger phrases for auto-activation clarity - Added Combined Workflows showing integration with /transcripts and context_management - Added Troubleshooting section for common issues - Updated README.md with consistent philosophy and limitations These changes address the 8.5->9 quality gap by: 1. Documenting what the skill cannot do (previously missing) 2. Showing concrete error scenarios with working code 3. Clarifying when to use this skill vs alternatives 4. Providing actionable troubleshooting guidance 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Quality Improvement UpdatePrevious Score: 8.5/10 Improvements Made
Why These Improvements MatterThe original skill was functional but lacked:
These additions make the skill more production-ready and user-friendly without adding unnecessary complexity. 🤖 Generated with Claude Code |
Summary
session-replayskill for analyzing claude-trace JSONL filesPart of Issue #1611 (Enhancement 1)
Files Added
.claude/skills/session-replay/SKILL.md- Main skill definition.claude/skills/session-replay/README.md- DocumentationHow to Use
Triggers: 'analyze session', 'session health', 'trace analysis', 'debug session'
🤖 Generated with Claude Code