Standardized Commit

VerifiedCaution

This skill automates staging relevant files and writing commit messages in a conventional format (type: description). It uses git status and diff to decide what to stage and ensures messages are concise, imperative, and under 72 characters. Useful for maintaining consistent commit history without manual formatting.

Sby Skills Guide Bot
DevelopmentIntermediate
506/2/2026
Claude Code
#git#commit-messages#version-control#conventional-commits

Recommended for

Our review

Stages relevant changes and creates a well-formatted commit message following conventional commit standards.

Strengths

  • Automatically stages changes intelligently, grouping related files
  • Enforces a clear, consistent commit message format
  • Reduces cognitive overhead of deciding commit message structure
  • Avoids committing sensitive files like .env automatically

Limitations

  • May not always correctly group unrelated changes if they appear together
  • Relies on the model's judgment for staging, which may occasionally miss files
  • Only supports a fixed set of commit types
When to use it

Use when you want to quickly commit changes with a properly formatted message without manual typing.

When not to use it

Do not use when you need to craft a detailed multi-line commit message or when you want to review staged changes manually.

Security analysis

Caution
Quality score90/100

The skill automates git staging and committing, which is a powerful operation. While it instructs to avoid secret files, the AI's judgment may not be perfect, and the commit happens without user review. No destructive or exfiltrating actions.

Findings
  • Automatically stages and commits changes without user confirmation, relying on AI to avoid staging secrets. Risk of accidentally committing sensitive files.

Examples

Commit staged changes
commit the changes
Commit with specific type
commit these changes as a fix
Commit all current work
stage and commit everything I've done

name: commit description: Stage and commit changes with standardized format user-invocable: true disable-model-invocation: true

Standardized Commit

Current State

!git status --short

!git diff --stat

!git diff --cached --stat

Instructions

Based on the git status and diff above:

  1. Stage changes if not already staged:

    • Stage relevant files (use judgment on what belongs together)
    • Do not stage unrelated changes
    • Do not stage files that likely contain secrets (.env, credentials, tokens)
  2. Write commit message in this format:

    <type>: <description>
    

    Types:

    • fix: Bug fix
    • feat: New feature
    • refactor: Code restructuring (no behavior change)
    • docs: Documentation only
    • test: Adding/updating tests
    • chore: Build, config, tooling changes

    Rules:

    • Description is lowercase, no period at the end
    • Keep under 72 characters total
    • Be specific: not "fix bug" but "fix null pointer in request handler"
    • Use imperative mood: "add feature" not "added feature"
  3. Commit without asking for confirmation. Use a HEREDOC for the message:

    git commit -m "$(cat <<'EOF'
    <type>: <description>
    EOF
    )"
    

Examples

Good:

  • fix: handle empty response in sglang backend
  • feat: add per-user rate limiting middleware
  • refactor: extract token validation to separate module
  • docs: update sglang disaggregation deployment guide
  • chore: bump maturin version to 1.8

Bad:

  • Fix bug (too vague, wrong case)
  • Updated code (meaningless, past tense)
  • WIP (not a complete commit)
  • fix: fix the thing. (period, vague)
Related skills