This skill provides AI-powered git commit message generation using the `codegpt commit` command. It analyzes git diffs and automatically generates conventional commit messages in multiple languages.
/plugin marketplace add appleboy/CodeGPT/plugin install generating-commit-messages@CodeGPTThis skill inherits all available tools. When active, it can use any tool Claude has access to.
The git-commit skill leverages various AI providers (OpenAI, Anthropic, Gemini, Ollama, Groq, OpenRouter) to automatically generate meaningful commit messages that follow the Conventional Commits specification.
Run the install script to automatically download and set up the latest release:
bash < <(curl -sSL https://raw.githubusercontent.com/appleboy/CodeGPT/main/install.sh)
Generate a commit message for staged changes (Skip confirmation prompts):
codegpt commit --no_confirm
# Preview commit message before committing
codegpt commit --preview
# Skip confirmation prompts
codegpt commit --no_confirm
# Set output language (en, zh-tw, zh-cn)
codegpt commit --lang zh-tw
# Use specific AI model
codegpt commit --model gpt-4o
# Amend previous commit
codegpt commit --amend
# Display prompt only (no API call)
codegpt commit --prompt_only
# Write to specific output file
codegpt commit --file /path/to/commit-msg
# Customize diff context lines
codegpt commit --diff_unified 5
# Exclude specific files from diff
codegpt commit --exclude_list "*.lock,*.json"
# Use custom template file
codegpt commit --template_file ./my-template.tmpl
# Use inline template string
codegpt commit --template_string "{{.summarize_prefix}}: {{.summarize_title}}"
# Set API timeout
codegpt commit --timeout 60s
# Configure network proxy
codegpt commit --proxy http://proxy.example.com:8080
codegpt commit --socks socks5://127.0.0.1:1080
When using custom templates, the following variables are available:
{{.summarize_prefix}} - Conventional commit prefix (feat, fix, docs, etc.){{.summarize_title}} - Brief commit title{{.summarize_message}} - Detailed commit message bodyYou can also provide custom variables:
codegpt commit --template_vars "author=John,ticket=PROJ-123"
codegpt commit --template_vars_file ./vars.env
git diffConfigure via ~/.config/codegpt/.codegpt.yaml:
openai:
provider: openai # or: azure, anthropic, gemini, ollama, groq, openrouter
api_key: your_api_key_here
model: gpt-4o
timeout: 30s
git:
diff_unified: 3
exclude_list: []
template_file: ""
template_string: ""
output:
lang: en # or: zh-tw, zh-cn
file: ""
# Stage your changes
git add .
# Generate commit message without confirmation
codegpt commit --no_confirm
codegpt commit --lang zh-tw --model gpt-4o --no_confirm
codegpt commit \
--template_string "[{{.summarize_prefix}}] {{.summarize_title}}" \
--template_vars "ticket=PROJ-123"
codegpt commit \
--exclude_list "package-lock.json,yarn.lock,go.sum" \
--preview
git add before using codegpt commit--preview before committing--exclude_list to ignore lock files and generated codeCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.