# Commit

> Commit staged changes with conventional commit message. Use when user wants to commit code changes. Use when this capability is needed.

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

---


# Commit Changes

## Instructions

1. Check current status:

   ```bash
   git status --porcelain
   ```

2. If no staged changes, stage all modified files:

   ```bash
   git add -A
   ```

3. Review changes to be committed:

   ```bash
   git diff --cached --stat
   git diff --cached
   ```

4. **Security check**: Scan diff for sensitive data:
   - API keys, tokens, passwords
   - Private keys, certificates
   - Environment secrets
   - If detected, STOP and warn user

5. Analyze changes and determine commit type:
   - `feat:` - New feature or functionality
   - `fix:` - Bug fix
   - `chore:` - Maintenance, dependencies, release
   - `docs:` - Documentation only
   - `style:` - Code formatting, no logic change
   - `refactor:` - Code restructure without behavior change
   - `test:` - Adding or updating tests

6. Generate commit message:
   - Format: `<type>: <description>`
   - Description should be concise (under 72 chars)
   - Focus on "what" and "why", not "how"
   - Use lowercase, no period at end
   - Examples from this repo:
     - `feat: openclaw support streaming settings`
     - `fix: openclaw profile apply policy`
     - `docs: update changelog for v0.3.2`
     - `style: format Rust code`

7. Execute commit:

   ```bash
   git commit -m "<type>: <description>"
   ```

8. If commit fails due to pre-commit hooks:
   - Review hook output
   - Fix issues or include auto-fixed files
   - Retry commit once

## Verification

- Confirm `git status` shows clean working tree after commit
- Confirm commit message follows conventional format
- Confirm no sensitive data was committed

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/sunshow) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

