All skills
bitwarden avatar

/retrospecting

@bc2f695 official
by bitwardenbitwarden/ai-plugins155 stars
20

Performs comprehensive analysis of Claude Code sessions, examining git history, conversation logs, code changes, and gathering user feedback to generate actionable retrospective reports with insights for continuous improvement.

Use this Skill: https://skilld.dev/gh/bitwarden/ai-plugins/retrospecting

This session only. Nothing lands on disk.

contextssession-analytics.md

≈1.8k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Session Analytics Context


Data Sources for Session Analysis

1. Git History Analysis

What to Examine:

  • Commits made during the session (timestamps, messages, changed files)
  • Diffs showing actual code changes and their scope
  • Branch activity and merge patterns
  • File modification frequency and complexity

Key Metrics:

  • Number of files modified/created/deleted
  • Lines of code added/removed
  • Commit frequency and granularity
  • Commit message quality and clarity

Commands for Analysis:

# Get commits from session time range
git log --since="YYYY-MM-DD HH:MM" --until="YYYY-MM-DD HH:MM" --oneline

# Detailed diff for session
git diff <start-commit>...<end-commit> --stat

# Files changed during session
git diff <start-commit>...<end-commit> --name-only

2. Claude Logs Analysis

What to Examine:

  • ~/.claude/projects/{project-dir}/{session-id}.jsonl - Claude Code native session logs (JSONL format)
    • Project directory is calculated by transforming absolute working directory: $(echo "${PWD}" | sed 's/\//\-/g')
    • Example: /Users/user/project becomes ~/.claude/projects/-Users-user-project/
  • Tool usage patterns (which tools were called, frequency, success rates)
  • Error messages and retry patterns
  • Decision-making rationale in responses

Key Indicators:

  • Repeated tool calls suggesting exploration or confusion
  • Error recovery patterns
  • Context switches and task transitions
  • Clarification requests and user interactions

3. Project Files Analysis

What to Examine:

  • Test coverage changes (new tests added, coverage percentages)
  • Code quality indicators (complexity, duplication, adherence to standards)
  • Documentation updates (README, inline comments, API docs)
  • Build and compilation status

Key Metrics:

  • Test-to-production code ratio
  • Compilation success/failure
  • Adherence to project coding standards
  • Documentation completeness

4. User Feedback

What to Gather:

  • Session goals and whether they were achieved
  • User satisfaction with outcomes
  • Pain points or friction during the session
  • Specific examples of what worked well or poorly

Gathering Methods:

  • Direct prompting: "What were your goals for this session?"
  • Targeted questions: "Which parts of this session were most/least effective?"
  • Outcome validation: "Did the implementation meet your expectations?"

5. Sub-agent Interaction Analysis

What to Examine (when applicable):

  • Which sub-agents were invoked during the session
  • Task handoffs between Claude and sub-agents
  • Sub-agent success rates and output quality
  • Communication clarity in agent instructions

Feedback Collection:

  • Invoke sub-agents with retrospective prompts
  • Ask about instruction clarity, tool availability, context sufficiency
  • Gather suggestions for improved coordination

Analysis Framework

Success Indicators

Code Quality:

  • Compilation succeeds without errors
  • Tests pass with appropriate coverage
  • Code follows project standards and patterns
  • Security considerations properly addressed

Workflow Efficiency:

  • Minimal rework or backtracking
  • Efficient tool usage (right tool for the task)
  • Clear progression toward stated goals
  • Effective user-Claude communication

Learning & Adaptation:

  • Applying lessons from earlier in session
  • Recognizing and correcting mistakes
  • Adapting approach based on feedback
  • Discovering and using existing patterns

Problem Indicators

Code Quality Issues:

  • Compilation failures or test failures
  • Deviations from project architecture/style
  • Security vulnerabilities introduced
  • Missing or inadequate documentation

Workflow Inefficiencies:

  • Repeated failed attempts at same task
  • Excessive tool calls without progress
  • Misunderstanding requirements (multiple clarifications)
  • Creating new patterns when existing ones should be used

Communication Gaps:

  • Ambiguous instructions leading to wrong implementations
  • User frustration or confusion
  • Missing context causing incorrect assumptions
  • Inadequate status updates or progress visibility

Quantitative Metrics to Track

Session Scope Metrics

  • Duration: Total time from session start to completion
  • Task Count: Number of distinct tasks/subtasks completed
  • File Impact: Files created, modified, deleted
  • Code Volume: Lines added, removed, net change

