commit-staged

Analyze staged git changes to generate conventional commit messages.

1|1|Updated May 1, 2026
One-click install
npx skills add https://github.com/funsaized/claude-and-codex-settings --skill commit-staged-funsaized
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-staged
Source: https://github.com/funsaized/claude-and-codex-settings/tree/main/plugins/github-dev/skills/commit-staged
Command: npx skills add https://github.com/funsaized/claude-and-codex-settings --skill commit-staged-funsaized

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers ensure consistent, expressive commit messages by analyzing only staged changes, aligning with project standards, and incorporating any extra context provided at invocation.

Core Features & Use Cases

  • Analyzes staged changes (git diff --cached) to generate a clean, conventional commit message.
  • Accepts extra context from the user invocation to enrich the commit body with rationale, findings, and motivation.
  • Enforces a conventional commit structure (type, scope, subject) and provides guidance for documenting complex changes.
  • Use Case: When you finish a feature and want a clear, standards-aligned commit that communicates why changes were made.

Quick Start

Provide any extra context about the changes when invoking this skill to tailor the commit plan and messages.

Frequently Asked Questions about commit-staged

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

FAQPage Schema
How do I generate a conventional commit message from staged changes?

To generate a conventional commit message from staged changes, the skill analyzes your git diff --cached output to produce a structured commit plan with type, scope, and subject. It also incorporates session history and invocation context to document the rationale behind the modifications.

What is the best way to include extra context when crafting a git commit message?

The best way to include extra context when crafting a git commit message is to provide that context during skill invocation. The skill uses this additional information to enrich the commit body with motivation, findings, and rationale alongside the generated conventional commit structure.

Does this commit message generator work with unstaged files in my version control workflow?

No, this commit message generator does not work with unstaged files in your version control workflow. It strictly analyzes only staged changes to ensure the generated commit message accurately reflects the exact modifications scheduled for the next commit snapshot.

How to document the rationale for complex git commits in conventional format?

To document the rationale for complex git commits in conventional format, the skill integrates motivation from available session history and applies provided invocation context. It enforces the conventional commit structure while adding detailed notes explaining why the changes were made.

Can I use session history to enrich my git commit messages automatically?

Yes, you can use session history to enrich your git commit messages automatically. The skill integrates available session history to extract motivation and context, weaving this background information into the standardized commit notes and body text.