aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/claude/skills/conventional-commit/SKILL.md
blob: 578a9162187ea6ea09a9e1dd7ec3227c6707e4cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: conventional-commit
description: Create a git commit for the current changes, following The Conventional Commits.
allowed-tools: Bash(git add:*), Bash(git diff:*), Bash(git status:*), Bash(git commit:*)
---

## Context

- Current git status: !`git status`
- Current git diff (staged and unstaged changes): !`git diff HEAD --`
- Recent commits: !`git log --oneline -5`

## Instructions

1. Check the git status and changes.
2. Analyze the changes and draft a commit message following Conventional Commits format:
   - Types: feat, fix, refactor, test, docs, chore, style, perf, ci, build
   - Format: `<type>(<scope>): <description>`
   - Keep the first line under 72 characters
   - Add a blank line and body if more context is needed
3. Create the commit with the message (`git commit -a -m "..."`)

## Commit Message Format

```
<type>(<scope>): <short description>

<optional body explaining the "why" not the "what">
```

## Examples

- `feat(auth): add refresh token rotation`
- `fix(sync): handle network timeout during push`
- `refactor(db): extract repository pattern for cards`
- `test(api): add integration tests for deck endpoints`