Agent skill
git-workspace-review
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/git-workspace-review
SKILL.md
Git Workspace Review
When to Use
Use this skill before any workflow that depends on understanding current changes (commit messages, PR prep, release notes, etc.). Run once per session or whenever staged changes are updated.
Required TodoWrite Items
git-review:repo-confirmedgit-review:status-overviewgit-review:code-quality-checkgit-review:diff-statgit-review:diff-details
Mark each item as complete as you finish the corresponding step.
Step 1: Confirm Repository (repo-confirmed)
- Run
pwdto validate you are inside the correct repository. - Run
git status -sbto see the branch and short status. - Capture the branch name and upstream information.
Step 2: Review Status Overview (status-overview)
- Review the
git status -sboutput for staged vs. unstaged changes. - Stage or unstage files as needed so downstream workflows operate on the intended diff.
Step 3: Check Code Quality (code-quality-check)
- Run
make format && make lintto validate code quality BEFORE committing - If errors are found, fix them immediately
- NEVER proceed to commit with
--no-verify- pre-commit hooks exist to enforce quality - This proactive check prevents pre-commit hook failures later
Step 4: Review Diff Statistics (diff-stat)
- Run
git diff --cached --statfor staged changes (orgit diff --statif nothing is staged yet). - Note the number of files touched and any hotspots (large insert/delete counts).
Step 5: Review Detailed Diff (diff-details)
- Run
git diff --cachedto skim the actual changes. - If working with unstaged work, use
git diff. - Capture key themes (e.g., "Makefile target adjustments," "New skill added").
- These notes feed downstream summaries.
Exit Criteria
TodoWriteitems are completed.- You understand which files and areas have changed and have staged the correct work.
- Downstream workflows (commit, PR, etc.) can now rely on this context without re-running Git commands.
Troubleshooting
Common Issues
If pre-commit hooks block you, fix the issues; do not use --no-verify. Run make format to resolve styling errors automatically. For lint failures, use make lint to pinpoint the cause. If merge conflicts arise, git merge --abort lets you retry safely.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?