Commit

From ahonn/dotfiles · View interactive version

Commit is an AI agent skill from the GitHub repository ahonn/dotfiles. Create a conventional commit from staged changes.

How to use this skill

Skill file

Create a Conventional Commit

I'll help you create a commit following the Conventional Commits 1.0.0 specification.

Checking current changes

!git status --short

!git diff --cached --stat

Analyzing changes

Based on the changes, I'll create a commit message following this structure:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Conventional Commit Types

Breaking Changes

Creating the commit

IMPORTANT: This command will NEVER execute git add. It only creates commits from already staged changes.

Based on the staged changes and any specific requirements in "$ARGUMENTS", I'll:

  1. Determine the appropriate commit type
  2. Identify if a scope is needed
  3. Write a clear, concise description
  4. Add body details if the changes are complex
  5. Include any necessary footers (BREAKING CHANGE, Refs, etc.)

Then execute the commit with:

git commit -m "$(cat <<'EOF'
[generated commit message here]
EOF
)"

Important: The commit message will be clean and professional, containing:

The commit will follow all Conventional Commits 1.0.0 rules:

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.