git-commit

Generates conventional commit messages by analyzing staged git diffs and executes commits.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/ninthday/skills-base --skill git-commit-ninthday
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/ninthday/skills-base/tree/main/skills/git-commit
Command: npx skills add https://github.com/ninthday/skills-base --skill git-commit-ninthday

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing consistent, meaningful commit messages is tedious and often skipped, leading to unreadable git histories. This Skill analyzes your actual code changes and produces standardized Conventional Commits messages automatically. ## Core Features & Use Cases - Diff-Based Message Generation: Inspects staged or working-tree diffs to infer the correct commit type (feat, fix, docs, refactor, etc.), scope, and description. - Intelligent Staging: Groups and stages files logically before committing, while guarding against committing secrets like .env files or credentials. - Breaking Change Support: Formats breaking changes with the ! marker or BREAKING CHANGE footer per the Conventional Commits specification. - Use Case: After finishing a bug fix across several files, ask the assistant to commit your changes; it reviews the diff, stages the relevant files, and creates a commit like fix(auth): correct token refresh logic. ## Quick Start Commit my current changes with a conventional commit message based on the diff.

Frequently Asked Questions about git-commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a conventional commit message from my changes?

Stage your changes or leave them in the working tree, then ask the assistant to commit. It runs git diff to analyze the modifications, infers the type and scope, and creates a commit message following the Conventional Commits format.

What commit types does the Conventional Commits format support?

The supported types are feat, fix, docs, style, refactor, perf, test, build, ci, chore, and revert. Each type signals the nature of the change, and breaking changes can be marked with an exclamation mark or a BREAKING CHANGE footer.

Can it commit only some of my modified files?

Yes. The skill stages specific files or patterns with git add before committing, allowing logical grouping of changes. It analyzes git status and diffs to decide which files belong together in one commit.

Does it protect against committing secrets or credentials?

Yes. The workflow explicitly warns against committing secrets such as .env files, credentials.json, or private keys. It also follows a git safety protocol that forbids destructive commands, force pushes to main, and skipping hooks without explicit request.

What happens if a git hook fails during commit?

If a commit fails due to hooks, the guidance is to fix the underlying issue and create a new commit rather than amending. The skill never skips hooks with --no-verify unless the user explicitly asks.