git-commit

Analyze staged diffs to generate conventional commit messages with safety checks.

Updated Jan 7, 2024
One-click install
npx skills add https://github.com/angelriera-dev/angelriera-dev.github.io --skill git-commit-angelriera-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/angelriera-dev/angelriera-dev.github.io/tree/main/.agents/skills/git-commit
Command: npx skills add https://github.com/angelriera-dev/angelriera-dev.github.io --skill git-commit-angelriera-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create standardized, semantic git commits by analyzing diffs and generating conventional commit messages, reducing manual drafting and human error.

Core Features & Use Cases

  • Analyze the actual diff to determine type, scope, and description according to Conventional Commits.
  • Auto-detect changes and suggest commit messages, with an option for interactive overrides.
  • Safe staging and execution with a built-in Git safety protocol to avoid secrets and destructive operations.

Quick Start

Ask it to commit the current changes with a conventional message and optional type/scope/description overrides.

Frequently Asked Questions about git-commit

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

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

To generate conventional commit messages from git diffs automatically, you need a tool that analyzes staged changes to determine the appropriate type, scope, and description. This approach reduces manual drafting and enforces semantic formatting.

Can I override the auto-detected commit type and scope during the workflow?

Yes, you can override the auto-detected commit type and scope during the workflow. The process supports interactive overrides, allowing you to manually specify the type, scope, and description while still enforcing conventional commit formatting.

Does automated commit generation include safety checks for secrets?

Yes, automated commit generation includes safety checks for secrets. A built-in Git safety protocol scans your staged changes to avoid committing secrets and prevents destructive operations during the automated commit message generation workflow.

What is the best way to ensure my staging and commit workflow follows conventional commits?

The best way to ensure your staging and commit workflow follows conventional commits is by analyzing the actual diff of staged changes. This mechanism automatically determines the semantic type, scope, and description, guaranteeing a well-formed final message.

Do I need to manually stage files before generating a conventional commit message?

Yes, you need to stage files before generating a conventional commit message. The analysis specifically evaluates the diff of staged changes to determine the appropriate commit type, scope, and description according to Conventional Commits.

Why should I use automated diff analysis instead of manually writing commit messages?

You should use automated diff analysis instead of manually writing commit messages to reduce human error and standardize semantic commits. Analyzing the actual diff ensures the generated conventional commit message accurately reflects the code changes.