# Git Commit Helper

> Analyze git diff and generate descriptive conventional commit messages. Use when staging changes, writing commit messages, or reviewing staged changes before committing. Triggers: 'commit this', 'write commit message', 'what should the commit say', 'review staged changes', 'help me commit'. Do NOT use for git branching strategy, merge conflict resolution, or PR creation.

- **Type:** Skill
- **Install:** `agentstack add skill-cor-incorporated-claude-code-skills-git-commit-helper`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Cor-Incorporated](https://agentstack.voostack.com/s/cor-incorporated)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Cor-Incorporated](https://github.com/Cor-Incorporated)
- **Source:** https://github.com/Cor-Incorporated/claude-code-skills/tree/develop/skills/git-commit-helper

## Install

```sh
agentstack add skill-cor-incorporated-claude-code-skills-git-commit-helper
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Git Commit Helper

Analyze staged changes and generate conventional commit messages.

## Workflow

1. **Review staged changes:**
   ```bash
   git diff --staged --stat
   git diff --staged
   ```

2. **Identify commit type** from changes:
   - `feat`: New feature
   - `fix`: Bug fix
   - `refactor`: Code restructuring (no behavior change)
   - `docs`: Documentation only
   - `test`: Adding/updating tests
   - `style`: Formatting (no logic change)
   - `chore`: Maintenance, dependencies
   - `perf`: Performance improvement
   - `ci`: CI/CD changes

3. **Determine scope** from affected area (e.g., `auth`, `api`, `ui`, `db`, `ci`).

4. **Generate message** following this format:
   ```
   (): 

   [Body: explain WHY, not WHAT]

   [Footer: breaking changes, issue refs]
   ```

## Rules

- Use imperative mood: "add feature" not "added feature".
- Keep summary under 50 characters.
- Capitalize first letter of summary.
- No period at end of summary.
- Body explains WHY the change was made.
- Mark breaking changes with `!` after scope and `BREAKING CHANGE:` in footer.
- One logical change per commit -- do not mix unrelated changes.

## Examples

```
feat(auth): add JWT refresh token support

Implement automatic token refresh to prevent session
expiration during active use. Users were being logged
out mid-workflow.

Closes #142
```

```
fix(api): handle null values in user profile

Prevent crashes when optional profile fields are null.
Add null checks before accessing nested properties.
```

```
feat(api)!: restructure response format to JSON:API

BREAKING CHANGE: All API responses now use JSON:API spec.
Migration guide: docs/migration-v2.md
```

## Error Handling

- If no changes are staged, run `git status` and suggest which files to stage.
- If staged changes span unrelated areas, recommend splitting into separate commits.
- If commit type is ambiguous (e.g., feat + fix mixed), flag it and suggest separation.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Cor-Incorporated](https://github.com/Cor-Incorporated)
- **Source:** [Cor-Incorporated/claude-code-skills](https://github.com/Cor-Incorporated/claude-code-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-cor-incorporated-claude-code-skills-git-commit-helper
- Seller: https://agentstack.voostack.com/s/cor-incorporated
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
