Commit

From meowgorithm/dotfiles · View interactive version

Commit is an AI agent skill from the GitHub repository meowgorithm/dotfiles. Stage and commit changes with a Conventional Commits message. Invoke with /commit "optional scope hint". Inspects the diff, picks an appropriate type and scope, writes a concise message, and commits. Does not push.

How to use this skill

Skill file

/commit

Stage everything currently modified and untracked, then commit with a

Conventional Commits message inferred from the diff.

Workflow

  1. Run git status and git diff --staged (plus git diff for unstaged) to

see what's actually changing. If nothing is changing, stop and say so.

  1. Read git log -10 --oneline to match the repo's existing commit style — some

repos use feat(bubbles): ..., others use bubbles: ..., others use

sentence case. Match what's there, don't impose Conventional Commits if the

repo doesn't use it.

  1. Pick a type: feat, fix, refactor, docs, test, chore, perf,

build, ci, style, revert. If $ARGUMENTS is non-empty, treat it as a

scope or context hint, not as the full message.

  1. Write a subject line ≤ 72 chars, imperative mood ("add", not "added"). If the

change is non-obvious, add a body paragraph explaining the why — not the what

(the diff already shows the what).

  1. git add -A then git commit -m "...". Show the resulting git log -1 and

stop. Do not push.

Rules

the user to stage selectively instead of guessing.

dangerous operations and belong in their own skill.

repo's existing log shows that pattern.

Examples

/commit on a diff that touches internal/tui/textarea/buffer.go: →

feat(textarea): add gap buffer backing store

/commit "rollback" on a diff that reverts a flag default: →

revert: restore default --color=auto behavior

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.