Commit

From NVIDIA-NeMo/DataDesigner · View interactive version

Commit is an AI agent skill from the GitHub repository NVIDIA-NeMo/DataDesigner. Commit current changes with a clear, descriptive message. The argument may contain special instructions for the commit message.

How to use this skill

Skill file

Commit Changes

Commit the current staged/unstaged changes with a well-crafted commit message.

Arguments

$ARGUMENTS can be used for special instructions, such as:

Step 1: Gather Information

Run these commands in parallel to understand the changes:

  1. Git status: git status --porcelain (check for staged/unstaged changes)
  2. Staged diff: git diff --cached (what will be committed if there are staged changes)
  3. Unstaged diff: git diff (what's modified but not staged)
  4. Recent commits: git log -5 --oneline (to match existing commit style)

Important checks:

Step 2: Analyze Changes

Review the diff to understand:

Step 3: Generate Commit Message

Message Guidelines

  1. Subject line:
  1. Body (if needed for complex changes):
  1. Footer (if needed):

Examples

Simple change:

add user authentication endpoint

Change with body:

add rate limiting to public endpoints

- Implement token bucket algorithm
- Add configurable limits per endpoint
- Include rate limit headers in responses

Closes #234

Step 4: Create the Commit

  1. Stage changes (if needed):

```bash

git add -A

```

Or stage specific files if user requested selective staging.

  1. Create commit using HEREDOC for proper formatting:

```bash

git commit -m "$(cat <<'EOF'

<description>

<body if needed>

<footer if needed>

EOF

)"

```

  1. Verify the commit was created:

```bash

git log -1 --oneline

```

  1. Report the commit hash and message to the user.

Edge Cases

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.