commitlisted
Install: claude install-skill manastalukdar/ai-devstudio
# Smart Git Commit
## Absolute Credential Rules
**NEVER violate these — no exceptions:**
- **NEVER run `git config user.name` or `git config user.email`** — do not touch git identity settings
- **NEVER use `--author` to inject any name or email**
- **NEVER add a `Co-Authored-By:` trailer to any commit message**
- **NEVER add `Co-Authored-By: Claude`, `Co-Authored-By: Claude Sonnet`, or any variant with `noreply@anthropic.com`**
- **NEVER include "Generated with Claude Code", "AI-generated", or any AI attribution in the commit message or body**
- **NEVER modify `.git/config` or any git credential file**
The commit must use **only the developer's own git credentials** as already configured in their environment.
**Pre-Commit Quality Checks:** Before committing, verify build, tests, and linter pass (if commands exist in the project).
```bash
# Verify we're in a git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
echo "Error: Not a git repository"
exit 1
fi
# Early exit if nothing to commit
if git diff --cached --quiet && git diff --quiet; then
echo "No changes to commit"
exit 0
fi
echo "Changes detected:"
git status --short
git diff --cached --stat
git diff --stat
```
```bash
# Check for cached commit conventions
CACHE_FILE=".claude/cache/commit/conventions.json"
if [ -f "$CACHE_FILE" ]; then
LAST_MODIFIED=$(stat -c %Y "$CACHE_FILE" 2>/dev/null || stat -f %m "$CACHE_FILE" 2>/dev/null)
CURRENT_TIME=$(date +%s)
AGE=$((CURRENT_TIM