Conventional Git Commits

VerifiedCaution

This skill enforces the Conventional Commits standard for Git commit messages. It guides you to select the appropriate commit type, optional scope, and write a concise subject line with an explanatory body when needed. Use it to keep a clean, informative commit history across your project.

Sby Skills Guide Bot
DevelopmentBeginner
6/2/2026
Claude CodeCursorWindsurfCopilotCodex
#git#conventional-commits#version-control#collaboration

Recommended for

Automated summary

Creates well-formatted git commits following conventional commit standards.

Strengths

  • Guides the user in choosing the appropriate type and scope
  • Ensures clear and consistent commit messages
  • Facilitates automatic changelog generation

Limitations

  • Requires Git to be configured on the user's machine
  • Does not automatically handle merge conflicts
When to use it

Use this skill when you need to commit changes or write commit messages for your project.

When not to use it

Do not use it if you are working with a version control system other than Git.

Security analysis

Caution
Quality score85/100

The skill uses bash to run typical git operations for staging and committing code. While these are necessary for the stated purpose and not inherently destructive, they can affect the repository state. No exfiltration or obfuscation commands are present.

Findings
  • •Executes bash commands (git status, diff, add, commit) which could stage or commit unintended changes if misused.
How this analysis is made

Examples

Commit a new feature
I've added a new login feature using Google OAuth. Stage the relevant files and create a commit with a proper conventional commit message.
Commit a bug fix with body
Fix the expired token handling bug in the auth module. The commit message should explain why the change was made.

name: commit description: Create well-formatted git commits following conventional commit standards. Use when committing changes, writing commit messages, or asked to commit code.

Commit Skill

Instructions

  1. Check Current Status

    git status
    git diff --stat
    
  2. Review Changes

    git diff           # Unstaged changes
    git diff --staged  # Staged changes
    
  3. Stage Relevant Files

    • Only stage related changes
    • Don't mix unrelated changes
  4. Determine Commit Type

    | Type | When to Use | | ---------- | ------------------------------------- | | feat | New feature | | fix | Bug fix | | docs | Documentation only | | style | Formatting (no logic change) | | refactor | Code restructure (no behavior change) | | perf | Performance improvement | | test | Adding/updating tests | | build | Build system changes | | ci | CI configuration | | chore | Other (dependencies, etc.) |

  5. Determine Scope (Optional)

    • Feature name: auth, user, payment
    • Module name: api, web, core
    • Component: button, modal
  6. Write Commit Message

Commit Message Format

<type>(<scope>): <description>

[optional body]

[optional footer]

Rules

  • Use imperative mood: "add" not "added"
  • Lowercase first letter
  • No period at end
  • Max 72 characters for first line
  • Body explains WHY, not WHAT

Examples

Simple Commit

git add src/auth/login.ts
git commit -m "feat(auth): add Google OAuth login"

With Body

git commit -m "fix(auth): handle expired token gracefully

The previous implementation threw an unhandled error when tokens expired.
Now we catch the error and redirect to login with a message.

Fixes #123"

Breaking Change

git commit -m "feat(api)!: change user response structure

BREAKING CHANGE: The 'name' field is now split into 'firstName' and 'lastName'.
Migration guide available in docs/migrations/v2.md"

Multiple Files

# Stage related files
git add src/auth/login.ts src/auth/types.ts src/auth/login.test.ts

# One commit for related changes
git commit -m "feat(auth): implement email OTP login

- Add sendOTP function
- Add verifyOTP function
- Add input validation
- Add unit tests"

Anti-Patterns

❌ Bad Commits

# Too vague
git commit -m "fix bug"
git commit -m "update"
git commit -m "WIP"

# Too long
git commit -m "Added new login feature with Google OAuth support and also fixed some bugs in the authentication flow and updated the tests"

# Wrong type
git commit -m "feat: fix login bug"  # Should be 'fix'

# Mixed changes
git commit -m "feat: add login and fix navbar and update docs"

✅ Good Commits

# Clear and specific
git commit -m "fix(auth): prevent duplicate OTP requests"

# Proper scope
git commit -m "test(auth): add unit tests for login service"

# Atomic changes
git commit -m "refactor(auth): extract validation to separate module"

Verification

After committing:

# Check commit was created
git log --oneline -1

# Verify files included
git show --stat HEAD

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/conventional-git-commits-mma3jstj/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/conventional-git-commits-mma3jstj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/conventional-git-commits-mma3jstj/download' --output '.skill-downloads/conventional-git-commits-mma3jstj/SKILL.md.part' && mv '.skill-downloads/conventional-git-commits-mma3jstj/SKILL.md.part' '.skill-downloads/conventional-git-commits-mma3jstj/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/conventional-git-commits-mma3jstj/SKILL.md' && test -s '.skill-downloads/conventional-git-commits-mma3jstj/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/commit' && cp -R '.skill-downloads/conventional-git-commits-mma3jstj' '.claude/skills/commit'

Cursor
test -f '.skill-downloads/conventional-git-commits-mma3jstj/SKILL.md' && test -s '.skill-downloads/conventional-git-commits-mma3jstj/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/commit' && cp -R '.skill-downloads/conventional-git-commits-mma3jstj' '.cursor/skills/commit'

Codex
test -f '.skill-downloads/conventional-git-commits-mma3jstj/SKILL.md' && test -s '.skill-downloads/conventional-git-commits-mma3jstj/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/commit' && cp -R '.skill-downloads/conventional-git-commits-mma3jstj' '.agents/skills/commit'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/conventional-git-commits-mma3jstj'

openskills read 'conventional-git-commits-mma3jstj'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/conventional-git-commits-mma3jstj/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills