commit

Instructions for inspecting a Git repository, preparing a commit message, and committing staged changes.

In plain words
What is it for?
Use them to review status and diffs, inspect recent commit wording, select intended files, and create a properly described commit.
Why use it?
They reduce accidental commits and help the commit message match the repository's existing style.

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

Made for: Claude Code, Codex.

Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 465 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.00022 $0.00465
Opus 5 $0.00011 $0.00233
Sonnet 5 $0.00004 $0.00093
Haiku 4.5 $0.00002 $0.00047

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

internal/skills/bundled/commit/SKILL.md · 51 lines

What it actually says

Commit Skill

User intent (optional): $ARGUMENTS

Steps

  1. Survey the working tree. Run in parallel:

    • git status --short
    • git diff --staged
    • git diff
    • git log -n 5 --oneline

    Use the log to learn the repo's commit-message style (conventional commits, plain sentences, scope prefixes, etc.).

  2. Decide what to stage.

    • Stage tracked changes the user clearly intends to commit. Name files explicitly with git add <path>.
    • If there are untracked files, list them to the user and ask which (if any) should be included. Do not stage them silently.
    • Do not use git add -A or git add . — they can leak secrets or stray files.
  3. Draft the message.

    • Lead with why over what. The diff already shows the what.
    • Match the recent git log style.
    • Subject line under ~72 characters. If a body is needed, separate with a blank line.
    • If the user provided intent in the line above, weave it in — do not quote it verbatim.
    • Do not add co-author or "generated with" trailers unless the user explicitly asks.
  4. Commit. Use a heredoc so multi-line bodies survive shell quoting:

    git commit -m "$(cat <<'EOF'
    <subject>
    
    <optional body>
    EOF
    )"
    
  5. Verify. Run git status and report the result to the user. Do not push — that is a separate, explicit step the user must request.

On hook failures

If a pre-commit hook fails, do not retry with --no-verify. Read the hook output, fix the underlying issue, re-stage the affected files, and create a new commit. Never amend in this case — the prior commit did not happen, so --amend would target the wrong thing.

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 · 51 lines · 22 tokens per session scan A ede46a503a4e

Subscribe to this mod's changes

commit is a skill published in the GitHub repository mochow13/keen-code (60 stars, last pushed 3d ago), licensed MIT. It adds 22 tokens to every session and 465 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

tlamatini-self-update-inclusion

Sweep the whole codebase and keep the SELF-UPDATE pipeline complete — so every new asset/feature added to Tlamatini is actually carried into a release by build.py AND survives (or is correctly replaced by) the self-update swap. Invoke whenever you add/rename a new agent, top-level file or directory, dependency…

XAIHT/Tlamatini · 171 tokens

tlamatini-self-modify-inclusion

Sweep the whole codebase and keep the SELF-MODIFY source snapshot complete — so the TlamatiniSourceCode/ tree that a --self-modify build ships carries every source/build asset Tlamatini needs to read, modify, and REBUILD herself, with heavy media/secrets correctly omitted+redacted and omitted binaries listed in the…

XAIHT/Tlamatini · 183 tokens

tlamatini-daily-chat-test

Run the daily automated Tlamatini chat regression — drive a visible Chrome via Playwright, log into agentpage.html, ask up to 1000 curated safe questions one-by-one (Multi-Turn ON, ACPX/Ask-Execs/Exec-Report/Internet OFF), wait for and qualify each answer (heuristic + LLM judge on failures), then write a dated report…

XAIHT/Tlamatini · 125 tokens

adding-external-mcp

The authoritative reference for adding a NEW external MCP server to Tlamatini universal MCP client layer. Covers the full lifecycle: catalog import, transport selection, activation, runtime provisioning, diagnosis, verification, and troubleshooting. READ THIS BEFORE calling externalmcpimport, before editing…

XAIHT/Tlamatini · 71 tokens

setup-new-acpx-key

Configure the API key (or other credential) for a registered ACPX agentid (claude/codex/cursor/gemini/qwen/copilot/pi/droid/iflow/kilocode/kimi/kiro/opencode/tlamatini) end-to-end across data.keys, config.json (top-level + acpx.agents. .env), regensecrets.py, and verification via acpdoctor.

XAIHT/Tlamatini · 92 tokens

tlamatini-agent-naming

The authoritative Tlamatini agent NAMING CONVENTION — invoke before adding, renaming, casing, displaying, or auditing any workflow agent (STM32er, Node Manager, ACPXer, Kalier, ...). Use whenever you touch agentDescription, a pool/agent directory, a CSS .canvas-item class, a JS connection handler…

XAIHT/Tlamatini · 120 tokens