---
description: Generate AI-tagged conventional commit message and create commit
---

## Generate AI-Tagged Conventional Commit Message

**Analysis:** `!git status && git diff --cached --stat`
**Recent Commits:** `!git log --oneline -5`

Generate a conventional commit message with AI origin tagging following this format:

**Commit Tags:**

- `[AI]` - Code generated by AI agents
- `[Human]` - Code written/reviewed by human
- `[Hybrid]` - AI-generated with significant human modification

**Conventional Types:**

- `feat:` for new features
- `fix:` for bug fixes
- `docs:` for documentation changes
- `style:` for formatting/styling
- `refactor:` for code restructuring
- `test:` for adding/updating tests
- `chore:` for maintenance tasks

**Requirements:**

1. Analyze the staged changes above
2. Determine origin (AI/Human/Hybrid) based on change patterns
3. Write a clear, concise commit message under 50 characters
4. Add detailed description if needed (separate line)
5. Execute the commit with the generated message

**Example format:**

```
[AI] feat: add user authentication system

- Implement JWT token validation
- Add login/logout endpoints
- Update user model with auth fields
```

**Origin Detection:**

- `[AI]` - Generated code patterns, AI-like structure, no manual edits
- `[Human]` - Manual edits, human-like patterns, iterative changes
- `[Hybrid]` - Mix of AI generation with human modifications

Create the commit after generating the tagged message.
