Track git commits and analyze development patterns. Use when user says "track this commit", "analyze commits", "what did I work on", or after git commit commands to store commit history in Memory Store.
Analyzes recent git commits and stores commit history in Memory Store. Use after commits or when user asks "track this commit" or "analyze my commits" to capture development patterns.
/plugin marketplace add julep-ai/memory-store-plugin/plugin install memory-store@claude-pluginThis skill inherits all available tools. When active, it can use any tool Claude has access to.
⚡ PROACTIVE: Suggest tracking commits when you notice git activity or user mentions commits.
Purpose: Manually analyze git history and store commit patterns in Memory Store when hooks don't capture them automatically.
Invoke this skill when:
After creating commits - To manually track commit history
Analyzing git patterns - To understand development flow
Tracking contributions - To record who worked on what
After batch operations - When multiple commits need analysis
Don't use this skill for:
This skill runs the analyze-commits.sh script which:
mcp__memory-store__recordLook for these patterns:
User: "I just committed some changes, can you track them?"
User: "Analyze my last 5 commits"
User: "What did I work on today?"
User: "Track this PR's commits"
bash ${CLAUDE_PLUGIN_ROOT}/scripts/analyze-commits.sh
Note: The script automatically:
The script outputs JSON with commit information. Parse it and tell the user what was tracked:
✓ Tracked commit abc1234: "feat: add OAuth2 authentication"
- Type: feature
- Files changed: 8
- Breaking change: No
- Stored in Memory Store with high importance
For analyzing multiple commits (e.g., after a PR merge):
# Get last N commits
git log --oneline -n 5
# Get commits since main
git log main..HEAD --oneline
# Get commits in PR
git log origin/main..feature-branch --oneline
For each commit in the range:
# Checkout specific commit
git show <commit-hash> --stat
# Extract info and record
mcp__memory-store__record {
"memory": "<commit message> (<type>)",
"background": "Commit <hash> on branch <branch>. Files: <count>. Author: <author>. Date: <date>",
"importance": "normal"
}
After analyzing all commits, create a summary memory:
mcp__memory-store__record({
"memory": "Feature branch merged: <branch-name> with <N> commits",
"background": "Commits: <list>. Total files changed: <count>. Date range: <start> to <end>",
"importance": "high"
})
The skill automatically detects these patterns:
feat: → Type: feature (importance: normal)fix: → Type: bugfix (importance: normal)docs: → Type: documentation (importance: low)test: → Type: test (importance: low)refactor: → Type: refactoring (importance: normal)chore: → Type: chore (importance: low)style: → Type: style (importance: low)If commit message contains BREAKING CHANGE or BREAKING::
If commit affects these files:
package.json, tsconfig.json, .env → Importance: normalplugin.json, hooks.json → Importance: highCLAUDE.md, README.md → Importance: normalAutomatically extracts ticket numbers from:
feat: add auth (#123)feature/AUTH-456User says:
I just committed the new authentication feature, can you track it?
Action:
Response:
✓ Commit tracked successfully!
**Commit**: feat: add OAuth2 authentication flow
- Hash: abc1234
- Type: feature
- Files changed: 8 (+245/-12 lines)
- Ticket: AUTH-123
- Importance: high (affects infrastructure)
- Stored in Memory Store ✓
This commit is now searchable in memory for future reference.
User says:
What did I work on in the last 5 commits?
Action:
git log --oneline -5Response:
Here's your recent work (last 5 commits):
1. ✓ **fix: resolve auth token expiration bug** (bugfix)
- 3 files changed, 45 minutes ago
2. ✓ **test: add auth integration tests** (test)
- 2 files changed, 2 hours ago
3. ✓ **feat: add OAuth2 authentication flow** (feature) 🔴 BREAKING
- 8 files changed, 1 day ago
4. ✓ **docs: update API documentation** (documentation)
- 1 file changed, 1 day ago
5. ✓ **refactor: extract auth helpers** (refactoring)
- 4 files changed, 2 days ago
**Summary**: 5 commits across 2 days, mostly focused on authentication.
All commits have been tracked in Memory Store.
User says:
I'm about to create a PR, can you summarize my commits since main?
Action:
git log main..HEAD --onelineResponse:
**PR Summary: Add OAuth2 Authentication**
**Commits**: 8 commits since main
- 3 features
- 2 bug fixes
- 2 tests
- 1 documentation update
**Breaking Changes**: Yes (1 commit)
- feat: add OAuth2 authentication flow (requires migration)
**Files Changed**: 15 files (+347/-89 lines)
**Key Changes**:
1. OAuth2 flow implementation (auth.ts, oauth.ts)
2. Token management (token-manager.ts)
3. Integration tests (auth.test.ts)
4. API documentation updates
All commits have been tracked in Memory Store for future reference.
Would you like me to draft a PR description?
When using this skill, manually update the session counter:
# Read current count
source .claude-session
COMMITS_COUNT=$((${MEMORY_COMMITS_COUNT:-0} + 1))
# Update session file
sed -i.bak "s/MEMORY_COMMITS_COUNT=.*/MEMORY_COMMITS_COUNT=${COMMITS_COUNT}/" .claude-session
rm -f .claude-session.bak
This ensures the session tracking remains accurate.
⚠️ Unable to analyze commit: <reason>
Possible causes:
- Not in a git repository
- No commits to analyze
- MCP server connection issue
Try:
1. Verify you're in a git repo: `git status`
2. Check recent commits: `git log -1`
3. Check MCP connection: `claude mcp list`
⚠️ Commit analyzed but not stored in Memory Store (server unavailable)
**Commit**: <message>
- Hash: <hash>
- Details: <...>
The commit metadata is captured locally and will sync when the connection is restored.
This skill works alongside:
Example workflow:
To verify it works:
Make a test commit:
echo "test" > test-file.md
git add test-file.md
git commit -m "test: verify git-memory-tracker skill"
Ask Claude: "Track this commit"
Verify it was stored:
cat .claude-session # Should show MEMORY_COMMITS_COUNT incremented
Test retrieval: Ask Claude: "What did I just commit?" Should retrieve from Memory Store and mention the test commit
Success criteria: ✓ Commit tracked, counter incremented, retrievable from memory
💡 Pro Tip: Use this skill proactively when working on features. Track commits as you go to build a rich history for future Claude sessions!
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.