Skip to content
Back to skills

Commit

ASecurity

Use this skill when the user wants to create a git commit, stage files, write a commit message, or finalize their work with a git commit. Also invoked by phrases like "commit my changes", "save to git", "git commit".

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentbashgitapiperformancedocumentation

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add Imran-ml/claude-skills --skill commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/imran-ml-commit/badge)](https://www.skillsdirectory.com/skills/imran-ml-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: commit
description: |
  Use this skill when the user wants to create a git commit, stage files,
  write a commit message, or finalize their work with a git commit.
  Also invoked by phrases like "commit my changes", "save to git", "git commit".
argument-hint: "[message or scope]"
allowed-tools: "Bash, Read, Glob"
---

# Smart Git Commit

Review staged and unstaged changes, then create a well-formatted git commit.

## Steps

1. Run `git status` to see what's changed
2. Run `git diff` and `git diff --cached` to understand the changes
3. Run `git log --oneline -5` to match the project's commit style
4. Stage relevant files with `git add <files>` (never use `git add .` blindly)
5. Write a commit message following **Conventional Commits**:
   - `feat:` — new feature
   - `fix:` — bug fix
   - `docs:` — documentation
   - `refactor:` — code restructuring (no behavior change)
   - `test:` — adding/updating tests
   - `chore:` — tooling, deps, config
   - `perf:` — performance improvement
   - `style:` — formatting, no logic change
6. Create the commit

## Rules

- Keep subject line under 72 characters
- Use imperative mood: "add feature" not "added feature"
- If the user provided `$ARGUMENTS`, use it as context or scope
- Never commit `.env`, secrets, or `settings.local.json`
- Warn the user before committing any sensitive-looking file

## Example Messages

```
feat(auth): add OAuth2 login with GitHub
fix(api): handle null response from payment gateway
docs: update README with MCP setup instructions
refactor(db): extract query builder into separate module
```

$ARGUMENTS

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.