# commit

Automates Git commits using conventional commit messages and matching emojis. It checks the active branch, runs pre-commit linters, and suggests splitting complex diffs into atomic commits.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1200 installs · ★ 1787
- Author: NeoLabHQ
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/NeoLabHQ/context-engineering-kit/tree/HEAD/skills/commit/SKILL.md
- Updated: 2026-08-26
- HTML: https://affpapa.org/en/nevibecode/skills/neolabhq-commit

## What it does

The skill handles the routine tasks developers face before writing to Git history. First, it inspects your active branch. If you are on `main` or `master`, it asks whether you want a separate branch following the `<type>/<username>/<description>` pattern. It then runs pre-commit checks like `pnpm lint`, unless you supply the `--no-verify` flag.

Next, the skill inspects staged files using `git status`. If nothing is staged, it runs `git add` across modified and untracked files automatically. It evaluates `git diff` to detect multiple unrelated changes. When diffs touch separate concerns, it advises splitting them into smaller commits instead of pushing a monolithic change.

Every generated commit follows conventional commits syntax paired with a relevant emoji and stays under 72 characters on the first line. Note that if your staging area is empty, the skill stages all modified files on its own.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill commit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/commit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/commit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill commit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/commit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill commit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/commit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install NeoLabHQ/context-engineering-kit commit
```

2. **Manually: put the files in place**
- File: `.github/skills/commit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill commit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/NeoLabHQ/context-engineering-kit --path skills/commit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/commit/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill commit -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/NeoLabHQ/context-engineering-kit/tree/HEAD/skills/commit/SKILL.md

## When to use it
- prevent direct accidental commits to main or master
- format commit messages according to conventional commits with emojis
- split unrelated code changes into smaller atomic commits
- run project linters automatically before committing

## Example prompts
- Commit the current changes
- Create a commit with --no-verify
- Analyze this diff and split it into atomic commits

## Similar
- [caveman-commit](https://affpapa.org/en/nevibecode/skills/caveman-commit.md) — skill · 415800 installs
- [commit-history](https://affpapa.org/en/nevibecode/skills/commit-history.md) — skill · 13700 installs
- [commit-hygiene](https://affpapa.org/en/nevibecode/skills/commit-hygiene.md) — skill · 335 installs
- [Conventional Commit Message Generator](https://affpapa.org/en/nevibecode/prompts/conventional-commit-message-generator.md) — prompt · ★ 174597
- [git-commit](https://affpapa.org/en/nevibecode/skills/git-commit.md) — skill · 47165 installs
- [conventional-commit](https://affpapa.org/en/nevibecode/skills/conventional-commit.md) — skill · 17103 installs

## Other versions with the same name
- [commit · getsentry](https://affpapa.org/en/nevibecode/skills/getsentry-commit.md) — 4700 installs
- [commit · parcadei](https://affpapa.org/en/nevibecode/skills/parcadei-commit.md) — 499 installs
- [commit · paulrberg](https://affpapa.org/en/nevibecode/skills/paulrberg-commit.md) — 342 installs
- [commit · legendapp](https://affpapa.org/en/nevibecode/skills/legendapp-commit.md) — 404 installs

From the same set: [neolabhq/context-engineering-kit](https://affpapa.org/en/nevibecode/by/neolabhq/context-engineering-kit.md) — 64 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
