contextual-commit

Community

Capture why code changed alongside diffs

Authormistakenot
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Commits and diffs document what changed but rarely capture why decisions were made, what constraints existed, or which alternatives were rejected. This Skill helps preserve the development reasoning — intent, decisions, rejections, constraints, and learnings — directly in commit messages so future maintainers and agents understand the rationale behind code changes.

Core Features & Use Cases

  • Structured Commit Bodies: Enforces a Conventional Commit subject plus typed, scoped action lines (intent, decision, rejected, constraint, learned) in the body.
  • Context-Aware Guidance: Advises when to write action lines based on staged vs unstaged changes and when context is missing to avoid fabrication.
  • Use Case: When finishing a feature or fixing a bug, produce a commit that records the user's intent, chosen approach, discarded alternatives, and important constraints so replaying or reflecting on the session is easier.

Quick Start

Use the contextual-commit skill to write a commit for staged changes that captures intent, decisions, and constraints.

Dependency Matrix

Required Modules

None required

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: contextual-commit
Download link: https://github.com/mistakenot/auto-stack/archive/main.zip#contextual-commit

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.