commit

Create structured git commits from staged changes with status and diff checks.

11|2|Updated May 29, 2025
One-click install
npx skills add https://github.com/yulonglin/dotfiles --skill commit-yulonglin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/yulonglin/dotfiles/tree/main/claude/skills/commit
Command: npx skills add https://github.com/yulonglin/dotfiles --skill commit-yulonglin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Commit current work by generating clear, well-formatted messages and ensuring status/diff checks.

Core Features & Use Cases

  • Check Status & Diffs: Review git status, short diffs, and recent commits to decide what to include.
  • Analyze & Organize: Identify logical changes and group them into coherent commits with meaningful messages.
  • Stage & Commit: Stage relevant files and craft concise commit messages following a subject-and-body format.
  • Workflow Guardrails: Enforce editor usage hints and prevent accidental pushes until explicitly allowed.
  • Use Case: While working on a bugfix, break the work into two commits: one for the fix and one for tests, with clear messages.

Quick Start

Provide a concise, well-formatted commit message for the currently staged changes.

Frequently Asked Questions about commit

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

FAQPage Schema
How do I generate clean git commit messages from staged changes?

To generate clean git commit messages, the Skill analyzes your staged changes and recent diffs to craft concise subject lines and contextual bullet points. It organizes logical changes into coherent commits automatically within a sandboxed environment.

Can I group multiple file changes into separate logical commits?

Yes, you can group file changes into separate logical commits. The Skill analyzes your current working tree to identify distinct modifications, such as separating a bugfix from its tests, and stages relevant files into coherent commits with meaningful messages.

How does this workflow handle git status and diffs before committing?

The workflow handles git status and diffs by reviewing them before committing. It checks your short diffs and recent commit history to decide what to include, ensuring your version control changes are organized and properly formatted.

Will this automatically push my code changes to the remote repository?

No, it will not automatically push your code changes. The Skill enforces workflow guardrails by providing optional push prompts and preventing accidental pushes until explicitly allowed, ensuring safe change management within a sandboxed environment.

What is the best way to format commit subjects and bodies for version control?

The best way to format commit subjects and bodies is using a concise subject-and-body format. The Skill enforces this structure by generating clear, well-formatted messages with short subject lines and contextual bullet points for your active development changes.