Grant Commit — Git skill for Claude Code
Grant consent for Claude to run git commit.
How to install Grant Commit
Installs to ~/.claude/commands/friedbotstudio-baseline-grant-commit.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/friedbotstudio/baseline/HEAD/.claude/commands/grant-commit.md -o ~/.claude/commands/friedbotstudio-baseline-grant-commit.md Restart Claude Code, or start a new session, for it to be picked up.
What Grant Commit does
description: Grant consent for Claude to run `git commit`. Workflow-scoped when a workflow is active, else a time window. Required by the Git Commit Guard hook. argument-hint: "[optional note]" allowed-tools: Read, Bash(date:*), Bash(git:*), Write disable-model-invocation: true
Write a consent token to `.claude/state/commit_consent` so the Git Commit Guard hook allows the next `git commit`. The token has three lines: line 1 the **active workflow slug** (empty when no workflow is active)
Alternatives in Git
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- Bulletproof Quick Start Guide — Target Audience: Complete beginners Never used Python/git before 11.1k ★
- CCometixLine — A high-performance Claude Code statusline tool written in Rust with Git integration and real-time usage tracki 2.4k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Grant Push
Grant consent for Claude to run git push. Valid for 5 minutes. Required by the Git Commit Guard hook on protec
Aegis Approval Gate
PreToolUse hook that blocks destructive Bash ops (rm -rf, git push --force, DROP TABLE, etc.) until an active
Thumbgate Protect
Show this repo's branch/release governance and grant a scoped, time-limited approval for an action that touche
Review All Day
Time-window diff review sweep — scan every commit in a configurable merge-window-aligned span, classify each d
Add Reasoning To PRs
Claude Code hook that writes a forward-only why-block (decisions, trade-offs, assumptions, limitations) into y
Setup Git Guard
Install git safety guard hook at project or user scope
Related Agents
Loadguard Worker
Default loadguard worker — implement, refactor, debug and test the hook, the CLI and the decision logic. Works
Review Outcomes
Periodic post-ship outcome review — grade shipped merges against the fixes and reverts that followed, and agai
Git Commit Agent
A dispatchable committer for when direct access to the scoped_git_commit placeable isn't available — verifies