safe-commit
You are performing a security-reviewed git commit in the ~/.claude backup repo.
Steps
Run
git -C ~/.claude diff --cachedto see what is staged. If nothing is staged, rungit -C ~/.claude statusand stage appropriate files first (respecting .gitignore).Security review — examine every staged change and flag anything that looks like:
- Passwords, secrets, tokens, API keys (hardcoded values, not references to keyfiles)
- Private key material (PEM blocks, SSH keys)
- Personal credentials or auth headers with literal values
- Environment variable assignments that embed a secret value
Decision:
- If any high-risk item is found: stop, tell the user what was found, suggest adding it to
.gitignoreor removing it, and do NOT commit. - If items are low-risk or safe: summarize what will be committed and why it is safe, then proceed with the commit.
- If any high-risk item is found: stop, tell the user what was found, suggest adding it to
Commit with a short, descriptive message. End the commit message with:
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>Ask the user if they want to push to
origin main.