Analyzes uncommitted git changes and updates CHANGELOG.md and CLAUDE.md. Executes git commands, reads diffs, categorizes changes, and stages updated documentation automatically.
This skill actively analyzes your git repository, examines uncommitted changes, and automatically updates documentation files (CHANGELOG.md and CLAUDE.md).
When this skill is invoked, immediately execute the following actions:
# Check if current directory is a git repository
git rev-parse --is-inside-work-tree
If not a git repo, exit with message: "Not a git repository. This skill requires git."
Execute these commands in parallel:
# Get status of all files
git status --porcelain
# Get unstaged changes
git diff
# Get staged changes
git diff --cached
# Get list of modified files
git diff --name-only HEAD
# Get recent commits for context
git log --oneline -5
Read these files (if they exist):
CHANGELOG.md - to understand format and add new entriesCLAUDE.md - to check if structural updates needed.gitignore - to understand project patternsBased on the git diff output:
Categorize changes:
Filter out excluded changes:
.idea/, .iml files.gitignore, .gitattributes*.md files (documentation only)Determine documentation needs:
If CHANGELOG.md doesn't exist, create it:
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
If it exists, find or create the ## [Unreleased] section.
Add entries under appropriate categories:
Rules:
Example:
## [Unreleased]
### Added
- Implement circular gesture navigation for tag selection. Optimized for small watch screens with touch-friendly hit areas.
### Fixed
- Resolve NullPointerException when database is empty on first launch. Added initialization checks in DataRepository.
Only update if changes include:
Update relevant sections:
git add CHANGELOG.md
git add CLAUDE.md # only if modified
Verify with:
git status --porcelain
Show the user:
Use tools, not instructions:
Bash tool to run git commandsRead tool to read existing documentationEdit tool to update files preciselyGrep tool to search for patterns if neededBe autonomous:
Be accurate:
Changelog Entries:
CLAUDE.md Updates:
If git commands fail:
If files can't be read:
If no changes detected:
✅ Git repository verified ✅ All changes analyzed ✅ CHANGELOG.md updated with new entries ✅ CLAUDE.md updated if needed ✅ Documentation files staged ✅ User informed of updates