Claude-skill-registry git-workspace-review
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/git-workspace-review" ~/.claude/skills/majiayu000-claude-skill-registry-git-workspace-review && rm -rf "$T"
manifest:
skills/data/git-workspace-review/SKILL.mdsource content
Git Workspace Review
Usage
Use this skill before workflows that depend on repository state, such as commit message generation, PR preparation, or release notes. Run it once per session or whenever staged changes are modified.
Required Progress Tracking
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
)
repo-confirmedRun
pwd to confirm you are in the correct repository directory. Execute git status -sb to view the current branch and short status, then capture the branch name and upstream information.
Step 2: Review Status Overview (status-overview
)
status-overviewAnalyze the
git status -sb output for staged and unstaged changes. Stage or unstage files so that subsequent workflows operate on the intended diff.
Step 3: Check Code Quality (code-quality-check
)
code-quality-checkRun
make format && make lint to validate code quality before committing. Fix any errors immediately. Do not bypass pre-commit hooks with --no-verify. This check identifies issues early and avoids late-stage pipeline failures.
Step 4: Review Diff Statistics (diff-stat
)
diff-statRun
git diff --cached --stat for staged changes (or git diff --stat for unstaged work). Note the number of files modified and identify hotspots with large insertion or deletion counts.
Step 5: Review Detailed Diff (diff-details
)
diff-detailsRun
git diff --cached to examine the actual changes. For unstaged work, use git diff. Identify key themes, such as Makefile adjustments or new skill additions, to provide context for downstream summaries.
Exit Criteria
Complete all progress tracking items. You should have a clear understanding of modified files and areas, and the correct work should be staged. Subsequent workflows can then rely on this context without re-executing git commands.
Troubleshooting
If pre-commit hooks block a commit, resolve the reported issues instead of using
--no-verify. Run make format to fix styling errors automatically and use make lint to isolate logical failures. If merge conflicts occur, use git merge --abort to return to a clean state before retrying.