Skip to content
Back to skills

Commit

ASecurity

Write a Conventional Commit for the staged changes and commit them. Use when asked to commit, or to write a commit message.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 20, 2026
ai-agentsgoshellgit

Security analysis

A100/100

Scanned October 20, 2026

npx -y skills add imagile-dev/claude-plugins --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/imagile-dev-commit/badge)](https://www.skillsdirectory.com/skills/imagile-dev-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: Write a Conventional Commit for the staged changes and commit them. Use when asked to commit, or to write a commit message.
---

# Commit

1. Read `git status` and `git diff --staged`. If nothing is staged, say so and stop. Never run `git add -A` or `git add .`.
2. **Check the staged list for accidents:** empty files from a shell redirect (`nul`, `{}`), scratch scripts, logs, screenshots, local config, `.env`. Unstage them and say which.
3. Write the message:

   ```
   <type>(<optional scope>): <imperative summary> <gitmoji>
   ```

   - Types: `feat`, `fix`, `refactor`, `perf`, `docs`, `test`, `chore`, `ci`, `build`.
   - Title only. Add a body only when the reason is not obvious from the diff.
   - End the title with one [gitmoji](https://gitmoji.dev/) that fits the change: `feat: add OAuth login πŸ”`. The emoji goes last, never before the type, so release-please and other Conventional Commit parsers still read the type. 72 chars max including the emoji.
   - No jokes.
   - A breaking change uses `feat!:` with a `BREAKING CHANGE:` footer that says why and how to migrate. Skip breaking markers before a project's first release.
   - Keep any trailer the environment requires (for example `Co-Authored-By`).
   - If the repo's `CLAUDE.md` defines another format, use that.
4. Commit with a heredoc so the message survives quoting.

## Rules

- Commit only when the user asked for a commit, or when the repo's workflow (for example a ship skill) says to.
- Never push from this skill. Never amend or force-push a commit that is already pushed.
- If a hook fails, fix the cause and make a new commit. Never skip hooks.

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.