Skill

commit

Creates commits with conventional format and validation. Use when committing changes or generating commit messages.

From ork
Install
1
Run in your terminal
$
npx claudepluginhub yonatangross/orchestkit --plugin ork
Tool Access

This skill is limited to using the following tools:

Bash
Supporting Assets
View in Repository
references/conventional-commits.md
references/recovery.md
rules/_sections.md
rules/_template.md
rules/atomic-commit.md
rules/branch-protection.md
rules/commit-splitting.md
rules/conventional-format.md
rules/history-hygiene.md
rules/issue-reference-required.md
rules/merge-strategy.md
rules/stacked-pr-rebase.md
rules/stacked-pr-workflow.md
scripts/validate-conventional.sh
test-cases.json
Skill Content

Smart Commit

Simple, validated commit creation. Run checks locally, no agents needed for standard commits.

Quick Start

/ork:commit
/ork:commit fix typo in auth module

Argument Resolution

COMMIT_MSG = "$ARGUMENTS"  # Optional commit message, e.g., "fix typo in auth module"
# If provided, use as commit message. If empty, generate from staged changes.
# $ARGUMENTS[0] is the first token (CC 2.1.59 indexed access)

Workflow

Phase 1: Pre-Commit Safety Check

# 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:

# 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

git status
git diff --staged   # What will be committed
git diff            # Unstaged changes

Phase 4: Stage and Commit

# 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

Handoff File

After successful commit, write handoff:

Write(".claude/chain/committed.json", JSON.stringify({
  "phase": "commit", "sha": "<commit-sha>",
  "message": "<commit-message>", "branch": "<branch>",
  "files": [<staged-files>]
}))

Commit Types

TypeUse For
featNew feature
fixBug fix
refactorCode improvement
docsDocumentation
testTests only
choreBuild/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):

git add . && git commit -m "fix(#123): Fix typo in error message

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

Related Skills

  • ork:create-pr: Create pull requests from commits
  • ork:review-pr: Review changes before committing
  • ork:fix-issue: Fix issues and commit the fixes
  • ork:issue-progress-tracking: Auto-updates GitHub issues with commit progress

Rules

Each category has individual rule files in rules/ loaded on-demand:

CategoryRuleImpactKey Pattern
Atomic Commits${CLAUDE_SKILL_DIR}/rules/atomic-commit.mdCRITICALOne logical change per commit, atomicity test
Branch Protection${CLAUDE_SKILL_DIR}/rules/branch-protection.mdCRITICALProtected branches, required PR workflow
Commit Splitting${CLAUDE_SKILL_DIR}/rules/commit-splitting.mdHIGHgit add -p, interactive staging, separation strategies
Conventional Format${CLAUDE_SKILL_DIR}/rules/conventional-format.mdHIGHtype(scope): description, breaking changes
History Hygiene${CLAUDE_SKILL_DIR}/rules/history-hygiene.mdHIGHSquash WIP, fixup commits, clean history
Issue Reference${CLAUDE_SKILL_DIR}/rules/issue-reference-required.mdHIGHReference issue #N in commits on issue branches
Merge Strategy${CLAUDE_SKILL_DIR}/rules/merge-strategy.mdHIGHRebase-first, conflict resolution, force-with-lease
Stacked PRs${CLAUDE_SKILL_DIR}/rules/stacked-pr-workflow.mdHIGHStack planning, PR creation, dependency tracking
Stacked PRs${CLAUDE_SKILL_DIR}/rules/stacked-pr-rebase.mdHIGHRebase management, force-with-lease, retargeting

Total: 9 rules across 7 categories

References

Load on demand with Read("${CLAUDE_SKILL_DIR}/references/<file>"):

FileContent
references/conventional-commits.mdConventional commits specification
references/recovery.mdRecovery procedures
Stats
Parent Repo Stars128
Parent Repo Forks14
Last CommitMar 20, 2026