Commit

Create a well-formatted conventional commit with proper message structure. Use when ready to commit changes.

joris887 4f146f7 1.1 KB Updated

File contents


commit

Create a conventional commit for staged changes.

1. Review Changes

git status
git diff --staged

2. Determine Commit Type

Based on changes, select appropriate type:

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation only
  • style: Formatting, no code change
  • refactor: Code restructuring
  • perf: Performance improvement
  • test: Adding/updating tests
  • build: Build system or dependency changes
  • ci: CI configuration changes
  • chore: Maintenance tasks

3. Generate Commit Message

Format:

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

<detailed body if needed>

Co-Authored-By: Claude <noreply@anthropic.com>

Arguments provided: $ARGUMENTS

4. Execute Commit

git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>

<body>

Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"

5. Verify

git log -1 --oneline

joris887/exosuit/tree/main/.claude/skills/commit commit 4f146f7fb5

Frequently asked questions

npx skillmds@latest add joris887/commit