commit

A guarded workflow for staging, committing, and optionally pushing code changes with Git. Git is a tool for tracking versions of source code.

In plain words
What is it for?
Use it when work is ready to commit or push. It checks the branch and verification status, stages only files changed in the session, creates the commit, and asks before pushing from the development branch.
Why use it?
It reduces the chance of committing the wrong files or pushing changes directly to protected branches.

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

Made for: Claude Code, Codex.

Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 667 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.00040 $0.00667
Opus 5 $0.00020 $0.00333
Sonnet 5 $0.00008 $0.00133
Haiku 4.5 $0.00004 $0.00067

Measured yesterday against content hash b14c246572bf, 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 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.

examples/glitch-payment-gateway/v1.1/codex/generated/.agents/skills/commit/SKILL.md · 72 lines

How it starts

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

Commit Your Changes

Stage, commit, and push only the files you modified in this session to the current working branch.


Branch Safety (BLOCKING GATE)

  1. Check the current branch — run git branch --show-current.
  2. If on master or mainSTOP immediately. Do not stage, commit, or push. Tell the user and wait.
  3. If on dev — you may commit, but do NOT push automatically. After committing, ask: "Committed. Ready to push to dev?" Wait for explicit approval.
  4. Stay on the branch you started on. Never switch branches just to commit.
  5. Never push or commit directly to master or main unless explicitly instructed.

Verification Gate (BLOCKING)

Before committing, confirm that ALL required verification steps from the task plan have passed. If any verification is blocked or incomplete, do NOT commit. Report the blocker. See AGENTS.md → Blocker Protocol.


Steps

  1. Check git status --short — Review all modified/untracked files. Identify which ones you touched.

  2. Stage only your files — Use git add with explicit file paths. Never use git add -A or git add ..

  3. Write a high-quality commit message using multiple -m flags.

    Subject Format

    <type>(<optional-scope>): <action-oriented summary>
    

    Allowed Types: feat, fix, refactor, docs, style, data, config, chore, merge

    Rules:

    • Keep subjects under ~80 characters
    • Use lowercase for type and scope
    • Start with a clear verb
    • Be specific, not generic

    Body

    • 2–3 -m flags max
    • Summarize key changes in 3–5 sentences
    • End with Files: <key files>

    Quick Rewrite Guide

    • Updated gatewayfeat(gateway): add support for digital wallet payments
    • fix stufffix(checkout): correct redirect URL for cancelled payments
  4. Push to the current working branch — If on dev, ask before pushing.


Rules

  • Never stage files you did not change.
  • Never use git add . or git add -A.
  • Never use a vague commit subject.
  • Do not include Copilot co-author trailers unless explicitly requested.
  • Never force push.
  • One commit per session batch.
  • ALWAYS present 3 commit message options (numbered 1–3, concise → descriptive). Wait for user to pick.
  • ALWAYS ask before pushing.

Read the full file on GitHub · 72 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. yesterday First seen · 72 lines · 40 tokens per session scan A b14c246572bf

Subscribe to this mod's changes

commit is a skill published in the GitHub repository savedpixel/ai-agent-rules-generator (7 stars, last pushed 4mo ago), licensed MIT. It adds 40 tokens to every session and 667 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

jira-cli

Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.

Code-and-Sorts/awesome-copilot-agents · 60 tokens

azure-prices

Look up and compare Azure service pricing using the Azure Retail Prices API. Use this skill whenever the user asks about Azure costs, pricing, rates, or wants to compare prices across regions or services — even if they don't say "pricing" explicitly. Trigger for questions like "how much does a D2 v2 VM cost?"…

Code-and-Sorts/awesome-copilot-agents · 90 tokens

calculator

Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.

Code-and-Sorts/awesome-copilot-agents · 50 tokens

az-cli

Use the Azure CLI (az) to manage Azure resources from the command line. Trigger this skill whenever the user asks to create, configure, manage, deploy, or interact with any Azure resource — even if they don't explicitly mention "az cli". Also trigger when the user asks about Azure CLI commands, syntax, or wants to…

Code-and-Sorts/awesome-copilot-agents · 79 tokens

code-review

Use when user wants code reviewed for correctness, style, bugs, and maintainability. Triggers on: review code, code review, check PR, 審查程式碼, 檢查程式碼. Produces severity-classified findings with a verdict. Do NOT use for security-focused audit (prefer security-audit) or SQL-focused review (prefer sql-review).

zexion7873/copilot-setting · 80 tokens

plan

Use when user needs a phased implementation plan with requirements, file impact, risks, and alternatives before coding — including clarifying vague or ambiguous requirements first. Triggers on: plan, how should we build, unclear requirements, 規劃, 幫我想方案. Produces a structured plan document. Do NOT use for atomic task…

zexion7873/copilot-setting · 88 tokens