Agent skill
commit
Create well-formatted git commits following GitLens conventions
Install this agent skill to your Project
npx add-skill https://github.com/gitkraken/vscode-gitlens/tree/main/.claude/skills/commit
SKILL.md
/commit - Create Git Commit
Create a well-formatted git commit following GitLens conventions.
Usage
/commit [message]
Commit Message Format
- Use future-oriented manner, third-person singular present tense
- Verbs: Adds, Fixes, Improves, Updates, Removes, Refactors, Changes
- First line under 72 characters
- Reference issues with
#123syntax for auto-linking
Examples:
Adds support for custom autolinks for Jira - fixes #1234
Fixes graph not rendering when switching repositories
Improves performance of commit signature detection
Refactors git provider initialization
Workflow
- Check status:
git status(never use-uall) - Review changes:
git diff --cachedandgit diff - Check CHANGELOG: If changes are user-facing, ensure they have a CHANGELOG entry (use
/audit-commitsfor CHANGELOG format) - Stage files — specific files, not
git add -A - Generate message if none provided — analyze changes, determine type, draft message, confirm with user
- Commit using HEREDOC format with Co-Authored-By trailer
- Verify:
git statusandgit log -1
Pre-commit Hook Failures
- Do NOT use
--amend(the failed commit never happened — amend would modify the previous commit) - Fix the reported issues
- Re-stage fixed files
- Create a NEW commit
Safety
- Never use
--forceor--no-verify - Never amend unless explicitly requested
- Verify no sensitive files are staged (.env, credentials)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
investigate
Structured investigation of a bug or unexpected behavior before implementing a fix
analyze
Deep design and implementation analysis with devil's advocate evaluation
add-command
Create new VS Code commands with all required boilerplate
add-icon
Add new icons to the GitLens GL Icons font
deep-planning
Use when formulating the best technical approach for a task — before writing implementation plans or code. Triggers on architecture decisions, complex features, refactors, or when the user asks how to approach something. Investigates current codebase, questions existing patterns, researches alternatives, and presents approaches with trade-offs.
review
Code review against GitLens standards with optional impact completeness audit
Didn't find tool you were looking for?