Agent skill
audit-commits
Audit commits for issues and CHANGELOG entries
Install this agent skill to your Project
npx add-skill https://github.com/gitkraken/vscode-gitlens/tree/main/.claude/skills/audit-commits
SKILL.md
/audit-commits - Audit Commits
Compare HEAD against a tag, identify user-facing commits, ensure they have linked issues and CHANGELOG entries.
Usage
/audit-commits [tag]
No tag: suggest the most recent (git tag --sort=-creatordate | head -10).
Workflow
- Fetch commits:
git log --format="%h %s" <tag>..HEAD - Analyze each (oldest first):
- Get diff:
git show <sha> --statandgit show <sha> - Classify: bugfix / feature / refactor / docs / tests / chore
- Assess impact: High / Medium / Low / None
- Check for linked issue (
#<num>in message)
- Get diff:
- Group related commits (e.g., feature + immediate follow-up fix)
- Check each user-facing commit against
[Unreleased]in CHANGELOG.md - Present summary, confirm before creating issues or editing CHANGELOG
CHANGELOG Management
Uses Keep a Changelog format under [Unreleased].
Section Mapping
| Change Type | Section |
|---|---|
| Feature | Added |
| Enhancement | Changed |
| Performance | Changed |
| Bugfix | Fixed |
| Deprecation | Deprecated |
| Removal | Removed |
Entry Format
- [Verb] [description] ([#issue](url))
Guidelines:
- Start with: "Adds", "Improves", "Changes", "Fixes", "Removes"
- Use underscores for UI elements:
_Commit Graph_,_Home_ view - Include issue reference if available
- Be user-centric (what user sees, not code changes)
Example:
- Fixes an issue where the _Home_ view would not update when switching repositories ([#4717](https://github.com/gitkraken/vscode-gitlens/issues/4717))
Detection
Check [Unreleased] section for:
- Issue number reference (if commit has linked issue)
- Keywords from commit message
- Feature/component names
Impact Assessment
| Impact | Criteria |
|---|---|
| High | New feature, breaking change, significant bugfix |
| Medium | Enhancement, minor bugfix, performance improvement |
| Low | Edge case fix, minor polish |
| None | Refactor, internal cleanup, tests, docs-only |
User-facing (High/Medium/Low) require issue + CHANGELOG. None = skip.
Issue Creation
Same workflow as /create-issue: duplicate detection, user confirmation, no auto-creation.
After creating: gh issue comment <num> --body "Closed by <commit_sha>"
Progress Display
Auditing commits: <tag>..HEAD
Summary:
- Total commits: 25
- User-facing: 12 (missing issue: 3, missing CHANGELOG: 5)
- Not user-facing: 13 (skipped)
Then ask: "Process these commits? (create issues / update CHANGELOG / both / skip)"
Safety
- NEVER include code snippets or implementation details in issues
- NEVER create labels without user confirmation
- NEVER auto-create issues or edit CHANGELOG without user confirmation
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
commit
Create well-formatted git commits following GitLens conventions
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.
Didn't find tool you were looking for?