Index of every page on this site: llms.txt
All skills
tldraw avatar

/commit-changes

@3c4639e official
by tldrawtldraw/tldraw51k stars
3,607
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/tldraw/tldraw/commit-changes

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈51 tokens for metadata: the name and description. ≈378 when used: this file.

Description uses 2.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈205 characters, or 2.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is a standard Git helper for automating commit creation. It includes good security practices such as explicitly instructing the agent not to stage files containing secrets or credentials. It has a minor risk of indirect prompt injection where malicious instructions hidden in code comments or file contents could influence the generated commit message or staging process.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 3c4639e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 7 months ago
  • Git/VCS
  • commit
  • conventional-commits
  • workflow
  • staging

README badge

README badge for tldraw/tldraw/commit-changes

Stages and commits the current working tree changes with a conventional commit message, gathering context from recent commits and git status to determine appropriate type and scope. Useful for agents that need to create focused commits without user intervention, following conventional commit conventions and avoiding secrets or credential files.

Generated from the current SKILL.md.

Does this skill push the commit to the remote?
No. The skill creates and commits changes locally but does not push. You must push manually if needed.
What happens if there are unstaged changes?
The skill stages relevant files with git add before committing. It skips files that look like secrets, credentials, API keys, or private environment files.
Will this skill amend or rewrite existing commits?
No. The skill creates new commits only. It will not amend unless you explicitly request it.
What commit message format does this skill use?
Conventional commits with type(scope): description format. Allowed types are feat, fix, refactor, test, docs, chore, perf, style, build, and ci.
What does the skill do if the commit fails due to hooks?
It will attempt to fix mechanical formatting, lint, or import issues and retry. If the failure reveals a meaningful product or implementation issue, it stops and asks you how to proceed.

Generated from the current SKILL.md. These answers refresh after source changes.