Intelligent commit management with automatic staging, conventional commits, and learning integration
Smart commit management that analyzes changes, generates conventional commit messages, and intelligently stages files. Use it to commit work frequently during development with proper grouping and messaging.
/plugin marketplace add bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude/plugin install bejranonda-autonomous-agent@bejranonda/LLM-Autonomous-Agent-Plugin-for-Claudedev//dev:commitSmart commit management - Analyzes changes, generates intelligent commit messages following conventional commit standards, stages appropriate files, and creates commits with learning integration. Does NOT create releases or tags.
š§ Intelligent Commit Features:
# Analyze and commit all changes with smart grouping
/dev:commit
# Commit with custom message
/dev:commit "feat: add new authentication system"
# Commit specific files only
/dev:commit --files "src/auth.py,tests/test_auth.py"
# Let the agent analyze and generate appropriate messages
/dev:commit --auto
# Generate message but review before committing
/dev:commit --auto --interactive
# Use conventional commit format
/dev:commit --conventional
# Group all changes into single commit
/dev:commit --single
# Create multiple commits grouped by type
/dev:commit --group-by-type
# Create commit per file
/dev:commit --per-file
# Create commit per directory
/dev:commit --per-directory
# Commit and push to remote
/dev:commit --push
# Commit and push to specific branch
/dev:commit --push --branch feature/new-feature
# Commit only (no push) - DEFAULT
/dev:commit --no-push
# Include untracked files
/dev:commit --include-untracked
# Exclude specific patterns
/dev:commit --exclude "*.log,*.tmp"
# Verbose output with reasoning
/dev:commit --verbose
# Dry run (show what would be committed)
/dev:commit --dry-run
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š§ COMMIT ANALYSIS COMPLETE
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Changes Analyzed: 12 files
Commit Strategy: Group by type
Proposed Commits:
1. feat: Add 6 new analysis commands
Files: 6 files in commands/analyze/ and commands/learn/
2. fix: Fix dashboard browser opening issues
Files: 2 files (lib/dashboard.py, lib/dashboard_launcher.py)
3. docs: Update plugin documentation
Files: 4 files (README.md, CLAUDE.md, etc.)
Execute commits? [Y/n]: Y
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
COMMITS CREATED
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
[PASS] Commit 1: feat: Add 6 new analysis commands (abc1234)
[PASS] Commit 2: fix: Fix dashboard browser opening issues (def5678)
[PASS] Commit 3: docs: Update plugin documentation (ghi9012)
Total: 3 commits created
Pushed: No (use --push to push to remote)
ā± Completed in 8 seconds
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
The command automatically detects change types and generates appropriate conventional commit messages:
Format: <type>(<scope>): <description>
Types:
feat: New features or functionalityfix: Bug fixesdocs: Documentation changes onlystyle: Code style/formatting (no logic changes)refactor: Code refactoring (no feature/fix)perf: Performance improvementstest: Adding or updating testschore: Maintenance tasks (dependencies, configs, etc.)ci: CI/CD configuration changesbuild: Build system changesExamples:
# Feature additions
feat: add JWT authentication system
feat(auth): implement refresh token mechanism
# Bug fixes
fix: resolve memory leak in data processing
fix(api): correct endpoint parameter validation
# Documentation
docs: update README with new commands
docs(api): add authentication examples
# Refactoring
refactor: simplify authentication logic
refactor(db): optimize query performance
# Tests
test: add integration tests for auth module
test(api): improve endpoint coverage
# Chores
chore: update dependencies to latest versions
chore(deps): bump python-jose to 1.6.1
The command intelligently groups files for commits:
Commit 1: feat: Add new commands
+- commands/analyze/explain.md
+- commands/analyze/repository.md
+- commands/learn/history.md
+- commands/learn/clone.md
Commit 2: fix: Fix dashboard issues
+- lib/dashboard.py
+- lib/dashboard_launcher.py
Commit 3: docs: Update documentation
+- README.md
+- CLAUDE.md
+- CHANGELOG.md
Commit 1: feat: Update analyze commands
+- commands/analyze/
+- explain.md
+- repository.md
Commit 2: feat: Update learn commands
+- commands/learn/
+- history.md
+- clone.md
Commit 3: fix: Update library
+- lib/
+- dashboard.py
+- dashboard_launcher.py
Commit 1: chore: Update plugin with multiple improvements
+- commands/analyze/explain.md
+- commands/analyze/repository.md
+- commands/learn/history.md
+- commands/learn/clone.md
+- lib/dashboard.py
+- lib/dashboard_launcher.py
+- README.md
+- CLAUDE.md
The command analyzes changes to determine appropriate commit messages:
Triggers feat: commit when:
commands/, agents/, skills/Triggers fix: commit when:
Triggers docs: commit when:
Triggers refactor: commit when:
The /dev:commit command integrates with pattern learning:
Learning from Commits:
Pattern Storage:
{
"commit_patterns": {
"grouping_strategy": "by_type",
"avg_commits_per_session": 2.5,
"avg_files_per_commit": 4.2,
"effective_message_patterns": [
"feat: add {feature}",
"fix: resolve {issue}",
"docs: update {document}"
],
"success_metrics": {
"single_commit_clarity": 0.78,
"grouped_commit_clarity": 0.92,
"per_file_commit_clarity": 0.65
},
"reuse_count": 45,
"effectiveness_score": 0.91
}
}
Continuous Improvement:
When using --interactive, the command shows a review before committing:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š COMMIT REVIEW
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Commit 1 of 3
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Type: feat
Message: Add 6 new analysis and learning commands
Description:
Implements external repository analysis, task explanation,
commit history learning, feature cloning, and documentation
updates. Enhances learning capabilities significantly.
Files to be committed:
+- commands/analyze/explain.md (new, 26 KB)
+- commands/analyze/repository.md (new, 35 KB)
+- commands/learn/history.md (new, 24 KB)
+- commands/learn/clone.md (new, 21 KB)
+- commands/workspace/update-readme.md (new, 3.7 KB)
+- commands/workspace/update-about.md (new, 3.9 KB)
Total: 6 files, 113.6 KB
Options:
[c] Commit as shown
[e] Edit commit message
[s] Skip this commit
[m] Modify file selection
[q] Quit without committing
Choice:
/dev:commitā Good use cases:
ā Don't use for:
/dev:release instead)/dev:release instead)/dev:release)Recommended patterns:
Avoid:
Good commit messages:
feat: add JWT authentication with refresh tokens
fix: resolve memory leak in background task manager
docs: add comprehensive API documentation with examples
refactor: simplify validation logic using schemas
test: add integration tests for auth workflow
Poor commit messages:
update files
fix stuff
changes
wip
asdf
# Work on feature
/dev:auto "add new feature"
# Commit progress regularly
/dev:commit --auto
# Continue working...
/dev:commit --auto
# When ready to release
/dev:release
# Commit all pending changes
/dev:commit --auto --group-by-type
# Validate quality
/analyze:quality
# Create release
/dev:release
# Create feature branch
git checkout -b feature/new-auth
# Work and commit
/dev:commit --auto
# Push to remote branch
/dev:commit --push --branch feature/new-auth
# Create PR when ready
/dev:pr-review
# Check git status
git status
# Show what would be committed
/dev:commit --dry-run
# Include untracked files
/dev:commit --include-untracked
# Check for conflicts
git status
# Resolve conflicts manually
git add <resolved-files>
# Retry commit
/dev:commit --retry
# Unstage all
git reset
# Specify files explicitly
/dev:commit --files "file1.py,file2.py"
# Check remote status
git remote -v
# Pull first if needed
git pull origin main
# Retry push
/dev:commit --push --retry
Expected performance:
| Task | Time | Success Rate |
|---|---|---|
| Analyze changes | 2-5s | 100% |
| Generate commit messages | 3-8s | 95% |
| Create single commit | 1-2s | 99% |
| Create multiple commits | 5-15s | 97% |
| Push to remote | 3-10s | 95% |
Learning improvement:
$ /dev:commit --auto
Analyzing changes...
Found: 8 modified files, 4 new files
Proposed commits:
1. feat: Add new authentication commands (6 files)
2. fix: Resolve dashboard rendering issue (2 files)
3. docs: Update README and CHANGELOG (4 files)
Creating commits...
[PASS] 3 commits created successfully
Total changes committed: 12 files
$ /dev:commit "feat: implement JWT token validation" --files "src/auth/jwt.py,tests/test_jwt.py"
Staging files...
+- src/auth/jwt.py
+- tests/test_jwt.py
Creating commit...
[PASS] Commit created: feat: implement JWT token validation (abc1234)
$ /dev:commit --auto --interactive
[Shows review interface for each proposed commit]
Commit 1: Accept (c)
Commit 2: Edit message (e)
Commit 3: Skip (s)
Result:
[PASS] 2 commits created
ā 1 commit skipped
$ /dev:commit --auto --push
Creating commits...
[PASS] 3 commits created
Pushing to origin/main...
[PASS] Pushed successfully
Branch: main
Remote: origin
Commits: 3 new commits
Version: 1.0.0 Integration: Uses git-repository-manager agent Skills: git-automation, pattern-learning, code-analysis Platform: Cross-platform (Windows, Linux, Mac) Learning: Full integration with pattern learning system Scope: Commit management only - no releases, tags, or version bumps