# Git Commit

> Stage meaningful diffs and create commits with WHY-focused messages. Use when agent needs to commit code changes.

- Skill: `majiayu000/git-commit-32` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/git-commit-32`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/git-commit-32/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/majiayu000/git-commit-32

---


# INSTRUCTIONS

Use `/git:commit` slash command to stage meaningful diffs and create commits with WHY-focused messages.

# DISCIPLINE

- Only commit when:
  1. ALL tests are passing
  2. ALL compiler/linter warnings have been resolved
  3. The change represents a single logical unit of work
  4. Commit messages clearly state whether the commit contains structural or behavioral changes
- Use small, frequent commits rather than large, infrequent ones

