/workflows-development:git-preflightfrom workflows-development
Pre-commit and pre-edit git checklist: reviews staged diffs for unintended changes, secrets, and debug output; detects macOS case-rename traps; verifies remote branch sync before editing.
Ships in workflows-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run before committing (commit) or before editing a feature branch (branch). Default (all) runs both.
branch — Before Editing a Feature BranchVerify the local branch is in sync with remote before making any changes:
git fetch origin
git log --oneline HEAD..origin/$(git branch --show-current)
If output is non-empty, the remote is ahead — pull before editing:
git pull --ff-only
If the branch has diverged, report to user and stop. Do not start editing on a stale branch.
commit — Before Committinggit diff --staged
Check for:
git addIf unintended changes are staged, unstage the file and re-add only the intended hunks:
git restore --staged <file>
git add -p <file>
If any staged files look like case-only renames (e.g., foo.md → FOO.md), verify git actually tracked it:
git status
On macOS (case-insensitive FS), git mv foo.md FOO.md is a no-op. The correct approach:
git mv foo.md tmp.md && git mv tmp.md FOO.md
git branch --show-current
Confirm you're on the intended feature branch, not main or master. If on main/master, create a feature branch before committing unless this is intentional.
Report pass/fail for each check:
Git Preflight — commit
✓ Staged diff reviewed — N files, no unintended changes
✓ No case-rename issues detected
✓ On branch feat/my-feature (not main)
Ready to commit.
Or with issues:
Git Preflight — commit
✗ Staged diff contains lines from before current session in src/main.py
→ Run: git restore --staged src/main.py && git add -p src/main.py
✓ No case-rename issues detected
✓ On branch feat/my-feature
Fix staged diff before committing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub specterops/skills --plugin workflows-development6 skills in this plugin
/git-cleanupRepository hygiene — prune merged/stale branches, detect orphans, repo health checks. Use when cleaning up branches, checking repo health, or scanning projects./git-mergeComplex git operations — merge conflict resolution, cherry-picks, rebases. Use when merging branches, resolving conflicts, cherry-picking commits, or rebasing./readme-generationGenerate a professional README.md for a project. Works on local codebases and remote GitHub repos. Use when a project needs a README, when an existing README is outdated, or when documenting someone else's tool./scaffold-pythonScaffold a new Python project with a src layout, linting, and tests. Prefer uv-based setup and packaging; if uv is unavailable, warn the user, request approval, and use a fallback bootstrap path./scaffold-securityScaffold a security tool project with CLI, logging, and target handling. Prefer uv-based setup and packaging; if uv is unavailable, warn the user, request approval, and use a fallback bootstrap path.Other plugins' skills for the same job