# Commit

> Commit Skill

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

---

# Commit Skill

Stage and commit all changes, then push.

## Steps

1. Run `git status` and `git diff` to understand what changed
2. Stage changed files by name (never `git add -A` or `git add .`)
3. Write a concise commit message (conventional commits format, subject ≤50 chars)
4. Commit and push to current branch
5. Report the commit SHA

## Rules

- Do NOT modify build commands, CLAUDE.md, or README unless the user explicitly asked
- Do NOT add files that look like secrets (.env, credentials, tokens)
- Do NOT amend existing commits — always create a new one
- Do NOT push if on main/master without confirming with the user first

