Skip to content
Back to skills

Commit

ASecurity

Commits only the files a change touched, with a Conventional Commits message and Refs trailer. Use when asked to commit.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsshellbashgit

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add tedliou/whetstone --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/tedliou-commit/badge)](https://www.skillsdirectory.com/skills/tedliou-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: Commits only the files a change touched, with a Conventional Commits message and Refs trailer. Use when asked to commit.
argument-hint: "[#issue] [what the change is about]"
---

# Commit

Branch, trailer, and staging rules are in [workflow.md](../_shared/workflow.md#commits). This skill applies them.

## Steps

1. Look at `git status --porcelain` and `git diff` (staged and unstaged). Decide which paths belong to this change. Leave unrelated changes alone and mention them in your report. If nothing belongs to this change, say so and stop.
2. Stage those paths by name: `git add -- <path> ...`. If a file mixes this change with unrelated edits, ask the user before staging it.
3. Commit with the message on stdin: `git commit -F -` fed by a bash here-doc or a piped PowerShell here-string. This avoids quoting problems and over-long temp file paths on Windows.
4. If a hook fails, read its output, fix the cause, stage again, and make a new commit. Never pass `--no-verify`, and never amend a commit that is already pushed.
5. Report one line: short hash and subject.

## Message

```
type(scope): summary

Why the change was needed, when the diff does not make it obvious.

Refs: #123
```

- type: feat, fix, refactor, perf, test, docs, build, ci, chore. Breaking changes add `!` after the type and a `BREAKING CHANGE:` footer.
- scope: the module or area, optional.
- summary: imperative, no trailing period, under 72 characters.
- body: wrap at 72. Skip it for small, obvious changes.
- `Refs: #n`: a git trailer naming the ticket this change belongs to, from the argument, the current task, or the branch name. Omit it when there is no issue.
- Type, scope, and the trailer stay in English. The summary and body follow the output language in workflow.md.

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.