Git prompts
--- name: git-guardrails-claude-code description: Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code. --- # Setup Git Guardrails Sets up a PreToolSKILL.md
Git Guardrails Skill
Install a Claude Code PreToolUse hook that blocks destructive git commands (push, reset --hard, clean -f, branch -D) before they ever execute.
--- name: using-git-worktrees description: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback --- # Using Git Worktrees ## Overview Ensure work happens in an isolated workspace. Prefer your pSKILL.md
Git Worktrees Skill
Ensure work happens in an isolated workspace: detect existing isolation first, prefer the harness's native tools, fall back to git worktree, with consent.
--- name: finishing-a-development-branch description: Use when implementation is complete, all tests pass, and you need to decide how to integrate the work --- # Finishing a Development Branch ## Overview **Core principle:** Verify tests → Detect environment → Present options → Execute choice → Clean up. **Announce at start:** "I'm usSKILL.md
Finishing a Branch Skill
The end-of-branch ritual: verify the full test suite is green, detect the worktree situation, then present integration options instead of assuming a merge.
--- name: resolving-merge-conflicts description: "Use when you need to resolve an in-progress git merge/rebase conflict." --- 1. **See the current state** of the merge/rebase. Check git history, and the conflicting files. 2. **Find the primary sources** for each conflict. Understand deeply why each change was made, and what the originalSKILL.md
Resolving Merge Conflicts Skill
Resolve merge and rebase conflicts by intent: trace each side to its commits, PRs, and tickets, preserve both goals, and never invent new behaviour.
--- name: setup-pre-commit description: Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing. --- # Setup Pre-Commit Hooks ## What This Sets Up - **HuskSKILL.md
Setup Pre-Commit Skill
Set up Husky pre-commit hooks with lint-staged and Prettier, plus typecheck and test steps, adapted to whichever package manager the repo uses.