# Commit

> Analyze staged changes and create a well-formatted conventional commit

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

## Install

```sh
agentstack add skill-canarslandev-claude-code-setup-commit
```

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

## About

# Commit Skill

Create a high-quality git commit from the currently staged changes.

## Steps

1. **Check for staged changes**
   Run `git diff --cached --stat` to see what's staged. If nothing is staged, tell the user and suggest what to stage.

2. **Analyze the changes**
   Run `git diff --cached` to read the actual changes. Understand:
   - What files were modified, added, or deleted
   - The nature of the changes (new feature, bug fix, refactor, docs, test, chore, style)
   - The scope of the changes (which module/component is affected)

3. **Check recent commit style**
   Run `git log --oneline -10` to see the project's existing commit message style.

4. **Generate the commit message**
   Follow the Conventional Commits format:
   ```
   (): 

   

   
   ```

   Types:
   - `feat` — new feature
   - `fix` — bug fix
   - `refactor` — code restructuring without behavior change
   - `docs` — documentation changes
   - `test` — adding or fixing tests
   - `chore` — maintenance tasks (deps, config, etc.)
   - `style` — formatting, whitespace, etc.
   - `perf` — performance improvements
   - `ci` — CI/CD changes

5. **Create the commit**
   Use `git commit -m "..."` with the generated message. Use a HEREDOC for multi-line messages.

6. **Show the result**
   Run `git log -1` to confirm the commit was created successfully.

## Rules

- The first line must be under 72 characters
- Use imperative mood ("add feature" not "added feature")
- The body should explain WHY the change was made, not WHAT changed (the diff shows WHAT)
- If there are breaking changes, add `BREAKING CHANGE:` in the footer
- Never skip the analysis step — always read the full diff
- Match the project's existing commit style when possible

## Source & license

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

- **Author:** [CanArslanDev](https://github.com/CanArslanDev)
- **Source:** [CanArslanDev/claude-code-setup](https://github.com/CanArslanDev/claude-code-setup)
- **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-canarslandev-claude-code-setup-commit
- Seller: https://agentstack.voostack.com/s/canarslandev
- 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%.
