Skip to content
Back to skills

Commit Thuyavan00

ASecurity

Create a git commit with a well-crafted message following project conventions

  • 57 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added October 17, 2026
code-qualitybashgit

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill commit-thuyavan00 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit Thuyavan00?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit Thuyavan00
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-commit-thuyavan00/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-commit-thuyavan00)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: commit
description: Create a git commit with a well-crafted message following project conventions
disable-model-invocation: true
allowed-tools: Bash(git *)
---

# Git Commit Skill

Create a git commit following best practices for this repository.

## Process

1. **Analyze the current state** - Run these in parallel:
   - `git status` - See all untracked and modified files
   - `git diff` - See both staged and unstaged changes
   - `git log --oneline -10` - Review recent commit message style

2. **Draft commit message**:
   - Summarize the nature of changes (new feature, enhancement, bug fix, refactor, docs, etc.)
   - Be concise (1-2 sentences) focusing on "why" rather than "what"
   - Use imperative mood (e.g., "add", "fix", "update", not "added", "fixed")
   - Follow the style of recent commits in this repo
   - Match scope to actual changes:
     - "add" = wholly new feature/file
     - "update" = enhancement to existing feature
     - "fix" = bug fix
     - "refactor" = code restructuring
     - "feat" = new feature (if using conventional commits)
     - "chore" = maintenance tasks

3. **Stage and commit** - Run these sequentially:
   - Stage relevant files by name (prefer specific files over `git add -A`)
   - Create commit with message ending in:
     ```
     Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
     ```
   - Run `git status` after commit to verify success

4. **Format commit messages** using HEREDOC:
   ```bash
   git commit -m "$(cat <<'EOF'
   Your commit message here.

   Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
   EOF
   )"
   ```

## Safety Rules

- **NEVER** update git config
- **NEVER** run destructive commands without user confirmation:
  - `git push --force`
  - `git reset --hard`
  - `git checkout .`
  - `git clean -f`
  - `git branch -D`
- **NEVER** skip hooks (`--no-verify`, `--no-gpg-sign`) unless explicitly requested
- **NEVER** amend commits unless explicitly requested
- **CRITICAL**: If pre-commit hook fails, fix the issue and create a NEW commit (don't use `--amend`)
- Prefer staging specific files by name rather than `git add -A` or `git add .`
- Don't commit if there are no changes
- Don't commit sensitive files (.env, credentials, etc.)

## Arguments

- No arguments: Commit all current changes
- With file paths: Commit only specified files

## Example Usage

```
/commit
/commit src/components/Button.tsx
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.