Quality Metrics

  • Compilation Rate: % of time code compiled successfully
  • Test Coverage: Coverage percentage change during session
  • Rework Rate: % of changes that required revision
  • Standard Compliance: Adherence to project coding standards

Efficiency Metrics

  • Tool Success Rate: % of tool calls that succeeded on first attempt
  • Context Switches: Number of major topic/task transitions
  • Clarification Rate: User questions per task completed
  • Completion Rate: % of stated goals fully achieved

User Experience Metrics

  • Satisfaction: User-reported satisfaction (if gathered)
  • Friction Points: Number of reported pain points
  • Value Delivered: User assessment of outcome usefulness
  • Would Repeat: User willingness to use approach again

Qualitative Analysis Areas

Pattern Recognition

  • Successful Approaches: What techniques led to good outcomes?
  • Problematic Patterns: What approaches caused issues?
  • Reusable Solutions: What can be extracted for future use?
  • Context-Specific Learnings: What only applies to this project/task type?

Communication Effectiveness

  • Instruction Clarity: Were instructions clear and actionable?
  • Context Sufficiency: Was enough context provided upfront?
  • Feedback Loops: How well did iterative feedback work?
  • User Engagement: Appropriate level of user involvement?

Technical Excellence

  • Architecture Alignment: Proper use of established patterns?
  • Code Quality: Maintainable, readable, well-structured code?
  • Testing Rigor: Appropriate test coverage and quality?
  • Security Awareness: Proper handling of security considerations?

Retrospective Output Guidelines

Structure Recommendations

  1. Executive Summary: High-level overview of session outcomes
  2. Quantitative Metrics: Data-driven assessment of performance
  3. Qualitative Insights: Pattern analysis and learnings
  4. Action Items: Specific, prioritized improvements for future sessions

Actionability Standards

  • Every recommendation should be specific (not vague)
  • Include evidence from session data to support claims
  • Provide implementation guidance for improvements
  • Prioritize based on impact and feasibility

Audience Considerations

  • Users: Want to know if goals were met, what to improve
  • Future Claude sessions: Need actionable patterns to replicate or avoid
  • Marketplace consumers: Need to understand value and use cases
  • Plugin developers: May extend or integrate with other tools

This context provides a comprehensive framework for analyzing Claude Code sessions systematically and generating valuable retrospective insights.

Source: SKILL.md on GitHub

1 warning14d5 checks · Risk SAFE
  • Gen Agent Trust Hub14d

    The skill analyzes past session logs and git history to suggest workflow improvements. It presents a potential indirect prompt injection surface because it parses untrusted conversation logs and uses that data to suggest modifications to core agent configuration files via the Edit tool.

  • Socket14d

    No alerts

  • Snyk14d

    Risk: LOW · No issues

  • Runlayer7mo

    6/6 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at bc2f695. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 7 months ago
  • Git/VCS
  • retrospective
  • session-analysis
  • metrics
  • code-review
  • feedback
  • claude-code
  • continuous-improvement

README badge

README badge for bitwarden/ai-plugins/retrospecting

Analyzes Claude Code sessions by examining git history, conversation logs, code changes, and user feedback to generate retrospective reports with metrics and actionable insights. Supports three analysis depths (quick, standard, comprehensive) and integrates with sub-agents to surface coordination issues and process improvements.

Generated from the current SKILL.md.

Does this skill work with Claude Code sessions?
Yes. The skill analyzes Claude Code sessions by gathering git history, conversation logs, code changes, and user feedback. It integrates with Claude Code's native session logging stored in ~/.claude/projects/.
Can I choose how deep the analysis goes?
Yes. The skill offers three modes: Quick (5-10 min, stats only), Standard (15-20 min, balanced analysis), and Comprehensive (30+ min, deep-dive). It recommends a mode based on session size (commits and log volume) but lets you override.
What if I don't want to answer lots of questions?
Use Quick mode or say 'just a quick summary' and the skill will automatically use lightweight analysis with only 2-3 targeted questions instead of 8-10.
Does this skill suggest improvements to my project configuration?
Yes. After analysis, it can identify improvements to CLAUDE.md, SKILL.md files, or agent definitions based on retrospective findings and present them for your approval before applying.
How does this handle large session logs?
The skill uses the extracting-session-data skill to extract statistics and metadata efficiently. For large logs (>2000 lines), it extracts only relevant data types rather than reading the full file.

Generated from the current SKILL.md. These answers refresh after source changes.