commit

A local Git workflow that checks changed files for exposed secrets, creates a short commit message, and commits the current work. Git is a tool for tracking changes to code.

In plain words
What is it for?
Use it when you want to review and safely commit staged or unstaged changes in a repository.
Why use it?
It adds a safety check before committing, helping catch API keys, passwords, private keys, environment files, and patch files. It also stops when there is nothing 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/laaibaqasim/productivity-kit/commit
Any agent
npx skills add laaibaQasim/productivity-kit --skill commit
Clone the repo
git clone --depth 1 https://github.com/laaibaQasim/productivity-kit

Made for: Claude Code, Codex.

Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 737 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.00034 $0.00737
Opus 5 $0.00017 $0.00368
Sonnet 5 $0.00007 $0.00147
Haiku 4.5 $0.00003 $0.00074

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

.claude/skills/commit/SKILL.md · 81 lines

How it starts

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

Commit

Safely commit the current working changes with a concise, descriptive message.

Step 1 — Gather the diff

git status --short
git diff HEAD

If there are no changes (git status reports nothing), stop and tell the user "Nothing to commit — working tree is clean."

Step 2 — Scan for sensitive data

Before doing anything else, scan the full diff for the patterns below. If ANY match is found, stop immediately, show the user the exact file and line, and do NOT commit.

Patterns to reject:

Category Examples to detect
.env file staged diff --git a/.env or diff --git a/.env.
API keys tokens matching sk-[A-Za-z0-9]{20,}, AIza[0-9A-Za-z\-_]{35}, AKIA[0-9A-Z]{16}
GitHub PATs ghp_[A-Za-z0-9]{36}, github_pat_
Generic secrets variable names containing SECRET, PASSWORD, PASSWD, TOKEN, PRIVATE_KEY assigned to a string literal
Private keys `-----BEGIN (RSA
Patch files staged any file ending in .patch

Use Grep on the diff output for each pattern. If clean, proceed.

Step 3 — Stage changes

If nothing is staged yet (git diff --cached is empty), stage all tracked changes:

git add -u

Do not git add . — do not stage untracked files the user has not explicitly added. If the user wants to stage specific files, ask them which ones before staging.

Step 4 — Write the commit message

Analyse the staged diff and write a commit message that:

  • Summarises the what and why in ≤ 72 characters on the first line.
  • Uses imperative mood ("Add", "Fix", "Remove", "Update" — not "Added", "Adds").
  • Optionally includes a blank line followed by a short body (2–4 bullet points) for complex changes — skip the body for small/obvious commits.
  • Does not mention file names unless they are the entire point of the change.
  • Does not start with "Commit", "Update files", or other filler phrases.

Step 5 — Commit

git commit -m "$(cat <<'EOF'
<first line — ≤72 chars>

- <optional bullet 1>
- <optional bullet 2>
EOF
)"

Read the full file on GitHub · 81 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 · 81 lines · 34 tokens per session scan A 69c509018e93

Subscribe to this mod's changes

commit is a skill published in the GitHub repository laaibaQasim/productivity-kit (4 stars, last pushed 4mo ago), licensed MIT. It adds 34 tokens to every session and 737 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.

Related

Other skills, from other repositories

github-pr-workflow

Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.

paperclipai/paperclip · 39 tokens

contributing

How to contribute to evlog, covering commit and PR conventions, changesets, the Definition of Done, testing rules, and the authored skills that walk through building a new adapter, enricher, framework integration, or map rule. Load this for any question about contributing, opening a PR, or adding something to the…

HugoRCD/evlog · 68 tokens

commit-staged

This skill should be used when user asks to "commit these changes", "write commit message", "stage and commit", "create a commit", "commit staged files", or explicitly invokes "commit-staged".

fcakyon/claude-codex-settings · 46 tokens

update-pr-summary

This skill should be used when user asks to "update PR summary", "update PR description", "rewrite PR body", "refresh PR title and body", or explicitly invokes "update-pr-summary".

fcakyon/claude-codex-settings · 43 tokens

git-flow-pr

Executes the full PR-driven development workflow: create an isolated feature branch from the current work, commit all staged changes, rebase cleanly onto the selected base branch (skipping any ancestor commits already merged), push the branch, and open a GitHub pull request linked to a related issue. Includes guidance…

soulcodex/agentic · 103 tokens

rsyslog_commit

Ensures compliance with rsyslog's strict commit message and branching policies.

rsyslog/rsyslog · 20 tokens