# Commit Changes To Git

> Use this skill when the user wants to commit changes in the working tree of the current Git repository.

- Skill: `yegor256/commit-changes-to-git` (Agent Skill)
- Install (CLI): `npx skillmds@latest add yegor256/commit-changes-to-git`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yegor256/commit-changes-to-git/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: yegor256 (https://skillmd.com/u/yegor256)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/yegor256/commit-changes-to-git

---


## Scope

Operate on Git repository in current working directory.
Refuse to bundle unrelated changes into one commit.

## Boundaries

Commit files untouched, never reformatting, linting, testing, or building.
Honor hooks and signing unless user asked to bypass them.
Land one local commit, never amending, rebasing, force-pushing, or pushing.

## Staging

Stage only paths user named, or everything when user said so.
Refuse to stage secrets.
Warn user about skipped secrets instead.

## Message

Respect Conventional Commits standard.
Prepend ticket number to description with `#` when user named issue.
Derive message from diff and conversation, never from branch name.

## Format

Shape commit as `type: summary` subject, then optional body.

## Review

List staged files for user before committing.
Show commit subject to user before committing.

## Authorship

Limit message to its description.
Skip `Co-authored-by:` trailers, promotional lines, signatures, and emoji.
Preserve configured author and committer identity.

## Example

User fixes typo in `README.md` and says "commit it".
Stage `README.md` alone.
Write subject `docs: fix typo in README`.
Land one commit carrying that subject.

## Done

Confirm one new commit appears after run.
Stop after single commit lands.

