Commit

From huzaifa525/claude-code-optimizer · View interactive version

Commit is an AI agent skill from the GitHub repository huzaifa525/claude-code-optimizer. Use when the user wants to commit changes, save work, or create a git commit message.

How to use this skill

Skill file

Generate a commit message and commit staged changes.

Steps

  1. Check staged changes

```

git diff --cached --stat

git diff --cached

```

  1. Check recent commit style

```

git log --oneline -10

```

  1. Generate commit message following Conventional Commits:

| Prefix | When to Use |

|--------|------------|

| feat: | New feature |

| fix: | Bug fix |

| refactor: | Code restructure, no behavior change |

| docs: | Documentation only |

| test: | Adding or fixing tests |

| chore: | Build, deps, config changes |

| perf: | Performance improvement |

| style: | Formatting, whitespace |

| ci: | CI/CD changes |

  1. Format rules
  1. Commit

```

git commit -m "type: short description

```

  1. Show result

```

git log --oneline -1

```

Pre-Delivery Checklist

Before committing, verify:

If nothing is staged

Run git status and tell the user what files are available to stage.

<!-- Skill by Huzefa Nalkheda Wala | github.com/huzaifa525 | claude-code-optimizer -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.