# Git Cm

> Commit changes to git with a descriptive conventional commit message. Use when ready to commit staged or unstaged changes.

- Skill: `majiayu000/git-cm` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/git-cm`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/git-cm/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/git-cm

---


# Git Commit

Commit changes with a conventional commit message.

1. Check the current git status to understand what has changed.
   - Command: `git status`

2. View the diff if necessary to understand the changes better.
   - Command: `git diff --staged` or `git diff`

3. Add all changes to the staging area (unless specific files are requested).
   - Command: `git add .`

4. Commit the changes with a descriptive and conventional commit message.
   - Command: `git commit -m "<type>: <subject>"`
   - Ensure the message follows conventional commit standards (e.g., feat, fix, chore, docs, refactor).

