formatting-commits

formatting-commits is a skill for Claude Code, Codex from lijinnair/claude-code-skillforge. It costs 68 tokens per session (480 once invoked), scanned A, original, MIT.

A command that turns staged Git changes, or a description of changes, into a ready-to-use commit message following Conventional Commits. Git is a system for tracking code changes, and staged changes are the edits selected for the next commit.

In plain words
What is it for?
Use it to write messages for features, fixes, documentation, refactors, tests, formatting, or maintenance changes, with an optional scope, body, or breaking-change note.
Why use it?
It removes the guesswork from naming commits consistently and records what changed and why in a format tools can understand.

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/lijinnair/claude-code-skillforge/formatting-commits
Any agent
npx skills add lijinnair/claude-code-skillforge --skill formatting-commits
Clone the repo
git clone --depth 1 https://github.com/lijinnair/claude-code-skillforge

Made for: Claude Code, Codex.

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 formatting-commits

README.md
[![agentmods](https://agentmods.dev/badge/skills/lijinnair/claude-code-skillforge/formatting-commits.svg)](https://agentmods.dev/skills/lijinnair/claude-code-skillforge/formatting-commits)
Your own site
<a href="https://agentmods.dev/skills/lijinnair/claude-code-skillforge/formatting-commits"><img src="https://agentmods.dev/badge/skills/lijinnair/claude-code-skillforge/formatting-commits.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 480 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.00068 $0.00480
Opus 5 $0.00034 $0.00240
Sonnet 5 $0.00014 $0.00096
Haiku 4.5 $0.00007 $0.00048

Measured 5d ago against content hash e413718271f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

formatting-commits 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 5d 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.

examples/formatting-commits/SKILL.md · 69 lines

What it actually says

Git Commit Formatting SOP

Execution Steps

Step 1: Gather Staged Changes

If the user has not provided a description, run:

!`git diff --staged`

to capture the actual code changes as context.

Step 2: Classify the Change Type

Determine the correct Conventional Commits type based on the diff or description:

  • feat — A new feature
  • fix — A bug fix
  • docs — Documentation only changes
  • style — Formatting, missing semi-colons, etc.
  • refactor — Code change that is neither a fix nor a feature
  • chore — Build process, dependency updates
  • test — Adding or fixing tests

Step 3: Extract Scope

Identify the affected module, component, or file area (e.g., auth, api, ui). Use (scope) in the commit header.

Step 4: Write the Commit Message

Compose the full commit message following this structure:

<type>(<scope>): <short imperative summary under 72 chars>

<optional body: what changed and why, not how>

<optional footer: BREAKING CHANGE: ... or Closes #issue>

Examples:

Input: Added user authentication with JWT tokens Output:

feat(auth): implement JWT-based authentication

Add login endpoint and token validation middleware

Input: Fixed bug where dates displayed incorrectly in reports Output:

fix(reports): correct date formatting in timezone conversion

Use UTC timestamps consistently across report generation

Input: Updated dependencies and refactored error handling Output:

chore: update dependencies and refactor error handling

- Upgrade lodash to 4.17.21
- Standardize error response format across endpoints

Step 5: Deliver

Output the final commit message in a single code block, ready to copy-paste into the terminal.

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. 5d ago First seen · 69 lines · 68 tokens per session scan A e413718271f0

Subscribe to this mod's changes

formatting-commits is a skill published in the GitHub repository lijinnair/claude-code-skillforge (1 stars, last pushed 5mo ago), licensed MIT. It adds 68 tokens to every session and 480 once invoked, about $0.0003 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

apm-issue-autopilot

Use this skill to drive any open microsoft/apm issue (bug, feature, docs, refactor, perf) from raw intake to a mergeable PR with triage as the central, paramount gate. Run the apm-triage-panel rubric per issue first, then present ONE consolidated triage review for the whole batch and escalate to the maintainer BY…

microsoft/apm · 238 tokens

setup-pre-commit

在当前仓库中设置 Husky pre-commit 钩子,集成 lint-staged(Prettier)、类型检查和测试。当用户想要添加 pre-commit 钩子、设置 Husky、配置 lint-staged、或添加提交时的格式化/类型检查/测试时使用。.

devcxl/mattpocock-skills-zh · 70 tokens

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

changelog-generator

智能变更日志生成器 - 自动分析Git提交历史,生成符合规范的CHANGELOG.md。支持语义化版本管理、多种输出格式、增量更新和GitHub/GitLab集成。.

peterfei/ai-agent-team · 48 tokens

pr-to-video

turn a GitHub pull request (a PR URL like github.com/ / /pull/ , an / # ref, or 'this PR' in a checked-out repo) into a code-change explainer video, up to 3 min (sweet spot 30-90s) — changelog, feature reveal, fix, or refactor walkthrough, rendered from the diff / commits / files. The input is a CODE CHANGE read via…

J-StaR-Films-Studios/VibeCode-Protocol-Suite · 246 tokens

git-commit-generation

Use when generating clear, conventional git commit messages based on staged changes or recent repository diffs.

J-StaR-Films-Studios/VibeCode-Protocol-Suite · 24 tokens