0
Smart commit
Otomatik mesaj oluşturma ve doğrulamayla akıllı git taahhüt oluşturma
yazan kuscubasiece·8 Eylül 2026
Kaynak: davepoon/claude-code-subagents-collection · MIT
Otomatik mesaj oluşturma ve doğrulamayla akıllı git taahhüt oluşturma
Kaynak: davepoon/claude-code-subagents-collection · MIT
curl -sL https://www.antrophiclove.com/api/kaynak/smart-commit/rawBu içerik mevcut dosyaya elle harmanlanmalı: .claude/settings.json
---
name: smart-commit
description: Intelligent git commit creation with automatic message generation and validation
category: git
event: PostToolUse
matcher: Edit
language: bash
version: 1.0.0
---
# smart-commit
Intelligent git commit creation with automatic message generation and validation
## Event Configuration
- **Event Type**: `PostToolUse`
- **Tool Matcher**: `Edit`
- **Category**: git
## Environment Variables
None required
## Requirements
None
### Script
```bash
# Stage the edited file first
file_path=$(jq -r '.tool_input.file_path // empty')
if [[ -n "$file_path" ]] && git rev-parse --git-dir >/dev/null 2>&1; then
git add "$file_path" 2>/dev/null || true
# Check if there are staged changes
if git diff --cached --quiet 2>/dev/null; then
exit 0
fi
echo "Changes staged for: $file_path"
fi
```