git-commit

Analyze diffs to generate conventional git commits with type and scope.

4|Updated Apr 25, 2024
One-click install
npx skills add https://github.com/BridgingIT-GmbH/bITdevKit.Examples.GettingStarted --skill git-commit-bridgingit-gmbh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/BridgingIT-GmbH/bITdevKit.Examples.GettingStarted/tree/main/.opencode/skills/git-commit
Command: npx skills add https://github.com/BridgingIT-GmbH/bITdevKit.Examples.GettingStarted --skill git-commit-bridgingit-gmbh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers produce standardized, conventional git commits by automatically inferring type and scope from changes and generating descriptive messages.

Core Features & Use Cases

  • Conventional Commit Generation: Analyzes diffs to determine type, scope, and message body.
  • Intelligent Staging: Groups related changes to create cohesive commits.
  • Interactive Commit: Allows overrides for type, scope, and description when needed.
  • Safe Execution: Encourages best practices and avoids unsafe commands.

Quick Start

Use the git-commit skill to generate a conventional commit for the staged changes and apply it with git commit.

Frequently Asked Questions about git-commit

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

FAQPage Schema
How do I generate conventional commit messages automatically from my git diff?

To generate conventional commit messages automatically, this skill analyzes your git diff to infer the type, scope, and description. It groups related changes across multiple files to produce standardized messaging without manual input.

What is the best way to group related file changes into a single conventional commit?

The best way to group related file changes is through intelligent staging. This skill analyzes your diffs and groups related changes together to create cohesive conventional commits rather than mixing unrelated updates.

Can I override the automatically inferred type and scope of a generated commit message?

Yes, you can override the automatically inferred type and scope. The skill supports interactive overrides, allowing you to manually adjust the type, scope, and description whenever the generated message needs refinement.

Does this git commit tool support safe staging practices for multiple files?

Yes, this git commit tool supports safe staging practices by applying guarded execution. It encourages best practices during the staging process to safely group and commit changes across multiple files without running unsafe commands.

When do I need automated conventional commit generation for my development workflow?

You need automated conventional commit generation when your development workflow involves changes spanning multiple files that require standardized messaging. It ensures consistent type and scope inference across your project history.

Why should I use conventional commits instead of writing my own git commit messages?

Using conventional commits ensures standardized messaging across your project by automatically inferring type and scope from the diff. This approach maintains a consistent git history and reduces the cognitive load of manually structuring commit messages.