claudeframework: Skill for Claude Code

.claude/skills/commit/SKILL.md

commit is a skill for Claude Code from dixus/claudeframework. It costs 21 tokens per session (1,194 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md.

This is dixus/claudeframework's own configuration. It tells Claude Code how to work on claudeframework itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claudeframework configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dixus/claudeframework. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dixus/claudeframework/main/.claude/skills/commit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dixus/claudeframework

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/dixus/claudeframework/commit/github.svg)](https://agentmods.dev/skills/dixus/claudeframework/commit)
Your own site
<a href="https://agentmods.dev/skills/dixus/claudeframework/commit"><img src="https://agentmods.dev/badge/skills/dixus/claudeframework/commit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/dixus/claudeframework/commit"><img src="https://agentmods.dev/badge/skills/dixus/claudeframework/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00021 $0.01194
Opus 5.5 $0.00008 $0.00478
Sonnet 5.5 $0.00004 $0.00239
Haiku 4.5 $0.00002 $0.00119

Measured 2mo ago against content hash 545cedce66c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo ago.

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. 2mo ago 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 1mo ago), licensed MIT. It adds 21 tokens to every session and 1,194 once invoked, about $0.0001 per session on Opus 5.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.