# Git Commit Workflow

> Use when the user wants a single clean commit created from current changes with safe staging, message drafting, and non-interactive git usage.

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

---



# Git Commit Workflow

Use this skill when the task is to create one commit from current work.

## Workflow
1. Inspect git status, diff, branch, and recent commit style.
2. Stage only relevant changes.
3. Draft a concise commit message that reflects why the change exists.
4. Create a new commit non-interactively.
5. Report the resulting commit summary.

## Guardrails
- Never amend unless explicitly asked.
- Never bypass hooks unless explicitly asked.
- Avoid staging secrets or unrelated files.
- Do not create an empty commit.

## Example Requests
- Make one clean commit from the current working tree.
- Stage the right files and create a proper commit message.

## Inputs
- Current diff
- Branch state
- Recent commit style

## Outputs
- One non-amended commit
- Accurate commit message

## Success Criteria
- Only relevant changes were committed.
- No empty commit was created.
- Hooks and safety rules were respected.

## Non-Goals
- Amend flows unless explicitly asked
- Committing secrets or unrelated changes

## Source Provenance
Derived from `src/commands/commit.ts`.

