Git Commit

Use when making git commits directly (not via /commit:new). Ensures safe shell quoting with heredoc format. Triggers on creating commits, staging and committing, any git commit operation.

pproenca Updated

File contents

Git Commit

Always use the commit script or heredoc format. Never use -m "..." with newlines.

Single-line commit

$CLAUDE_PLUGIN_ROOT/scripts/commit.sh "type: description"

Multi-line commit

$CLAUDE_PLUGIN_ROOT/scripts/commit.sh "type: description" "Body explaining WHY.

Additional context if needed."

Alternative: Direct heredoc

git commit -F - <<'EOF'
type: description

Body explaining WHY.
EOF

Never do this

# WRONG - causes shell parsing issues with multiline messages
git commit -m "type: description
body text"

pproenca/dot-claude-old/tree/main/plugins/essential/commit/skills/git-commit commit 3376e21636

Frequently asked questions

npx skillmds@latest add pproenca/git-commit