commit-context

Community

Write commits with clear why, not just what.

Authormthli
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents vague or incomplete git commit messages by deriving a commit narrative from the actual conversation context, so future readers can understand the motivation behind the diff.

Core Features & Use Cases

  • Generates story-driven commit messages: builds a Conventional Commits-style summary plus a short 2–5 line body focused on task intent and rationale.
  • Captures structured decision history: optionally writes MODULE-tagged # Decisions blocks keyed to a .claude/MODULES.md module registry for consistent downstream distillation.
  • Adds session cost context: pulls token usage for the current session via ccusage and appends it to the commit message when available.

Quick Start

Ask for it in chat, e.g. use /commit-context when you want a commit message built from the current session and diff.

Dependency Matrix

Required Modules

ccusagenpx

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: commit-context
Download link: https://github.com/mthli/skills/archive/main.zip#commit-context

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.