Commit changes

From tldraw/tldraw · View interactive version

Commit changes is an AI agent skill from the GitHub repository tldraw/tldraw. 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.

How to use this skill

Skill file

Commit changes

Create a focused git commit for the current changes.

Workflow

  1. Gather context:
  1. Review the changed files.
  2. If there are no changes to commit, tell the user and stop.
  3. If there are unstaged changes, stage the relevant files with git add.
  4. Do not stage files that look like secrets, credentials, API keys, or private environment files.
  5. 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

Commit rules

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.

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.