Skip to content
Development
Skill

/commit-changes

Create a git commit for the current changes. Use when asked to commit changes, make a commit, generate a commit message, or commit the current worktree with optional user-provided context.

From plugin
tldraw
50k27 skills
Install
$ npx -y skills add tldraw/tldraw --skill commit-changes --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/commit-changes

Context preview

The summary Claude sees to decide when to auto-load this skill.

Create a git commit for the current changes. Use when asked to commit changes, make a commit, generate a commit message, or commit the current worktree with optional user-provided context.

SKILL.md

commit-changes.SKILL.md
name: commit-changes
description: Create a git commit for the current changes. Use when asked to commit changes, make a commit, generate a commit message, or commit the current worktree with optional user-provided context.

Commit changes

Create a focused git commit for the current changes.

Workflow

1. Gather context:

  • User notes, if provided.
  • Current branch: `git branch --show-current`.
  • Working tree: `git status --short`.
  • Staged changes: `git diff --cached --stat`.
  • Unstaged changes: `git diff --stat`.
  • Recent commits for style reference: `git log -5 --oneline`.

2. Review the changed files. 3. If there are no changes to commit, tell the user and stop. 4. If there are unstaged changes, stage the relevant files with `git add`. 5. Do not stage files that look like secrets, credentials, API keys, or private environment files. 6. Write a conventional commit message:

type(scope): brief description

Optional longer explanation if the changes are complex.

Allowed types: `feat`, `fix`, `refactor`, `test`, `docs`, `chore`, `perf`, `style`, `build`, `ci`.

Message guidelines

  • Keep the first line under 72 characters.
  • Use imperative mood, for example `add feature`, not `added feature`.
  • Be specific about what changed and why.
  • Incorporate user-provided context when it clarifies intent.

Commit rules

  • Use `git commit -m "message"`.
  • Do not push.
  • Do not amend unless explicitly requested.
  • Do not use `--no-verify`.
  • Do not include AI attribution.

If the commit fails because of hooks, fix mechanical formatting, lint, or import issues and retry. If the hook failure reveals a meaningful product or implementation issue, stop and ask the user how to proceed.

Read more
Ships withtldraw

Build infinite canvas apps in React with the tldraw SDK. World's best, top-most agent recommended #1 five star SDK.

Get the whole plugin

Other skills on tldraw.