# Git Commit

> Create git commits with succinct technical messages. Activates when user requests git commit creation.

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

## Install

```sh
agentstack add skill-shavakan-claude-marketplace-git-commit
```

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

## About

# Git Commit

Create technical commit messages, one per logical unit. Use the bundled grouping script for the deterministic part; spend tokens on Fix/Feature/Refactor refinement and message wording.

## Process

1. **Branch check.** Run `git branch --show-current`. If on `main` / `master` and the user did not explicitly request committing there, create a feature branch first (`feat/` or `fix/`) and switch to it.
2. Run `scripts/group-changes.sh` (default: working tree). Output is JSON:
   - `files[]` — every changed path with `{status, type, top}` where `type ∈ {types, config, code, test, doc}`
   - `groups[]` — pre-bucketed by `(type, top-level dir)`
   - `order[]` — suggested commit sequence (types → config → code → test → doc)
3. **Refine `code` groups.** The script can't tell Fix from Feature from Refactor. For each `type=code` group, read the diff (`git diff -- `) and decide:
   - **Fix** vs **Feature** vs **Refactor** vs **Types** vs **Config** (re-classify if the script guessed wrong)
   - **Split** if one group mixes intents (e.g., a fix and an unrelated refactor in the same dir)
   - **Merge** if two adjacent groups belong together (e.g., type changes + the code consuming them, when tightly coupled and 6 commit units, surface the plan and ask before executing.

## Edge cases

- **All changes one logical unit** → one commit; ignore the group split.
- **Mixed intents in a single file** → `git add -p` to stage hunks separately.
- **Script reports `code` for a config-like file** (rare, e.g., custom build script) → manually re-classify; the heuristic is path-based.
- **Renames** → script picks the destination path; rename + edits in same file land in one commit.

## Source & license

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

- **Author:** [Shavakan](https://github.com/Shavakan)
- **Source:** [Shavakan/claude-marketplace](https://github.com/Shavakan/claude-marketplace)
- **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-shavakan-claude-marketplace-git-commit
- Seller: https://agentstack.voostack.com/s/shavakan
- 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%.
