Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
github avatar

Git Commit

  • 40.5k installs
  • 37.1k repo stars
  • Updated July 28, 2026
  • github/awesome-copilot

git-commit is a GitHub Copilot skill from awesome-copilot for writing better commit messages.

About

This is a community collection of custom agents, instructions, skills, hooks, and workflows for GitHub Copilot. The git-commit skill helps developers write better commit messages. Part of the awesome-copilot project with 100+ customization resources.

  • Collection of custom GitHub Copilot agents and skills
  • Workflow automation and commit helpers
  • Community-curated resources for Copilot customization

Git Commit by the numbers

  • 40,483 all-time installs (skills.sh)
  • +905 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #5 of 739 Git & Pull Requests skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

git-commit capabilities & compatibility

Works with
github
Use cases
code review
Pricing
Free
npx skills add https://github.com/github/awesome-copilot --skill git-commit

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs40.5k
repo stars37.1k
Security audit3 / 3 scanners passed
Last updatedJuly 28, 2026
Repositorygithub/awesome-copilot

How do you generate conventional commit messages from diffs?

Write better commit messages using GitHub Copilot with community-curated patterns

Who is it for?

Developers using GitHub Copilot for Git workflows

Skip if: Non-Copilot users, non-Git workflows

When should I use this skill?

The user asks to commit changes, create a git commit, run /commit, or wants conventional commit messages from staged or unstaged diffs.

What you get

Staged files and a Conventional Commits formatted git commit with auto-detected type and scope.

  • conventional commit message
  • staged file sets

Files

SKILL.mdMarkdownGitHub ↗

Git Commit with Conventional Commits

Overview

Create standardized, semantic git commits using the Conventional Commits specification. Analyze the actual diff to determine appropriate type, scope, and message.

Conventional Commit Format

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Commit Types

TypePurpose
featNew feature
fixBug fix
docsDocumentation only
styleFormatting/style (no logic)
refactorCode refactor (no feature/fix)
perfPerformance improvement
testAdd/update tests
buildBuild system/dependencies
ciCI/config changes
choreMaintenance/misc
revertRevert commit

Breaking Changes

# Exclamation mark after type/scope
feat!: remove deprecated endpoint

# BREAKING CHANGE footer
feat: allow config to extend other configs

BREAKING CHANGE: `extends` key behavior changed

Workflow

1. Analyze Diff

# If files are staged, use staged diff
git diff --staged

# If nothing staged, use working tree diff
git diff

# Also check status
git status --porcelain

2. Stage Files (if needed)

If nothing is staged or you want to group changes differently:

# Stage specific files
git add path/to/file1 path/to/file2

# Stage by pattern
git add *.test.*
git add src/components/*

# Interactive staging
git add -p

Never commit secrets (.env, credentials.json, private keys).

3. Generate Commit Message

Analyze the diff to determine:

  • Type: What kind of change is this?
  • Scope: What area/module is affected?
  • Description: One-line summary of what changed (present tense, imperative mood, <72 chars)

4. Execute Commit

# Single line
git commit -m "<type>[scope]: <description>"

# Multi-line with body/footer
git commit -m "$(cat <<'EOF'
<type>[scope]: <description>

<optional body>

<optional footer>
EOF
)"

Best Practices

  • One logical change per commit
  • Present tense: "add" not "added"
  • Imperative mood: "fix bug" not "fixes bug"
  • Reference issues: Closes #123, Refs #456
  • Keep description under 72 characters

Git Safety Protocol

  • NEVER update git config
  • NEVER run destructive commands (--force, hard reset) without explicit request
  • NEVER skip hooks (--no-verify) unless user asks
  • NEVER force push to main/master
  • If commit fails due to hooks, fix and create NEW commit (don't amend)

Related skills

Forks & variants (3)

Git Commit has 3 known copies in the catalog totaling 372 installs. They canonicalize to this original listing.

How it compares

Use git-commit for Conventional Commits automation instead of generic summarize-diff prompts that ignore staging strategy.

FAQ

What commit standard does git-commit follow?

git-commit creates standardized semantic git commits using the Conventional Commits specification, inferring type and scope from the diff and allowing interactive overrides.

Does git-commit only write messages?

No. git-commit also performs intelligent file staging to group related changes and executes the git commit via Bash when the user requests a commit or /commit.

Is Git Commit safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.