Skip to content
Development
Skill

/git-workspace-review

Verifies workspace state and staged changes as a read-only preflight. Use before commits or PRs to confirm staged set is clean and correct.

From plugin
claude-night-market
343200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill git-workspace-review --agent claude-code

SKILL.md

git-workspace-review.SKILL.md
name: git-workspace-review
description: Verifies workspace state and staged changes as a read-only preflight. Use before commits or PRs to confirm staged set is clean and correct.
alwaysApply: false
category: workspace-ops
tags:
- git
- preflight
- status
- diff
- staged
tools: []
complexity: low
estimated_tokens: 500
modules:
- modules/git-commands.md
role: library

Git Workspace Review

When NOT To Use

  • Writing the commit message (use `sanctum:commit-messages`)
  • Running the full pre-PR gate (use `sanctum:pr-prep`)

Verification

Run `git status` after review to verify workspace state matches expectations.

Testing

Run `pytest plugins/sanctum/tests/test_git_workspace_review.py` to validate review workflow.

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

1. `git-review:repo-confirmed` 2. `git-review:status-overview` 3. `git-review:code-quality-check` 4. `git-review:diff-stat` 5. `git-review:diff-details`

Mark each item as complete as you finish the corresponding step.

Step 1: Confirm Repository (`repo-confirmed`)

Run `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`)

Analyze 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`)

Run `make lint` from the repository root to validate code quality before committing. It checks ruff format, runs the per-plugin ruff check, and runs bandit. It rewrites nothing: a check that edits the tree cannot report the diff it was asked to find. When it fails it names `make fix`, which is the mutating pair (`ruff format` plus `ruff check --fix`). The root Makefile defines no `format` target, and the plugin Makefiles that define one only apply inside their own directory.

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`)

Run `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.

When sem is available (see `leyline:sem-integration`), also run `sem diff --format plain --staged` to display an entity-level summary alongside the stat output. This shows which functions, classes, and methods changed rather than just line counts.

Step 5: Review Detailed Diff (`diff-details`)

Run `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

Downstream workflows rely on this context without re-running git.

  • [ ] The branch name and upstream are recorded from `git status -sb`
  • [ ] `git diff --cached --stat` lists exactly the files intended for

the next commit, with nothing intended left unstaged

  • [ ] `make lint` exits 0, or each failure it reports is fixed or

named to the user

  • [ ] The key themes of the staged diff are written down for the

summary that follows

Supporting Modules

  • [Git commands reference](modules/git-commands.md) - diff, status, branch operations for sanctum workflows

Troubleshooting

If pre-commit hooks block a commit, resolve the reported issues instead of using `--no-verify`. `make lint` fixes styling automatically and surfaces the logical failures that remain. If merge conflicts occur, use `git merge --abort` to return to a clean state before retrying.

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about git-workspace-review.

Which coding agents can use git-workspace-review?
git-workspace-review installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.