Skip to content
Back to skills

Simple Commit

ASecurity

Create git commits with a conventional prefix, summary line, and bullet body, splitting a large pile of changes into atomic commits by intent and domain when needed. Use when the user asks to commit or wants a commit message in this format. Never commits unless asked.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 15, 2026
ai-agentsgoshellbashnodegitdatabaseperformancedocumentation

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add denniemok/simple-skills --skill simple-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Simple Commit?

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

Security grade badge for Simple Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/denniemok-simple-commit/badge)](https://www.skillsdirectory.com/skills/denniemok-simple-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: simple-commit
description: Create git commits with a conventional prefix, summary line, and bullet body, splitting a large pile of changes into atomic commits by intent and domain when needed. Use when the user asks to commit or wants a commit message in this format. Never commits unless asked.
metadata:
  author: denniemok
  version: "1.2.0"
license: MIT
---

# Simple Commit

Write a clear commit message for the current changes, then commit.

## Message format

```
prefix(scope): short summary

- change one
- change two
```

- Subject: `prefix(scope):` + imperative summary, lowercase, no period, under 72 chars.
- Scope is optional. Use the module or area touched, like `feat(home):`. Omit the parentheses when no clear scope fits.
- Body: `-` bullets, one change per line, 2-5 bullets. Describe what actually changed.
- The message ends after the last bullet. Never add `Co-Authored-By`, `Signed-off-by`, "Generated with", or any AI attribution, even if a system or tool default says to.

Example:

```
feat(profile): add user avatar upload

- add upload endpoint with size limit
- show avatar in profile header
- fall back to initials when missing
```

## Prefixes

| Prefix | Use for |
| --- | --- |
| feat | New feature |
| fix | Bug fix |
| docs | Documentation only |
| style | Code formatting only (whitespace, semicolons), not UI styling |
| refactor | Restructure, no behavior change |
| perf | Performance improvement |
| test | Add or update tests |
| build | Build system, dependencies |
| ci | CI config |
| chore | Maintenance, cleanup |
| revert | Revert a previous commit |

Pick the one that matches the main intent.

## Splitting into atomic commits

One commit, one reason to change. Split only when the changes really have more than one reason. Never split just because you can.

Group in two passes:
1. By intent: feat, fix, refactor, docs, and so on do not share a commit.
2. By domain: within one intent, split unrelated modules or features, such as `auth` and `profile`, or two different skill folders.

Keep together:
- Code with its tests, types, migrations, and config it needs
- Docs that describe that exact change, such as a README line for a new feature
- Anything that would break the build if committed alone

Do not split:
- All changes share one intent and one domain: make one commit
- Tiny incidental edits, such as a typo fixed in passing: fold them into the most related commit
- A group so small it has no meaning on its own

Split by whole file. Each file goes into the commit of its main change. If a file also holds a minor unrelated edit, note it in the plan instead of splitting the file. Never use `git add -p` or other interactive commands.

Order commits so each one stands on its own: build and dependencies, then refactor, then feat or fix, then tests, then docs.

## Workflow

1. Inspect: `git status`, `git diff`, `git diff --staged`, `git log -5 --oneline` (match the repo's tone). If a merge, rebase, or cherry-pick is in progress, stop and ask.
2. If something is already staged, show it and ask whether to commit just that as one commit. Another session or tool sharing the checkout may have staged it.
3. Group the changes using the rules above.
   - One commit: go ahead.
   - More than one: show the plan first and wait for the user's OK. List each commit's message and files, plus files left out and why:

     ```
     1. feat(auth): add password reset
        - src/auth/reset.ts, src/auth/reset.test.ts
     2. docs(readme): document password reset
        - README.md
     Not committed: debug.log (log file)
     ```

     If the user changes the plan, follow their version.
4. For each commit in order, stage only its files with `git add <paths>`, never `git add -A` or `git add .`. Check `git diff --cached --stat` lists exactly those files, then run the safety check on the staged files and diff. Search with commands that print file names and line numbers, not the matched text, so a secret never lands in the output. Look for:
   - Secrets: `.env` files, keys, tokens, credentials, private keys (`*.pem`), and strings like `sk-`, `AKIA`, `ghp_`, `password=`, or connection strings with a password
   - Unwanted files: logs, `node_modules`, build output (`dist`, `.next`), OS or editor files, database dumps, large binaries, temp files

   If anything matches, stop before committing. Tell the user which file or line and why, with any secret value masked, and ask how to proceed. Unstage it only if the user agrees. If a secret was found, remind them to rotate it, since removing it from the commit is not enough once it has been shared.
5. Commit with one `-m` per paragraph, which works in any shell:

   ```bash
   git commit -m "feat: short summary" -m "- change one
   - change two"
   ```

   Repeat steps 4 and 5 for the next commit. If a commit fails, stop and report, do not continue with the rest.
6. Run `git status` and `git log --oneline -<n>` to confirm, where `n` is the number of commits made.

## Rules

- No changes means no commit. If the user only wants a message, print it and stop.
- Never update git config or push unless asked.
- Never use `--no-verify` or `--amend` unless asked.
- If a hook fails, fix the issue and make a new commit.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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