Commit

From nearai/ironclaw · View interactive version

Commit is an AI agent skill from the GitHub repository nearai/ironclaw. Generate git commit messages from staged changes

How to use this skill

Skill file

Git Commit Workflow

When the user asks to create a commit:

  1. Run shell with git status to see what files are staged and unstaged.
  2. Run shell with git diff --cached to see the exact changes that will be committed.
  3. Run shell with git log --oneline -5 to understand the repo's commit message style.
  4. Analyze the staged changes and draft a commit message:
  1. Do not commit files that likely contain secrets (.env, credentials.json, API keys). Warn the user if such files are staged.
  2. Show the proposed commit message to the user and ask for confirmation before running git commit.
  3. Stage any requested files with git add <specific files> (never use git add -A or git add .).

Commit Message Format

If the repo doesn't have a clear style, use:

<type>: <concise description>

<optional body explaining why>

Where type is: fix, feat, refactor, test, docs, chore.

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.