git-commit-push

A Git workflow rule for committing and pushing code. Git is a tool for tracking code changes, and a commit is a saved change record with a standard description.

In plain words
What is it for?
Use it when committing or pushing agent-made changes. It checks repository status, follows Conventional Commits, limits subject length, records the reason for changes, and adds the agent name.
Why use it?
It keeps the change history consistent and helps avoid accidentally committing untracked files or using unclear commit messages.

Skill for Claude CodeCodexCursor

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

Made for: Claude Code, Codex, Cursor.

Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 477 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.00112 $0.00477
Opus 5 $0.00056 $0.00238
Sonnet 5 $0.00022 $0.00095
Haiku 4.5 $0.00011 $0.00048

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

Security

Grade A, and why

git-commit-push 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 yesterday.

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.

.cursor/skills/git-commit-push-agent/SKILL.md · 51 lines

What it actually says

Git Commit Standards

Critical Rules

  • Use git status to check modified or staged files before committing
  • Never overwrite or push untracked files
  • Commits MUST follow the conventional-commit standard
  • Always run git add <filename> from repo root
  • Use present tense in commit subject ("add" not "added")
  • Subject ≤ 72 chars, imperative mood, blank line before body
  • Reference issue/ticket with # if used
  • Describe what or why, not how changes were made; fixes must state what was fixed
  • Keep descriptions brief and focused—avoid verbose explanations
  • Include agent name in commit footer ("Commit written by <agent_name>")

Commit Format

<type>(<scope>): <description> (#<issue-number>)

[optional body]

[optional footer]

Commit written by <agent_name>
  • If agent not specified, use "cursor agent"
  • Types: feat, fix, docs, style, refactor, perf, test, chore, ci, security, rename

Post-Commit Actions

  • Do NOT include post-commit commands (e.g., npm run lint, git push) in commit message
  • Suggest these actions separately after commit

Agent Enforcement

  • Always check git status before commit
  • Never use generic messages ("update code", "commit changes")
  • Identify change type per conventional commit
  • Commit body should be concise and brief, and should not exceed 20 words
  • Prefer single-line descriptions when possible; only use body for essential context
  • Use meaningful scope (codebase area)
  • Clear, concise, imperative subject
  • Add agent name as (co-)author
  • Convert user commit instructions to proper format
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. yesterday First seen · 51 lines · 0 tokens per session scan A a45fbe13fa9c

Subscribe to this mod's changes

git-commit-push is a skill published in the GitHub repository usrrname/cursorrules (10 stars, last pushed 4mo ago), licensed ISC. It adds 112 tokens to every session and 477 once invoked, about $0.0006 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.