semantic-commit

semantic-commit is a skill for Claude Code from AndrewDongminYoo/cc-agents-kit. It costs 50 tokens per session (3,567 once invoked), scanned A, original, Apache-2.0.

A Git workflow for splitting mixed code changes into separate conventional commits. Conventional commits use a predictable format such as feat, fix, or test to describe each change.

In plain words
What is it for?
Use it to inspect a full Git diff, group files by purpose, and create clean commits after a multi-part coding session.
Why use it?
It prevents unrelated edits from being bundled into one hard-to-review commit. It also helps preserve staged work and checks the changes before each commit.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the repo-gate plugin — 6 skills shipped together

Good fit Use it to inspect a full Git diff, group files by purpose, and create clean commits after a multi-part coding session.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andrewdongminyoo/cc-agents-kit/semantic-commit
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.

Any agent
npx skills add AndrewDongminYoo/cc-agents-kit --skill semantic-commit
Clone the repo
git clone --depth 1 https://github.com/AndrewDongminYoo/cc-agents-kit

Made for: Claude Code.

Or install repo-gate, the plugin that ships this one along with the rest of its 6 skills.

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 semantic-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/andrewdongminyoo/cc-agents-kit/semantic-commit/github.svg)](https://agentmods.dev/skills/andrewdongminyoo/cc-agents-kit/semantic-commit)
Your own site
<a href="https://agentmods.dev/skills/andrewdongminyoo/cc-agents-kit/semantic-commit"><img src="https://agentmods.dev/badge/skills/andrewdongminyoo/cc-agents-kit/semantic-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 semantic-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/andrewdongminyoo/cc-agents-kit/semantic-commit"><img src="https://agentmods.dev/badge/skills/andrewdongminyoo/cc-agents-kit/semantic-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,567 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.00050 $0.03567
Opus 5.5 $0.00020 $0.01427
Sonnet 5.5 $0.00010 $0.00713
Haiku 4.5 $0.00005 $0.00357

Measured 6d ago against content hash 163b19819e46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

semantic-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 6d 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.

plugins/repo-gate/skills/semantic-commit/SKILL.md · 248 lines

How it starts

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

Semantic Commit

Split work-in-progress changes into clean, reviewable conventional commits, verifying before each commit.

Applicability

Use when:

  • Multiple unrelated changes are unstaged/staged together
  • User asks for "semantic commits", "logical commits", or "커밋 분리"
  • After a multi-item implementation session before pushing

Skip when:

  • There is only one logical change (just commit it directly)
  • User explicitly asks for a single combined commit

Steps

1. Understand the Full Diff

Run in parallel:

git status
git diff HEAD
git diff --cached

Read each changed file if the diff alone is insufficient to determine intent. Treat the existing index as owned work. Do not reset, unstage, or replace it without explicit approval.

Save the change you are about to split as one patch, so Step 4 can tell your hunks from anyone else's:

git diff HEAD --binary --no-textconv > <scratch>/planned.patch
git diff --cached --binary --no-textconv > <scratch>/staged.patch          # HEAD to the index as found
git diff --binary --no-textconv > <scratch>/unstaged.patch                 # the index as found to the working tree
git status --porcelain --untracked-files=all                               # lists every untracked file, also inside new directories
git diff --no-index --binary --no-textconv /dev/null <untracked-file> >> <scratch>/planned.patch   # once per untracked file; exits 1 by design

git diff HEAD compares HEAD with the working tree, so a line that was staged and later changed back in the working tree is in the index but not in planned.patch, and committing the index first leaves a later group to stage the reversal. staged.patch and unstaged.patch record both steps from HEAD through the index to the working tree, so every line a group can stage appears in one of the three patches, and all three count as planned in Step 4. git diff HEAD also leaves untracked files out, and plain git status --porcelain shows a new directory as one ?? dir/ line; the --no-index form records each untracked file with its content and mode. Every patch in this skill is built with --binary --no-textconv: without --binary a changed binary file reads only Binary files differ, and a repository's textconv driver replaces the real bytes with converted text that git apply rejects.

Read the full file on GitHub · 248 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. 6d ago Changed · +49 lines 163b19819e46
  2. 1mo ago First seen · 199 lines · 50 tokens per session scan A 2fa8375c791f

Subscribe to this mod's changes

semantic-commit is a skill published in the GitHub repository AndrewDongminYoo/cc-agents-kit (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 50 tokens to every session and 3,567 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

claude-code-bash-patterns

Claude Code Bash tool patterns with hooks, automation, git workflows. Use for PreToolUse hooks, command chaining, CLI orchestration, custom commands, or encountering bash permissions, command failures, security guards, hook configurations.

secondsky/claude-skills · 52 tokens

review

Review a change with what this repository knows about it — who depends on the file, which tests cover it, what broke here before, and what the repo has written down. Use before approving a diff, opening a PR, or when asked to review.

ArcticFox2029/chamnan · 51 tokens

global-commit

Create a git commit following Conventional Commits specification.

rgomezcasas/dotfiles · 13 tokens

branch-and-worktree-workflow

Isolates feature work in its own branch or worktree and integrates it cleanly when done. Use this when starting work that should not disturb the current workspace, when several efforts must proceed in parallel on one repository, or when implementation is finished and the change needs merging, rebasing, or splitting…

cbrock84/headcount · 70 tokens

precommit

Pre-commit checks — lint:fix -> build -> test.

sd0xdev/sd0x-harness · 15 tokens

next-step

Change-aware next step advisor. Use when: user asks what to do next, workflow progression is unclear, session just started with dirty worktree. Not for: executing the suggested command (user decides), auto-loop decisions (hooks handle that). Output: findings-based suggestions or session summary with commit seed.

sd0xdev/sd0x-harness · 63 tokens