consulting-adrs
Check a design, change, pull request, plan, or threat model against Bitwarden's Architecture Decision Records (ADRs), or locate…
Analyzes git commits and changes within a timeframe or commit range, providing structured summaries for code review, retrospectives, work logs, or session documentation.
$ npx -y skills add bitwarden/ai-plugins --skill analyzing-git-sessions --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/analyzing-git-sessionsContext preview
The summary Claude sees to decide when to auto-load this skill.
Analyzes git commits and changes within a timeframe or commit range, providing structured summaries for code review, retrospectives, work logs, or session documentation.
name: analyzing-git-sessions description: Analyzes git commits and changes within a timeframe or commit range, providing structured summaries for code review, retrospectives, work logs, or session documentation.
Generate structured analysis of git activity for specified timeframe or commit range, including commit history, file changes, statistics, and optional diffs.
Accept from user:
1. **Determine range type**:
2. **Validate git repository**:
git rev-parse --git-dir
3. **Check range has commits**:
git log <range> --oneline | head -1
If empty, inform user and exit.
# Get all commits in range git log <range> --oneline --no-decorate # Get detailed commit info git log <range> --format="%h|%an|%ar|%s" --no-decorate # Count commits git log <range> --oneline | wc -l
Store commit data for summary.
**Overall change statistics**:
# Summary stats (insertions/deletions by file) git diff <start>..<end> --stat # Numeric stats for parsing git diff <start>..<end> --numstat # Count total changes git diff <start>..<end> --shortstat
**Author breakdown** (if multiple authors):
git shortlog <start>..<end> -sn
**File categorization**:
**Prioritization rules**:
1. **Large changes** (>100 lines modified): Always include 2. **New files**: Include (especially if >50 lines) 3. **Deleted files**: Note but don't diff 4. **Architecture files**: `build.gradle.kts`, `AndroidManifest.xml`, module configs 5. **Test files**: Flag separately for test coverage assessment
**Extract key file list**:
# Files changed with line counts git diff <start>..<end> --numstat | sort -rn -k1 -k2
Limit to top 10 files by default to avoid context overflow.
**Concise mode**: No diffs, stats only
**Detailed mode**: Diffs for top 3-5 key files
git diff <start>..<end> -- path/to/key/file.kt
**Code Review mode**: Diffs for all modified files, grouped by module
# Group by directory git diff <start>..<end> --name-only | cut -d'/' -f1-2 | sort -u # Generate diffs per module for module in modules; do git diff <start>..<end> -- $module/ done
**Context overflow protection**:
**Format based on depth**:
## Git Session Summary **Range**: <start-commit> to <end-commit> (<timeframe>) **Commits**: X commits by Y author(s) **Files Changed**: A modified, B added, C deleted **Net Changes**: +X -Y lines ### Commits - abc123 Commit message 1 - def456 Commit message 2 ... ### Top Files Changed 1. path/to/file1.kt (+50 -20) 2. path/to/file2.kt (+30 -15) ...
Includes:
## Code Review Summary ### Overview - **PR Title**: [Suggested from commit messages] - **Changes**: X files across Y modules - **Scope**: [Inferred from changed files] ### Commits [Formatted commit list suitable for PR description] ### Changes by Module **Module: app** - file1.kt: Description of changes - file2.kt: Description of changes **Module: core** ... ### Key Changes [Diffs for significant modifications] ### Test Coverage - Test files modified: X - New tests added: ~Y
Present in clear tables:
| Metric | Count | | ------------- | ----- | | Commits | 15 | | Files Changed | 23 | | Insertions | +450 | | Deletions | -180 |
**Monitor diff sizes**:
**Progressive disclosure**:
1. Always start with concise summary 2. Ask user: "Would you like detailed diffs for specific files?" 3. Generate diffs on demand rather than upfront
**Fallback for large sessions**: "This session modified 45 files with 5000+ line changes. Showing concise summary. Request specific files or modules for detailed diffs."
**Don't**:
A curated collection of plugins for AI-assisted development at Bitwarden. Enables discovery and distribution of quality-controlled plugins for use with Claude Code.
Check a design, change, pull request, plan, or threat model against Bitwarden's Architecture Decision Records (ADRs), or locate…
Use when the user provides a single Jira issue key and asks whether it is still relevant, still applicable, still pending, still…
File Jira work items that stand on their own, with real ticket titles, acceptance criteria in whatever field the target project…
Use whenever the user mentions a Jira issue key and wants more than a surface-level lookup — "Read PROJ-123", "What's PROJ-123…
Use when the user is addressing pull request review comments locally and asks for help evaluating, implementing, or drafting…
Use this skill to validate findings during a code review. For each finding, run the rejection criteria and verification checks.…