cf-commit

cf-commit is a skill for Claude Code from dinhanhthi/coding-friend. It costs 42 tokens per session (977 once invoked), scanned A, original, MIT.

A Git commit assistant that examines current changes and creates a conventional commit. A commit is a saved group of changes in a Git repository.

In plain words
What is it for?
Use it to analyze modified files, separate task-related changes, and stage and commit the appropriate work.
Why use it?
It helps identify which changes belong to the current task and keeps unrelated work out of the commit. It also uses the conversation context when reviewing the changes.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to analyze modified files, separate task-related changes, and stage and commit the appropriate work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dinhanhthi/coding-friend/cf-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 dinhanhthi/coding-friend --skill cf-commit
Clone the repo
git clone --depth 1 https://github.com/dinhanhthi/coding-friend

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-commit/github.svg)](https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-commit)
Your own site
<a href="https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-commit"><img src="https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-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 cf-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/dinhanhthi/coding-friend/cf-commit"><img src="https://agentmods.dev/badge/skills/dinhanhthi/coding-friend/cf-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 977 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.00042 $0.00977
Opus 5.5 $0.00017 $0.00391
Sonnet 5.5 $0.00008 $0.00195
Haiku 4.5 $0.00004 $0.00098

Measured 1mo ago against content hash 2b6497536444, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cf-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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/analyze-changes.sh, scripts/scan-secrets.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugin-antigravity/skills/cf-commit/SKILL.md · 106 lines

How it starts

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

/cf-commit

Create a commit for the current changes. Hint: $ARGUMENTS

Workflow

Step 0: Custom Guide

bash "<plugin-root>/lib/load-custom-guide.sh" cf-commit

If the block above printed anything, apply only the ## Before, ## Rules, and ## After sections; if it shows the raw command instead of output, re-run that exact load-custom-guide.sh fence now.

Step 1: Analyze Changes

bash "<plugin-root>/skills/cf-commit/scripts/analyze-changes.sh"

Step 2: Identify Conversation-Related Changes

Review the current conversation to understand what task was performed and which files were modified as part of that task.

  • Prioritize changes from the current conversation — files you edited or created during this session are the primary candidates for this commit
  • Separate unrelated changes — if git status shows files that were NOT part of the current task, do NOT include them
  • If ALL changes are from the current conversation, proceed normally
  • If there is a mix, clearly tell the user which files you will stage and which you will skip (and why)

Step 3: Stage & Scan

  • Stage only files relevant to the current conversation's task
  • Do NOT stage unrelated changes from other work
  • Do NOT stage .env, credentials, or secrets
  • Do NOT use git add . or git add -A

Secret scan — after staging, check for accidental secrets:

bash "<plugin-root>/skills/cf-commit/scripts/scan-secrets.sh"

The script prints SECRETS=<count> and, if SECRETS > 0, shows matching lines with context.

If SECRETS > 0:

  1. Review each match — variable names like getApiKey() or TOKEN_TYPE are OK, actual secret values are NOT
  2. If real secrets found: unstage the file (git reset HEAD <file>), suggest adding to .gitignore
  3. If all matches are false positives (code references, not actual secrets): proceed

Step 4: Review Check

If no /cf-review was run in the current conversation, show a soft suggestion:

No review found in this session — run /cf-review first? (press Enter to skip and commit anyway)

Read the full file on GitHub · 106 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed 2b6497536444
  2. 2mo ago Changed · -4 lines a3cd01e879e7
  3. 3mo ago First seen · 110 lines · 42 tokens per session scan A a316d63cfc1e

Subscribe to this mod's changes

cf-commit is a skill published in the GitHub repository dinhanhthi/coding-friend (4 stars, last pushed 14d ago), licensed MIT. It adds 42 tokens to every session and 977 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

cf-commit compared with skills from other repositories

cf-commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cf-commitdinhanhthi/coding-friendSkill414d agoMITA42Claude Code
workx-cmd/x-cmdSkill4.8k8d agoApache-2.0A29Claude Code, Codex
commitclacky-ai/openclackySkill1.2ktodayMITA0Claude Code, Codex
devops-pipelineluongnv89/skillsSkill149todayMITA65Claude Code
auto-pushluongnv89/skillsSkill149todayMITA46Claude Code
doris-repo-reviewapache/doris-skillsSkill525d agoApache-2.0A200Claude Code, Codex
doris-debug-importapache/doris-skillsSkill525d agoApache-2.0A58Claude Code, Codex