/ork:commit [message]from ork
Creates Conventional Commits with scope detection, co-author lines, and hook compliance. Blocks secrets and generated-only files. Supports amend, push, and stash modes.
Ships in ork. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Host-neutral workflow. Invoke by skill name (commit). Claude Code slash routing, YAML hook loaders, and .claude/chain live in references/claude-code.md.
Simple, validated commit creation. Run checks locally, no agents needed for standard commits.
Note: If
disableSkillShellExecutionis enabled (CC 2.1.91), the git repository check won't run. This skill requires a git repository.
commit
commit fix typo in auth module
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)
Default is "new commit", but voice-flow needs explicit choice when amend / push / stash is wanted:
# Skip when a flag in the invocation makes the mode unambiguous:
# commit --amend → skip, mode=amend
# commit --push → skip, mode=new+push
# commit --stash → skip, mode=stash-first
# ORK_COMMIT_DEFAULT_MODE=new (or amend|push|stash) → skip, use env value
#
# Otherwise, ask:
AskUserQuestion(questions=[{
"question": "How should this commit land?",
"header": "Commit mode",
"options": [
{"label": "New commit (default)", "description": "Create a new commit, leave HEAD intact"},
{"label": "Amend HEAD", "description": "Fold staged changes into the last commit (LOCAL ONLY — refuses if HEAD is published)"},
{"label": "New commit + push", "description": "Commit then `git push` (refuses on protected branches)"},
{"label": "Stash first", "description": "Stash unrelated working-tree changes, then commit only what was already staged"}
]
}])
Mode-specific guards:
git rev-list HEAD..origin/<branch> empty); if it is published, refuse and recommend "New commit" instead.main/master/dev, abort.git stash push -k -m "ork:commit autostash" (keep-index), commit, then git stash pop after push success.Before any guard, run git rev-parse --is-inside-work-tree. If it fails, or
if the Bash tool is not available in this session, say so in one sentence and
produce the commit message text only. Skip Phases 1 to 3 entirely.
Never print a branch guard, a validation status, or any other repository fact
you did not observe. Measured with claude plugin eval on 2026-09-12: in a
sandbox with no repository and no Bash, this skill rendered a "pre-commit
guard" box claiming the branch was main and protected. Nothing had been
checked. A message-only answer that says "I could not verify branch or lint
state" is correct; an invented guard is a defect.
# 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
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.
git status
git diff --staged # What will be committed
git diff # Unstaged changes
Before committing, check for the branch activity ledger at .claude/agents/activity/{branch}.jsonl.
If it exists and has entries since the last commit, include them in the commit message:
.claude/agents/activity/{branch}.jsonl (one JSON object per line)ts is after the last commit timestamp (git log -1 --format=%cI)duration_ms < 5000 (advisory-only agents go in PR, not commits)Co-Authored-By trailers: Co-Authored-By: ork:{agent} <[email protected]>If the ledger doesn't exist or is empty, skip this step — commit normally.
CC 2.1.113 idiom: Multi-line Bash with leading
# intent:comments now shows the full command in the transcript — prefix complex scripts with a one-line intent comment so future readers (and/recapscans) can grep the transcript for what happened without re-reading the diff.
# intent: stage the hook change + its test + built artifacts
# Stage files
git add <files>
# Or all: git add .
# Commit with conventional format (with agent attribution if ledger exists)
git commit -m "<type>(#<issue>): <brief description>
- [Change 1]
- [Change 2]
Agents Involved:
backend-system-architect — API design + data models (2m14s)
security-auditor — Dependency audit (0m42s)
Co-Authored-By: Claude <[email protected]>
Co-Authored-By: ork:backend-system-architect <[email protected]>
Co-Authored-By: ork:security-auditor <[email protected]>"
# Verify
git log -1 --stat
CC 2.1.183 —
attribution.sessionUrl: In web and Remote Control sessions, CC appends a claude.ai session link to commit/PR attribution. Setattribution.sessionUrl: false(/config attribution.sessionUrl=false) to omit it — useful for public repos where the session link should not leak. TheCo-Authored-Bytrailers above are unaffected.
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>]
}))
| Type | Use For |
|---|---|
feat | New feature |
fix | Bug fix |
refactor | Code improvement |
docs | Documentation |
test | Tests only |
chore | Build/deps/CI |
#123 format in commit messageFor trivial changes (typos, single-line fixes):
git add . && git commit -m "fix(#123): Fix typo in error message
Co-Authored-By: Claude <[email protected]>"
Before committing, apply the 5-step gate: Read("../../shared/rules/verification-gate.md"). Run tests fresh. Read the output. Only commit if tests pass. "Should be fine" is not evidence.
Done means all of these hold:
Co-Authored-By: Claude trailer present; per-agent trailers added only when the activity ledger has post-last-commit entriesgit log -1 --stat shows exactly the intended files, no secrets and no generated-only-noise commitork:create-pr: Create pull requests from commitsork:review-pr: Review changes before committingork:fix-issue: Fix issues and commit the fixesork:issue-progress-tracking: Auto-updates GitHub issues with commit progressEach category has individual rule files in rules/ loaded on-demand:
| Category | Rule | Impact | Key Pattern |
|---|---|---|---|
| Atomic Commits | rules/atomic-commit.md | CRITICAL | One logical change per commit, atomicity test |
| Branch Protection | rules/branch-protection.md | CRITICAL | Protected branches, required PR workflow |
| Commit Splitting | rules/commit-splitting.md | HIGH | git add -p, interactive staging, separation strategies |
| Conventional Format | rules/conventional-format.md | HIGH | type(scope): description, breaking changes |
| History Hygiene | rules/history-hygiene.md | HIGH | Squash WIP, fixup commits, clean history |
| Issue Reference | rules/issue-reference-required.md | HIGH | Reference issue #N in commits on issue branches |
| Merge Strategy | rules/merge-strategy.md | HIGH | Rebase-first, conflict resolution, force-with-lease |
| Stacked PRs | rules/stacked-pr-workflow.md | HIGH | Stack planning, PR creation, dependency tracking |
| Stacked PRs | rules/stacked-pr-rebase.md | HIGH | Rebase management, force-with-lease, retargeting |
Total: 9 rules across 8 categories
Load on demand with Read("references/<file>"):
| File | Content |
|---|---|
references/conventional-commits.md | Conventional commits specification |
references/recovery.md | Recovery procedures |
references/claude-code.md (opens in a new tab)references/conventional-commits.md (opens in a new tab)references/recovery.md (opens in a new tab)rules/_sections.md (opens in a new tab)rules/_template.md (opens in a new tab)rules/atomic-commit.md (opens in a new tab)rules/branch-protection.md (opens in a new tab)rules/commit-splitting.md (opens in a new tab)rules/conventional-format.md (opens in a new tab)rules/history-hygiene.md (opens in a new tab)rules/issue-reference-required.md (opens in a new tab)rules/merge-strategy.md (opens in a new tab)rules/stacked-pr-rebase.md (opens in a new tab)rules/stacked-pr-workflow.md (opens in a new tab)scripts/validate-conventional.sh (opens in a new tab)test-cases.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
lowBash${CLAUDE_PLUGIN_ROOT}/hooks/bin/run-hook.mjs skill/commit-convention-loaderThree short reads, in order
npx claudepluginhub yonatangross/orchestkit --plugin ork-alpha82 skills in this plugin
/analyticsLocal OrchestKit usage analytics: agent and skill frequency, hook timing, session replay, cost estimates, model delegation trends. Use when reviewing usage, performance or costs./api-designAPI wire contracts for REST and GraphQL: resource shape, versioning and deprecation, RFC 9457 errors, OpenAPI. Use when designing an endpoint contract. Not for runtime code (use python-backend)./architecture-decision-recordNygard-format ADRs: context, decision, consequences, alternatives. Use when writing an ADR or recording an architectural decision.2 plugins ship this exact skill · first indexed Nov 6, 2026
Other plugins' skills for the same job