---
title: "git-commit by github · skilld"
canonical_url: "https://skilld.dev/gh/github/awesome-copilot/git-commit"
last_updated: "2026-07-27T23:50:15.278Z"
meta:
  description: "Creates standardized git commits using the Conventional Commits specification by analyzing diffs to auto-detect type, scope, and generate messages. Supports intelligent… From github/awesome-copilot."
  "og:description": "Creates standardized git commits using the Conventional Commits specification by analyzing diffs to auto-detect type, scope, and generate messages. Supports intelligent… From github/awesome-copilot."
  "og:title": "git-commit by github"
  "twitter:description": "Creates standardized git commits using the Conventional Commits specification by analyzing diffs to auto-detect type, scope, and generate messages. Supports intelligent… From github/awesome-copilot."
  "twitter:title": "git-commit by github"
---

[All skills](https://skilld.dev/skills)

[![github avatar](https://github.com/github.png?size=96)github/awesome-copilot repository](https://skilld.dev/gh/github/awesome-copilot)

# **/git-commit**

official

[github](https://skilld.dev/gh/github)/ [awesome-copilot](https://skilld.dev/gh/github/awesome-copilot) 37,102 4,655

Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping

Updated 18 hours ago  Trust

[Git/VCS](https://skilld.dev/skills/tag/git "Git operations, branching, history surgery") [ conventional-commits](https://skilld.dev/skills/tag/conventional-commits) [ commit-messages](https://skilld.dev/skills/tag/commit-messages) [ staging](https://skilld.dev/skills/tag/staging) [ bash](https://skilld.dev/skills/tag/bash) [ semantic-versioning](https://skilld.dev/skills/tag/semantic-versioning)

## Skill content

## 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

| Type | Purpose |
| --- | --- |
| `feat` | New feature |
| `fix` | Bug fix |
| `docs` | Documentation only |
| `style` | Formatting/style (no logic) |
| `refactor` | Code refactor (no feature/fix) |
| `perf` | Performance improvement |
| `test` | Add/update tests |
| `build` | Build system/dependencies |
| `ci` | CI/config changes |
| `chore` | Maintenance/misc |
| `revert` | Revert 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)

Source: [SKILL.md on GitHub](https://github.com/github/awesome-copilot/blob/e24be77e6f203409cf99ab7d5a67e1540cb386d3/skills/git-commit/SKILL.md)

## What it does

Creates standardized git commits using the Conventional Commits specification by analyzing diffs to auto-detect type, scope, and generate messages. Supports intelligent file staging, interactive overrides, and breaking change footers for semantic versioning.

Based on the current SKILL.md.

## Frequently asked

<details>

<summary>Does this skill auto-stage files or do I need to stage them manually?</summary>



The skill can intelligently stage files for logical grouping if nothing is already staged, but it analyzes whatever diff exists (staged or working tree) and prompts you before committing. You retain control over what gets staged.

</details>

<details>

<summary>What happens if my commit message doesn't follow Conventional Commits format?</summary>



The skill is designed to generate and enforce Conventional Commits format automatically by analyzing the diff and detecting the type, scope, and description. It will not create non-conforming messages.

</details>

<details>

<summary>Does this skill handle breaking changes?</summary>



Yes. The skill supports breaking changes via an exclamation mark after the type/scope (e.g., `feat!:`) or a BREAKING CHANGE footer in the commit body.

</details>

<details>

<summary>Will this skill run git hooks or skip validation?</summary>



The skill respects git hooks by default and will not skip them with --no-verify unless you explicitly request it. If a hook fails, it will prompt you to fix and create a new commit rather than amend.

</details>

Based on the current SKILL.md. These answers refresh after source changes.

## Related skills

[![github avatar](https://github.com/github.png?size=48) /multi-stage-dockerfile github/awesome-copilot Create optimized multi-stage Dockerfiles for any language or framework](https://skilld.dev/gh/github/awesome-copilot/multi-stage-dockerfile) [![github avatar](https://github.com/github.png?size=48) /chrome-devtools github/awesome-copilot Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.](https://skilld.dev/gh/github/awesome-copilot/chrome-devtools) [![github avatar](https://github.com/github.png?size=48) /postgresql-optimization github/awesome-copilot PostgreSQL-specific development assistant focusing on unique PostgreSQL features, advanced data types, and PostgreSQL-exclusive capabilities. Covers JSONB operations, array types, custom types, range/geometric types, full-text search, window functions, and PostgreSQL extensions ecosystem.](https://skilld.dev/gh/github/awesome-copilot/postgresql-optimization) [![github avatar](https://github.com/github.png?size=48) /conventional-commit github/awesome-copilot Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.](https://skilld.dev/gh/github/awesome-copilot/conventional-commit) [![github avatar](https://github.com/github.png?size=48) /dotnet-best-practices github/awesome-copilot Ensure .NET/C# code meets best practices for the solution/project.](https://skilld.dev/gh/github/awesome-copilot/dotnet-best-practices) [![github avatar](https://github.com/github.png?size=48) /sql-optimization github/awesome-copilot Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.](https://skilld.dev/gh/github/awesome-copilot/sql-optimization)