commit-message

Generate semantic Git commit messages from staged changes using Conventional Commits.

153|24|Updated Aug 3, 2021
One-click install
npx skills add https://github.com/ctrsploit/ctrsploit --skill commit-message-ctrsploit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-message
Source: https://github.com/ctrsploit/ctrsploit/tree/main/.opencode/skills/commit-message
Command: npx skills add https://github.com/ctrsploit/ctrsploit --skill commit-message-ctrsploit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams generate standardized, semantic Git commit messages for staged changes, improving traceability and code review efficiency.

Core Features & Use Cases

  • Conventional Commits enforcement: ensure subject lines follow the conventional commits format.
  • atomic commits guidance: detect and propose splitting unrelated changes into separate commits.
  • 跨语言支持 / Chinese guidance: provides clear guidelines for both English and Chinese-speaking developers.
  • Commit execution protocol: outputs a .commit-message file and follows a strict commit workflow to prevent accidental changes.

Quick Start

Place your staged changes and run the commit-message workflow to generate a draft at the repository root as .commit-message. Then review and commit using the provided protocol.

Frequently Asked Questions about commit-message

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

FAQPage Schema
How do I generate conventional commit messages for staged Git changes?

You generate conventional commit messages for staged Git changes by running the workflow against your staged files. The skill analyzes the diff, enforces Conventional Commits patterns, and outputs a draft message to a .commit-message file at the repository root for your review.

What is the best way to ensure my Git commit messages follow semantic versioning conventions?

The best way to ensure semantic Git commit messages is to use an automated generator that enforces Conventional Commits patterns. This skill validates your staged changes against the standard format and provides clear guidance to maintain strict semantic traceability.

How do I split unrelated staged changes into separate atomic commits?

To split unrelated staged changes into atomic commits, this skill checks the atomicity of your staged files and provides guidance. It detects unrelated changes and proposes splitting them into separate, focused commits to improve traceability and code review efficiency.

Does this commit message generator support guidelines for Chinese-speaking developers?

Yes, this commit message generator supports guidelines for Chinese-speaking developers. It provides clear bilingual instructions for both English and Chinese developers to ensure cross-language teams can maintain consistent Conventional Commits standards.

Can I use an automated protocol to execute Git commits without accidental changes?

Yes, you can prevent accidental changes by using a strict commit execution protocol. This skill outputs a .commit-message file and follows a safe workflow that ensures only the reviewed message and staged changes are committed, preventing unintended modifications.