commit-staged

Commit only staged Git changes with task ID-based messages.

10|6|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/WarLikeLaux/yii2-book-catalog --skill commit-staged-warlikelaux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-staged
Source: https://github.com/WarLikeLaux/yii2-book-catalog/tree/main/.claude/skills/commit-staged
Command: npx skills add https://github.com/WarLikeLaux/yii2-book-catalog --skill commit-staged-warlikelaux

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that only staged changes are committed, preventing accidental inclusion of unstaged modifications and enforcing a clean commit history.

Core Features & Use Cases

  • Staged-Only Commits: Strictly commits only files that have been explicitly added to the staging area (git add).
  • Staged Check: Automatically verifies if there are any staged changes; halts execution if the staging area is empty.
  • Automated Commit Message Generation: Assists in creating well-formatted commit messages based on task IDs and predefined verb lists.
  • Use Case: When you've finished a specific task and added all relevant files to the staging area, use this Skill to commit them with a correctly formatted message, ensuring no stray changes are included.

Quick Start

Use the commit-staged skill to commit your staged changes with an automatically generated message.

Frequently Asked Questions about commit-staged

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

FAQPage Schema
How do I commit only staged changes in Git without including unstaged modifications?

To commit only staged changes in Git, you must explicitly add files to the staging area using git add. This Skill processes those staged changes exclusively, preventing accidental inclusion of unstaged modifications and maintaining a clean history.

How does automated commit message generation work with task IDs?

Automated commit message generation works by combining predefined verb dictionaries with task IDs to enforce strict formatting rules. This mechanism ensures consistent, well-formatted commit messages without requiring manual entry for every staged change.

What happens if I try to commit when the staging area is empty?

If the staging area is empty, the commit process halts execution immediately. A staged check automatically verifies if there are any staged changes present, preventing the creation of empty commits and ensuring execution only proceeds with valid staged files.

Can I use this approach to rewrite Git history or amend previous commits?

No, you cannot use this approach to rewrite Git history or amend previous commits. The process strictly adheres to commit message formatting rules and explicitly disallows history rewriting operations, ensuring a linear and safe commit progression.

Is a strict staging area check necessary for version control safety?

A strict staging area check is necessary for version control safety because it prevents accidental inclusion of stray files. By verifying that staged changes are present and ignoring unstaged modifications, it enforces a clean and predictable commit history.