brainy/docs/tools/claude-commit/dotfiles
David Snelling 55b171bd44 feat(safety): enhance claude-commit with mandatory review and safety features
Added comprehensive safety features to prevent accidental commits and ensure
user review of all generated commit messages:

Safety enhancements:
- Added mandatory review warning with clear visual indicators
- Implemented double confirmation for all commit operations
- Added option to regenerate commit message if not satisfied
- Shows edited message for review after modifications
- Added explicit "no auto-push" reminders after commits
- Created ~/.claude-commit.conf for safety preferences

Documentation updates:
- Updated CLAUDE.md with clear commit workflow for Claude Code
- Added safety features section to tool documentation
- Clarified that manual review is always required
- Documented the review-approve-commit-push workflow

These changes ensure users always have full control over commit messages
and prevent accidental commits or pushes without explicit approval.
2025-08-04 10:21:52 -07:00
..
bin feat(safety): enhance claude-commit with mandatory review and safety features 2025-08-04 10:21:52 -07:00
install.sh feat(tools): add claude-commit AI-powered git commit tool 2025-08-04 10:14:33 -07:00
README.md feat(tools): add claude-commit AI-powered git commit tool 2025-08-04 10:14:33 -07:00
setup-claude-commit.sh feat(tools): add claude-commit AI-powered git commit tool 2025-08-04 10:14:33 -07:00

Dotfiles - Claude Commit Setup

This repository contains my development environment configuration, including the Claude AI-powered git commit message generator.

Quick Setup

curl -sSL https://raw.githubusercontent.com/yourusername/dotfiles/main/install.sh | bash

Option 2: Manual Install

# Clone the repository
git clone https://github.com/yourusername/dotfiles.git ~/dotfiles

# Run the setup script
cd ~/dotfiles
./install.sh

Option 3: Just Claude Commit

If you only want the git cc command:

# Download and run the setup script
curl -sSL https://raw.githubusercontent.com/yourusername/dotfiles/main/setup-claude-commit.sh | bash

What's Included

Claude Commit (git cc)

An AI-powered git commit message generator that:

  • Analyzes your git diff
  • Generates Conventional Commit formatted messages
  • Works in any git repository
  • No configuration needed

Usage:

# Make your changes
git cc  # Claude generates the commit message

Syncing Between Computers

First Time Setup (on new computer)

  1. Run the install script (see Quick Setup above)
  2. That's it! The git cc command is now available

Keeping in Sync

To update to the latest version on any computer:

sync-claude-commit

Or manually:

curl -sSL https://raw.githubusercontent.com/yourusername/dotfiles/main/bin/claude-commit > ~/.local/bin/claude-commit
chmod +x ~/.local/bin/claude-commit

File Structure

dotfiles/
├── README.md           # This file
├── install.sh          # Main installation script
├── setup-claude-commit.sh  # Standalone claude-commit installer
└── bin/
    └── claude-commit   # The actual claude-commit script

Requirements

  • Git
  • Claude CLI (claude command)
  • Bash or Zsh

Conventional Commit Format

The tool generates messages following this format:

<type>(<scope>): <description>

<body>

<footer>

Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore

Troubleshooting

"claude: command not found"

Make sure Claude CLI is installed:

# Install Claude CLI if not present
# Visit: https://claude.ai/code

"git cc: command not found"

Make sure ~/.local/bin is in your PATH:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

License

MIT