Skip to content
/commitStable

Creates conventional commits with proper formatting, staged file analysis, and hook compliance.

GitWorkflowΒ· 1 min read

Quick import: Download the .md file and save it to .claude/commands/ (Claude Code), .cursorrules (Cursor), or paste as a system prompt in ChatGPT, Gemini, or any LLM API.

#What it does

The /commit skill creates well-formatted conventional commits. It analyzes your staged changes, drafts a descriptive message, and handles pre-commit hooks.

#How to use

bash
/commit

#What it does automatically

  1. Runs git status and git diff to understand all changes
  2. Checks recent commit history for message style consistency
  3. Drafts a commit message following conventional commit format
  4. Stages relevant files (avoids secrets and large binaries)
  5. Creates the commit with proper formatting
  6. Handles pre-commit hook failures gracefully

#Commit format

<type>: <description>

Co-Authored-By: Claude <[email protected]>

Types: feat, fix, refactor, docs, test, chore, perf, ci

#Smart features

  • Detects .env files and warns before staging
  • Follows your repository's existing commit style
  • Never amends existing commits (creates new ones)
  • Handles hook failures by fixing issues and retrying
Orel OhayonΒ·
View all skills