Creates git commits with conventional format, branch protection, and pre-commit validation. Use when committing changes, staging files, generating commit messages, saving changes, or pushing changes.
View on GitHubyonatangross/orchestkit
ork
January 25, 2026
Select agents to install to:
npx add-skill https://github.com/yonatangross/orchestkit/blob/main/skills/commit/SKILL.md -a claude-code --skill commitInstallation paths:
.claude/skills/commit/# Smart Commit Simple, validated commit creation. Run checks locally, no agents needed for standard commits. ## Quick Start ```bash /commit ``` ## Workflow ### Phase 1: Pre-Commit Safety Check ```bash # CRITICAL: Verify we're not on dev/main BRANCH=$(git branch --show-current) if [[ "$BRANCH" == "dev" || "$BRANCH" == "main" || "$BRANCH" == "master" ]]; then echo "STOP! Cannot commit directly to $BRANCH" echo "Create a feature branch: git checkout -b issue/<number>-<description>" exit 1 fi ``` ### Phase 2: Run Validation Locally Run every check that CI runs: ```bash # Backend (Python) poetry run ruff format --check app/ poetry run ruff check app/ poetry run mypy app/ # Frontend (Node.js) npm run format:check npm run lint npm run typecheck ``` Fix any failures before proceeding. ### Phase 3: Review Changes ```bash git status git diff --staged # What will be committed git diff # Unstaged changes ``` ### Phase 4: Stage and Commit ```bash # Stage files git add <files> # Or all: git add . # Commit with conventional format git commit -m "<type>(#<issue>): <brief description> - [Change 1] - [Change 2] Co-Authored-By: Claude <noreply@anthropic.com>" # Verify git log -1 --stat ``` ## Commit Types | Type | Use For | |------|---------| | `feat` | New feature | | `fix` | Bug fix | | `refactor` | Code improvement | | `docs` | Documentation | | `test` | Tests only | | `chore` | Build/deps/CI | ## Rules 1. **Run validation locally** - Don't spawn agents to run lint/test 2. **NO file creation** - Don't create MD files or documentation 3. **One logical change per commit** - Keep commits focused 4. **Reference issues** - Use `#123` format in commit message 5. **Subject line < 72 chars** - Keep it concise ## Quick Commit For trivial changes (typos, single-line fixes): ```bash git add . && git commit -m "fix(#123): Fix typo in error message Co-Authored-By: Claude <noreply@anthropic.com>" ``` ## Related Skills - create-pr: Create pull reques