Connectonion commit
Create git commits with good messages. Use when user says "commit", "create commit", or asks to commit changes.
install
source · Clone the upstream repo
git clone https://github.com/openonion/connectonion
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openonion/connectonion "$T" && mkdir -p ~/.claude/skills && cp -r "$T/connectonion/cli/co_ai/skills/builtin/commit" ~/.claude/skills/openonion-connectonion-commit && rm -rf "$T"
manifest:
connectonion/cli/co_ai/skills/builtin/commit/SKILL.mdsource content
Git Commit Skill
Create a well-formatted git commit for staged changes.
Instructions
-
Gather information (run in parallel):
- See what's staged and unstagedgit status
- See exactly what will be committedgit diff --staged
- See recent commit message stylegit log --oneline -5
-
Analyze changes:
- What was changed? (files, functions, features)
- Why was it changed? (bug fix, new feature, refactor)
- Follow the repository's commit message style
-
Draft commit message:
- First line: concise summary under 50 chars
- Focus on "why" not "what"
- Match existing commit style
-
Execute commit:
- Stage relevant files if needed:
git add <files> - Commit with HEREDOC format:
git commit -m "$(cat <<'EOF' Your commit message here EOF )" - Verify with
git status
- Stage relevant files if needed:
Safety Rules
- Do NOT commit .env or credential files
- Do NOT use
unless explicitly asked--amend - Do NOT push unless explicitly asked
- If commit fails, create NEW commit (don't amend)
Example
# Check status and diff git status git diff --staged # Commit git commit -m "$(cat <<'EOF' Fix authentication timeout issue Increased JWT expiry from 1h to 24h to prevent frequent re-authentication during long sessions. EOF )" # Verify git status