slack-auth-1770276413/.claude/commands/commit-all.md
jordan 5812d7a868
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Initialize project from skeleton template
2026-02-05 07:26:54 +00:00

1.3 KiB

description argument-hint allowed-tools
Check git status, verify .gitignore, stage everything safe, commit and push <commit message> Bash, Read, Write, Edit, Glob, Grep

Commit and push all changes with message: $ARGUMENTS

Instructions

Phase 1: Audit What's Changed

git status
git diff --stat
git diff --cached --stat

Phase 2: Security Check

Scan for files that should NEVER be committed:

  • .env files (except .env.example)
  • *.pem, *.key, *.p12, *.pfx
  • credentials.json, service-account*.json
  • .envault/ directory
git diff --cached --name-only | xargs grep -l -E "(api_key|apikey|secret|password|token)\s*[:=]\s*['\"][^'\"]+['\"]" 2>/dev/null || true

Phase 3: Verify .gitignore

Check that .gitignore covers secrets, dependencies, build artifacts.

Phase 4: Stage and Commit

git add -A
git diff --cached --name-only | grep -E "\.(env|pem|key)$" && echo "WARNING: Sensitive files staged!" || true
git commit -m "$ARGUMENTS"

Phase 5: If Commit Fails

If pre-commit hooks fail:

  1. Fix the issues
  2. Re-stage: git add -A
  3. Retry commit (max 3 times)

Phase 6: Push

git push origin HEAD

Safety Rules

NEVER commit: .env with real values, private keys, credentials, files > 50MB. ALWAYS verify .gitignore before staging.