commit

A workflow for creating small, automatic checks that run during coding events in Claude Code.

In plain words
What is it for?
It analyzes project changes, separates unrelated work into commits when needed, follows conventional commit message formats, and checks project-specific branch rules.
Why use it?
It helps keep changes organized and consistent by turning project rules into repeatable checks before or after coding actions.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/dixus/claudeframework/commit
Any agent
npx skills add dixus/claudeframework --skill commit
Clone the repo
git clone --depth 1 https://github.com/dixus/claudeframework

Made for: Claude Code, Codex.

Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,194 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.01194
Opus 5 $0.00010 $0.00597
Sonnet 5 $0.00004 $0.00239
Haiku 4.5 $0.00002 $0.00119

Measured yesterday against content hash 545cedce66c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/commit/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create one or more commits from the current working tree changes.

$ARGUMENTS is optional. Pass --all to skip the diff analysis and commit everything as a single commit.

Steps

  1. Run git status to see staged and unstaged changes
  2. Run git diff HEAD (staged + unstaged) to understand the full scope of changes
  3. Analyse the diff for distinct logical concerns — ask: would a reviewer understand this as one coherent change, or are there multiple independent things happening?

If multiple distinct concerns are detected (and --all was not passed):

  • List the concerns found (e.g. "engine logic change", "new test file", "updated README")
  • Propose a split: one atomic commit per concern
  • For each proposed commit: describe what it covers and suggest the message
  • Ask the user to confirm the split or adjust it
  • After confirmation, guide through staging and committing each group in sequence

If a single concern (or --all was passed):

  • Proceed to the next step
  1. Read project commit conventions: Check if .claude/rules/branch-management.md exists. If it does, read it to understand project-specific branch naming and commit message conventions. Then:

    • Run git branch --show-current to get the current branch name
    • Attempt to parse the branch name according to the documented convention to extract a ticket/issue identifier (e.g. regex ^(\d+)\.(Bug|Improvement|Feature)\.([^.]+)\.(.+)$ extracts ticket ID from segment 1)
    • If the full pattern does not match, try a fallback pattern ^(\d+)\.(.+)$ to extract at least the ticket number
    • If a ticket ID is found, note it for use in the commit message (step 8)
    • If no ticket ID can be parsed and the project rules require one, ask the user for the ticket ID before proceeding
    • If no branch-management.md exists, skip this step
  2. Backlog check: if the commit message references a task/PRD identifier (e.g. PRD-17, TASK-5), search for a backlog or tracker file in .claude/input/ that contains that identifier as a heading. If found and the heading does not already have a ✅ marker, add ✅ to the heading and include the file in the commit. Skip this step if no backlog file exists.

  3. Run pre-commit checks in this order — read the commands from CLAUDE.md (skip any not listed): a. Typecheck (e.g. tsc --noEmit) b. Lint (e.g. npm run lint)

    • Do NOT run tests or build here — those are for /4_test, not commit gates
    • If a check fails: report the failure and ask the user whether to fix it first or proceed anyway
  4. Stage the appropriate files:

    • If specific files were agreed for this commit, stage only those: git add <files>
    • If committing everything: git add -A
  5. Compose the commit message using conventional commit format:

    <emoji> <type>(<scope>): <short description>
    
    • Keep the first line under 72 characters
    • Present tense, imperative mood ("add feature" not "added feature")
    • <scope> is optional — use the primary directory or module affected (e.g. scoring, ui, store)

    Type → emoji mapping:

    Type Emoji Use when
    feat New feature or capability
    fix 🐛 Bug fix
    docs 📝 Documentation only
    refactor ♻️ Code restructured, no behaviour change
    test Tests added or updated
    chore 🔧 Build, config, tooling, dependencies
    perf ⚡️ Performance improvement
    style 🎨 Formatting, whitespace, no logic change
    ci 🚀 CI/CD pipeline changes
    revert ⏪️ Reverts a previous commit

    Project-specific ticket suffix: If a ticket ID was extracted in step 4, append #<ticketId> to the end of the commit message. Ensure the # is NOT at the start of the message (git treats leading # as a comment). The final format becomes:

    <emoji> <type>(<scope>): <short description> #<ticketId>
    

    Example: ✨ feat(ui): add loading spinner to search results #1234

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 100 lines · 21 tokens per session scan A 545cedce66c9

Subscribe to this mod's changes

commit is a skill published in the GitHub repository dixus/claudeframework (10 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 1,194 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens