commit-confirm

Display staged commit messages and await user confirmation before executing git commit.

Updated Nov 3, 2017
One-click install
npx skills add https://github.com/bubble0601/dotfiles --skill commit-confirm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-confirm
Source: https://github.com/bubble0601/dotfiles/tree/main/.claude/skills/commit-confirm
Command: npx skills add https://github.com/bubble0601/dotfiles --skill commit-confirm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Developers often accidentally commit changes without reviewing their commit messages, leading to unclear history and potential errors.

Core Features & Use Cases

  • Pre-commit Review: Presents the proposed commit message to the user for confirmation before executing git commit.
  • Interactive Feedback: Allows users to modify the message if needed, ensuring clarity and appropriateness.
  • Use Case: A developer prepares a commit but wants to double-check the message aligns with project standards before finalizing the change.

Quick Start

Use the commit-confirm skill to review and approve your staged changes before executing a git commit.

Frequently Asked Questions about commit-confirm

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

FAQPage Schema
How do I review a git commit message before finalizing the commit?

To review a git commit message before finalizing, use a pre-commit review step that displays the staged message and waits for your confirmation. This prevents unclear history and accidental errors by letting you modify the message before executing git commit.

What is a pre-commit review in version control workflows?

Pre-commit review in version control is the practice of presenting a proposed commit message to the developer for interactive feedback before the change is finalized. It ensures the message aligns with project standards and prevents accidental, unchecked commits.

How do I set up an interactive commit confirmation prompt for my development team?

You can set up interactive commit confirmation by running a script that interacts with git to display staged messages and await user feedback. This allows developers to modify the proposed message, ensuring clarity and appropriateness before the commit is executed.

Do I need any specific git hooks to enable commit message confirmation?

No specific git hooks or external dependencies are required to enable commit message confirmation. The feature operates through standalone scripts that interact directly with git to display the staged message and await user confirmation before finalizing.

What is the best way to prevent accidental commits without reviewing the message?

The best way to prevent accidental commits without reviewing the message is to implement an interactive feedback step that shows the proposed commit message and requires explicit user confirmation before git commit is executed.

Can I modify my staged commit message during the confirmation process?

Yes, you can modify your staged commit message during the confirmation process. The interactive feedback step presents the proposed message and allows you to make changes, ensuring the commit message aligns with project standards before finalizing the change.