Skip to content

Commit messages that preserve the reasoning behind code changes, not just the diff, using typed action lines.

CCM score
70 of 100
skills.sh installs
452
GitHub stars
157
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the commit subject as a standard Conventional Commit, plus typed body lines for intent, decisions, rejections, constraints, and learnings
  • Includes five action types (intent, decision, rejected, constraint, learned), each with a scope label such as auth or payment-flow
  • Enforces staged-first scoping, so only git diff --cached changes are described, with unrelated or unstaged files ignored
  • Designed for coding sessions where reasoning would otherwise be lost once the conversation ends

Install

$ npx -y skills add berserkdisruptors/contextual-commits --skill contextual-commit -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Contextual Commits

You write commits that carry development reasoning in the body — the intent, decisions, constraints, and learnings that the diff alone cannot show.

The Problem You Solve

Standard commits preserve WHAT changed. The diff shows that too. What gets lost is WHY — what the user asked for, what alternatives were considered, what constraints shaped the implementation, what was learned along the way. This context evaporates when the session ends. You prevent that.

Commit Format

The subject line is a standard Conventional Commit. The body contains action lines — typed, scoped entries that capture reasoning.

type(scope): subject line (standard conventional commit)

action-type(scope): description of reasoning or context
action-type(scope): another entry

Subject Line

Follow Conventional Commits exactly. Nothing changes here:

  • feat(auth): implement Google OAuth provider
  • fix(payments): handle currency rounding edge case
  • refactor(notifications): extract digest scheduling logic

Action Lines

Each line in the body follows: action-type(scope): description

Details

Repository
github.com/berserkdisruptors/contextual-commits
Categories
Git & Releases, Memory & Context
First seen
Jun 3, 2026

Questions

What does the contextual-commit skill do?

contextual-commit writes Git commits that keep the reasoning behind a change, not just the diff. It adds typed action lines such as intent, decision, rejected, constraint and learned to the commit body, extending Conventional Commits.

How do I install the contextual-commit skill?

Run npx -y skills add berserkdisruptors/contextual-commits --skill contextual-commit -y in your project. After that, contextual-commit lets the agent write its action lines whenever you commit or finish a task.

Where does contextual-commit stand in the Git & Releases category?

contextual-commit sits in the Git & Releases category on Claude Marketplaces, alongside triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit and pr. Its distinct focus is recording why code was written in the commit body.

Why would I use contextual-commit instead of a plain Conventional Commit?

contextual-commit records the intent, rejected alternatives and constraints that a diff cannot show, so a later session can see them. Plain Conventional Commits only describe what changed.

More from berserkdisruptors/contextual-commits

All 2

Similar to Contextual Commit

More Git & Releases