SkillsLLM
CategoriesBlogAI NewsAbout
HomeAI Agentscontextual-commits

contextual-commits

by berserkdisruptors

Pending

An open standard for capturing the WHY in git history

102stars
0forks
Added 3/17/2026
View on GitHubDownload ZIP
AI Agentsagentic-aiai-gitai-github-actionsautonomous-agentsclaude-codeclaude-skillscontextual-commitsdata-structuresgitopencodeopencode-skills
Installation
# Add to your Claude Code skills
git clone https://github.com/berserkdisruptors/contextual-commits
README.md

Spec License

Contextual Commits

Conventional Commits standardised WHAT changed. Contextual Commits add WHY.

A convention for embedding decision traces in git commit bodies. Every commit carries not just the code change, but the intent and reasoning that shaped it — structured as typed action lines that any tool can parse and any agent can query.

No new tools. No infrastructure. Just better commits.


Standard AI commit:

feat(auth): implement Google OAuth provider

Added GoogleAuthProvider class with passport.js integration.
Created callback route handler at /api/auth/callback/google.
Added refresh token logic with offline access scope.
Updated auth middleware to support multiple providers.

This restates what the diff already shows. Zero signal added.

Contextual commit:

feat(auth): implement Google OAuth provider

intent(auth): social login starting with Google, then GitHub and Apple
decision(oauth-library): passport.js over auth0-sdk for multi-provider flexibility
rejected(oauth-library): auth0-sdk — locks into their session model, incompatible with redis store
constraint(callback-routes): must follow /api/auth/callback/:provider pattern per existing convention
constraint(session-store): redis 24h TTL means tokens must refresh within that window
learned(passport-google): requires explicit offline_access scope for refresh tokens

The subject line tells you what. The body tells you why.


Motivation

AI coding tools are everywhere. Trust in their output isn't. The gap is context.

Every AI coding session produces three outputs:

  1. Code changes — committed to git. Preserved.
  2. Decisions — which approach was chosen, what was rejected, what constraints were found. Lost.
  3. Understanding — deeper comprehension of how the system works and why. Lost.

Two-thirds of every session's value evaporates when the conversation window closes. Commit history is the one context source every AI coding tool can access out of the box — yet the standard AI-generated commit body restates what the diff shows. What agents can't get from the diff is why an approach was chosen, what constraints shaped it, or what was tried and rejected.

Git tracks branches, diffs, and history. The one thing it doesn't track is reasoning. The commit body has always been available for this.

The context that disappears

The agent proposes an approach you already tried and rejected last session — but the reasoning that ruled it out died with the conversation window. It writes a clean implementation that violates a constraint it has no way of knowing about, and discovers it by failing. Three months later, another session sees a pattern in the code that looks arbitrary — it wasn't, but the reason existed in a conversation that no longer exists.

Same problem, three forms. AI coding sessions prod...

Comments (0)
to leave a comment.

No comments yet. Be the first to share your thoughts!

Related Skills

gemini-cli

by google-gemini

An open-source AI agent that brings the power of Gemini directly into your terminal.
98,015
12,330
TypeScript
AI Agentsaiai-agents
View details
everything-claude-code

by affaan-m

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
80,898
10,398
JavaScript
AI Agentsai-agentsanthropic
View details
awesome-claude-skills

by ComposioHQ

A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows
44,833
4,538
Python
AI Agentsagent-skillsai-agents
View details
ui-ux-pro-max-skill

by nextlevelbuilder

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
43,006
4,155
Python
CLI Toolsai-skillsantigravity
View details
chatgpt-on-wechat

by zhayujie

CowAgent是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、拥有长期记忆并不断成长。同时支持飞书、钉钉、企业微信、微信公众号、网页等接入,可选择OpenAI/Claude/Gemini/DeepSeek/ Qwen/GLM/Kimi/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助手和企业数字员工。
42,246
9,830
Python
AI Agentsaiai-agent
View details
cherry-studio

by CherryHQ

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs
41,614
3,857
TypeScript
AI Agentsai-agentclaude-code
View details