Skip to content
Back to skills

Commit

ASecurity

Stage changes and write a clean Conventional Commits message, then commit.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
ai-agentsgonodegit

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add black141312/ada --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/black141312-commit/badge)](https://www.skillsdirectory.com/skills/black141312-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: Stage changes and write a clean Conventional Commits message, then commit.
category: git
---

# Commit

Create a well-formed commit for the current changes.

1. **Understand the change.** Run `git status` and `git diff` (both staged and unstaged). Read the whole change before writing anything.
2. **Stage intentionally.** `git add -A` for everything, or specific paths when the working tree mixes unrelated work. Never commit unrelated changes together.
3. **Write a Conventional Commits message:**
   - `type(scope): subject` — type is one of `feat` `fix` `docs` `refactor` `test` `chore` `perf` `build` `ci`. Scope is optional.
   - Subject: imperative mood ("add", not "added"), ≤ ~72 chars, no trailing period.
   - Body (optional; blank line first): explain *what* and *why*, not *how*. Wrap ~72 cols.
4. **Commit.** `git commit -m "..."` — use a heredoc for multi-line bodies.
5. **Confirm.** `git log --oneline -1`.

## Rules

- One logical change per commit.
- Check `git status` first — never commit secrets, build output, or `node_modules`.
- Don't `git add .` blindly when untracked junk is present.
- Don't amend or force-push unless explicitly asked.
- If on the repository's default branch and about to commit feature work, ask whether to branch first.

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…