Chapter 57 · Analyzing Git Sessions
Subchapter 57.2
README.mdMarkdown10 KBView on GitHub
Analyzes git commits and changes within a timeframe or commit range, providing structured summaries for various use cases.
This skill analyzes git repository activity and produces structured summaries including:
Use this skill when you need to:
Time-based analysis:
Commit range analysis:
With specific focus:
Output format requests:
/skill analyzing-git-sessionsThe skill will prompt you for:
Best for: Quick overview, standup reports, work logs
Includes:
Example:
Git Session Summary
Range: 2 hours ago to now
Commits: 8
Files Changed: 12 modified, 2 added
Net Changes: +340 -120 lines
Top Files:
1. AuthViewModel.kt (+85 -30)
2. LoginScreen.kt (+60 -15)
...Best for: Session documentation, deeper review
Includes everything from Concise, plus:
Best for: PR preparation, team reviews
Includes:
Control level of detail:
The skill automatically suggests appropriate depth based on session size.
Narrow analysis to specific paths:
For multi-contributor analysis:
Request: “Summarize my git changes from yesterday”
Result: Concise list of commits and key files for standup discussion
Request: “Generate code review summary for feature-auth-biometrics branch”
Result: PR-ready description with:
Request: “Detailed analysis of my work in the last 3 hours”
Result: Comprehensive summary for retrospective or work log:
Request: “Show me all my commits from the last 7 days”
Result: Week-at-a-glance view of your contributions
Request: “Compare feature-branch to main”
Result: What’s in the feature branch that’s not in main
Request: (Called by retrospecting skill during analysis)
Result: Git metrics for retrospective:
Good:
Less specific (still works, but may need clarification):
For quick checks: “Give me a concise summary” For thorough review: “Detailed analysis with diffs” For PR prep: “Code review format”
The skill will recommend depth based on session size, but you can override.
If you worked on multiple areas:
This keeps output focused and context-efficient.
Input: “What did I work on this morning?”
Output:
Git Session Summary (9:00am - 12:00pm)
Commits: 6
Files: 9 modified, 1 added
Changes: +220 -65 lines
Commits:
- Add biometric authentication support
- Refactor LoginViewModel state handling
- Update authentication tests
- Fix credential manager integration
- Add error handling for biometric failures
- Update documentation
Key Files:
1. BiometricAuthManager.kt (+85 -15)
2. LoginViewModel.kt (+60 -25)
3. AuthenticationTests.kt (+45 -20)Input: “Generate PR summary for my feature branch”
Output:
Pull Request Summary
Title: Add Biometric Authentication Support
Overview:
- 12 commits over 3 days
- 15 files changed across 3 modules
- Adds biometric authentication flow with fallback
Commits:
1. Implement BiometricAuthManager for authentication
2. Add biometric prompt UI components
3. Integrate with CredentialManager API
...
Changes by Module:
app (8 files):
- BiometricAuthManager.kt: Core biometric logic
- LoginScreen.kt: UI integration
- AuthViewModel.kt: State management
core (4 files):
- CredentialProvider.kt: Credential management
- SecurityUtils.kt: Security helpers
tests (3 files):
- BiometricAuthTests.kt: Unit tests
- LoginFlowTests.kt: Integration tests
Test Coverage:
✓ 2 new test files added
✓ 45 new test cases
⚠ Consider: Error handling edge cases
[Diffs for key files would follow]This skill integrates with several workflows and can be invoked standalone or as part of other processes:
For large sessions (>30 files), the skill automatically uses concise mode to prevent context overflow.
Cannot:
git status or git diff directly)Works best with:
git log --since="your timeframe"git log abc123start..end (two dots)v1.0 (2025-10-23):
Found an issue or want a feature?
.claude/skills/analyzing-git-sessions/SKILL.mdMaintained By: @team-ai-sme
Related Skills: retrospecting, reviewing-changes
Nearby