commit

A workflow that examines staged Git changes, writes a Conventional Commit message, and creates the commit. Git is a tool for tracking code changes, and staged changes are the files selected for the next commit.

In plain words
What is it for?
Use it after implementation work to commit source changes, tests, documentation, configuration, or refactoring with an appropriate commit type and scope.
Why use it?
It removes the need to classify changes and compose the commit message by hand. It also stops when there are no staged files to commit.

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/marcoguillermaz/tierward/commit
Any agent
npx skills add marcoguillermaz/Tierward --skill commit
Clone the repo
git clone --depth 1 https://github.com/marcoguillermaz/Tierward

Made for: Claude Code, Codex.

Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 982 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.00031 $0.00982
Opus 5 $0.00015 $0.00491
Sonnet 5 $0.00006 $0.00196
Haiku 4.5 $0.00003 $0.00098

Measured 2d ago against content hash 78bdbfdc62b7, 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 2d 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.

packages/cli/templates/tier-l/.claude/skills/commit/SKILL.md · 96 lines

How it starts

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

When invoked, immediately execute Steps 1-6 below against the currently staged changes — do not ask what to work on, do not wait for a further instruction, do not treat this as reference material. Your job is to commit the already-staged work now. If nothing is staged, stop with the Step 1 message.

Step 1 - Read staged changes

Run:

git diff --cached --stat && git diff --cached

If the output is empty (nothing staged): respond "No staged files. Run git add <files> first." and stop.

Step 2 - Determine commit type

Classify based on staged files:

Staged files Type
Source code correcting broken behaviour fix
Test files only (__tests__/, e2e/, tests/, test_*.py, *_test.go, *Tests.swift, *Test.kt, *Test.java, src/test/) test
Docs only (docs/, README.md) docs
Context/config files (.claude/, CLAUDE.md, MEMORY.md, pipeline, skills, settings) chore
Restructuring without behaviour change refactor

When code + tests are staged together, type follows the code change (feat or fix).

BREAKING CHANGE: if a migration drops a column, renames a table, removes an API field, or changes a response shape - append ! after type/scope AND add a BREAKING CHANGE: footer line explaining the impact.

Step 3 - Determine scope

Derive from the primary functional area of the staged changes:

  • Infrastructure: auth · proxy · db · api · email
  • Horizontal: ui (UI-only, no domain logic) · context (pipeline.md, CLAUDE.md, skills, rules)
  • Omit scope if changes span >3 unrelated areas or are truly cross-cutting

Step 4 - Write description

Rules:

  • Always write the commit message (subject and body) in English, regardless of the conversation or repository language
  • Imperative mood: add, fix, update, remove - never past tense
  • Max 72 characters total including type(scope):
  • No period at end

Step 5 - Body (include when useful)

Include a body when:

  • The reason for the change is non-obvious
  • A BREAKING CHANGE needs explanation
  • Phase 8 docs commit: list which doc files were updated and why

Read the full file on GitHub · 96 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. 2d ago First seen · 96 lines · 31 tokens per session scan A 78bdbfdc62b7

Subscribe to this mod's changes

commit is a skill published in the GitHub repository marcoguillermaz/Tierward (4 stars, last pushed 7d ago), licensed MIT. It adds 31 tokens to every session and 982 once invoked, about $0.0002 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.