claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Verifies workspace state and staged changes as a read-only preflight. Use before commits or PRs to confirm staged set is clean and correct.
$ npx -y skills add athola/claude-night-market --skill git-workspace-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/git-workspace-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Verifies workspace state and staged changes as a read-only preflight. Use before commits or PRs to confirm staged set is clean and correct.
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
model_hint: fast
estimated_tokens: 500
modules:
- modules/git-commands.md
hooks:
PreToolUse:
- matcher: Bash
command: "# Log git analysis commands\nif jq -r '.tool_input.command // empty' | grep -qE\
\ \"git (status|diff|log|show|branch)\"; then\n echo \"[skill:git-workspace-review]\
\ Git analysis initiated: $(date)\" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/skill-audit.log\n\
fi\n"
once: true
Stop:
- command: 'echo "[skill:git-workspace-review] === Analysis completed at $(date)
===" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/skill-audit.log
'
role: library1. [Usage](#usage) 2. [Required Progress Tracking](#required-progress-tracking)
Run `git status` after review to verify workspace state matches expectations.
Run `pytest plugins/sanctum/tests/test_git_workspace_review.py` to validate review workflow.
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.
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.
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.
Analyze the `git status -sb` output for staged and unstaged changes. Stage or unstage files so that subsequent workflows operate on the intended diff.
Run `make lint` from the repository root to validate code quality before committing. It formats with ruff, applies the per-plugin check with autofix, and runs bandit, so no separate format step is needed. 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.
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.
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.
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.
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.
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.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.