Skip to content
Back to skills

Commit

ASecurity

Use for every commit in this repo (asked to commit, "/commit", or finishing a change).

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add c-w-z/commit-decision-record --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/c-w-z-commit/badge)](https://www.skillsdirectory.com/skills/c-w-z-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 for every commit in this repo (asked to commit, "/commit", or finishing a change).
---

# Commit

The rules and the message format are in Commits in `CONTRIBUTING.md`. This skill gives the procedure.

## Before you commit

1. Run `git status -sb`. The first line shows the branch.
   - Make sure that it is the branch of the current task. A different person or session can change the branch in the same folder. If the branch is wrong, stop and ask the user.
   - Commit only the changes that you made for the current task. If you find changes that you did not make, stop and ask the user.
2. Do the steps in "Before you finish" in `AGENTS.md`.

## Stage the changes

- Stage each path by name (`git add <path>...`). Do not use `git add -A` without a check of what it stages.
- Do not stage secrets, local settings (see `.gitignore`) or build output.

## Write the message

- Use the format in Message format in `CONTRIBUTING.md`.
- Check the complete draft commit message against Message format and "Text for outside readers" in `CONTRIBUTING.md`.
- Give a multi-line message with a quoted heredoc: `git commit -F - <<'EOF' ... EOF`.

## Safety

- Do not use `--no-verify`.
- Do not force-push `main`. Do not rewrite the commits that are in `main`.
- You can amend or rebase unpushed commits that you made in this task.
- To rewrite other commits of a PR branch that is not merged, for example pushed commits or commits that you did not make, ask the user first. Then push with `git push --force-with-lease`.
- If a hook fails, fix the cause and make the commit again.

## After you commit

Report the short hash and the branch.

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.