contextual-commit
Skill29k starsChanged 4 months agoMITView on GitHub
Write contextual commits that capture intent, decisions, and constraints alongside code changes. Use when committing code, finishing a task, or when the user asks to commit. Extends Conventional Commits with structured action lines in the commit body that preserve WHY code was written, not just WHAT changed.
1 other project uses a version of this, 1 of them edited.
How people change it
All 1 edited versions we compared keep every one of its 15 rules.
Of the 1 edited version we compared: 1 keep every rule.
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- berserkdisruptors/contextual-commitsedited, first seen Mar 3, 2026
Who's talking about yamadashy/repomix
- @github-trending.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 yamadashy / repomix ⭐ 10,219 (+114) 🗒 TypeScript 📦 Repomix (formerly …”Bluesky · Feb 23, 2025 · 12 likes
- @github-trending.bsky.social“📦 yamadashy / repomix ⭐ 4,532 (+94) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that …”Bluesky · Nov 29, 2024 · 6 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 yamadashy / repomix ⭐ 8,600 (+201) 🗒 TypeScript 📦 Repomix …”Bluesky · Feb 11, 2025 · 4 likes
- @barmartland.bsky.social“One of the better tools when developing in cooperation with your favorite AI in my opinion! Packs your …”Bluesky · Jan 7, 2025 · 4 likes
- @github-trending-js.bsky.social“📦 yamadashy / repomix ⭐ 4,545 (+94) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that …”Bluesky · Nov 29, 2024 · 4 likes
The biggest 5 of 81 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 81
Talked about on GitHub, Bluesky and Hacker News (81 times).
On GitHub · 50
- Mar 24, 2026ci: bump yamadashy/repomix from 1.12.0 to 1.13.0 in the github-actions-all group — Ven0m0/.github3 reactions · 2 comments
- Aug 10, 2026chore(deps-dev): bump the minor-and-patch group with 2 updates — norbu35/tasky2 reactions · 1 comment
- Aug 3, 2026chore(deps-dev): bump the minor-and-patch group with 2 updates — norbu35/tasky2 reactions · 1 comment
- Jun 1, 2026chore(deps-dev): bump the minor-and-patch group with 2 updates — norbu35/tasky2 reactions · 1 comment
- Apr 28, 2026ci: bump yamadashy/repomix from 1.13.1 to 1.14.0 in the github-actions-all group — Ven0m0/.github2 reactions · 1 comment
45 more on GitHub
- Feb 12, 2025demo suggestion: llms.txt from repo — AnswerDotAI/llms-txt2 reactions
- Jun 22, 2026chore(deps-dev): bump repomix from 1.14.1 to 1.15.0 in the minor-and-patch group — norbu35/tasky1 reaction · 1 comment
- May 30, 2026repomix: 1.14.0 -> 1.15.0 — NixOS/nixpkgs1 reaction · 6 comments
- May 25, 2026chore(deps-dev): bump the minor-and-patch group across 1 directory with 3 updates — norbu35/tasky1 reaction · 1 comment
- May 10, 2026Tools Comparisons alternatives — jgravelle/jcodemunch-mcp1 reaction · 6 comments
- May 4, 2026chore(deps): bump the minor-and-patch group across 1 directory with 36 updates — norbu35/tasky1 reaction · 7 comments
- Apr 27, 2026chore(deps): bump the minor-and-patch group across 1 directory with 32 updates — norbu35/tasky1 reaction · 2 comments
- Apr 26, 2026chore(deps): bump the minor-and-patch group across 1 directory with 31 updates — norbu35/tasky1 reaction · 2 comments
- May 31, 2025[Bug]: Plugin fails with VitePress `rewrites` configuration — okineadev/vitepress-plugin-llms1 reaction · 8 comments
- May 3, 2025[Snyk] Upgrade repomix from 0.2.24 to 0.3.1 — RectiFlex/AI_CO_FOUNDER1 reaction · 4 comments
- Apr 1, 2025repomix: 0.3.0 -> 0.3.1 — NixOS/nixpkgs1 reaction
- Mar 9, 2025[Server Submission]: Repomix MCP Server — cline/mcp-marketplace1 reaction · 1 comment
- Nov 22, 2026Sync: yamadashy/repomix@f0bcc08 — rmd-actions/repomix0 reactions · 1 comment
- Nov 17, 2026chore(deps): Bump the cliente-menores group with 4 updates — WilkerDev1/solarsim-pro0 reactions
- Nov 15, 2026Sync: yamadashy/repomix@813a886 — rmd-actions/repomix0 reactions · 1 comment
- Nov 14, 2026Bump repomix from 1.18.0 to 1.19.0 — kylereetz/Agentic-SOC0 reactions
- Nov 13, 2026chore(deps): bump minimatch and repomix — Bigessfour/TIKR-Town-Institutional-Knowledge-Tracker0 reactions · 1 comment
- Nov 13, 2026chore(deps): bump minimatch and repomix — jasonmichaelbell78-creator/JASON-OS0 reactions · 3 comments
- Nov 12, 2026Bump minimatch and repomix in /tools/oracle — RobGruhl/Toolbelt-Shared0 reactions
- Nov 8, 2026Sync: yamadashy/repomix@5becbb5 — rmd-actions/repomix0 reactions · 1 comment
- Nov 1, 2026Evaluate code-analysis tools for evidence-backed repository insights — Sonberg/capability-explorer0 reactions · 10 comments
- Nov 1, 2026Sync: yamadashy/repomix@2050e90 — rmd-actions/repomix0 reactions · 1 comment
- Oct 31, 2026chore(deps): bump zod and repomix in /website/server — michaelworthington/repomix0 reactions
- Oct 25, 2026Sync: yamadashy/repomix@64c9671 — rmd-actions/repomix0 reactions · 1 comment
- Oct 19, 2026Review catalog: eight upstream tools for Codex and Claude Code — faheemkhaskheli9/Local-AI-Ops0 reactions
- Oct 18, 2026Sync: yamadashy/repomix@55c6de6 — rmd-actions/repomix0 reactions · 1 comment
- Oct 12, 2026Support for repomix — cbartens/bkit0 reactions · 5 comments
- Oct 12, 2026📌 Official Index & Maintainer Verification: 💬 Communication & CRM (98 Servers) — tonylate520/mcp-serverlist0 reactions · 16 comments
- Oct 7, 2026Bump repomix from 1.18.0 to 1.18.1 in /tools/oracle — RobGruhl/Toolbelt-Shared0 reactions
- Oct 4, 2026Sync: yamadashy/repomix@8d64291 — rmd-actions/repomix0 reactions · 1 comment
- Sep 10, 2026repo_ingest: no repomix ignore list; run-history/SBOM noise dominates the pack — qte77/agentic-codebase-to-scientific-report0 reactions
- Aug 17, 2026Dérive catalogues détectée (2026-08-17) — CustomDigitalServices-Kevin/claude-config-studio0 reactions
- Aug 11, 2026Prototype an optional Repomix repository-context adapter — naoyagamiai/kairos-local-agent-harness0 reactions
- Aug 11, 2026deps: bump repomix from 1.14.1 to 1.17.0 — geehexx/library-ops0 reactions · 1 comment
- Aug 5, 2026feat: add Core OSS — JustineDevs/gitleap0 reactions
- Jul 25, 2026Bump repomix from 1.12.0 to 1.17.0 — pixellatedpirate/Markidian_mcp0 reactions
- Jul 22, 2026Install repomix-explorer skill from yamadashy/repomix — chookaittom-gif/Donation-System0 reactions · 1 comment
- Jul 21, 2026[Argus] CVE-2026-59702: repomix - Server-Side Request Forgery via Unvalidated Repository URLs in POST /api/pack — LEEKIYOON-SEC/Argus-DEV0 reactions
- Jul 9, 2026repomix: security issues < 1.14.1 — NixOS/nixpkgs0 reactions
- Jul 2, 2026chore(deps-dev): bump repomix from 1.2.1 to 1.14.1 in /multimodal — RHODIZSECURITY/UI-TARS-desktop0 reactions
- Jul 2, 2026build(deps-dev): bump repomix from 1.13.1 to 1.14.1 — reisinger-pictures/dev.reisinger.pictures0 reactions
- Jul 2, 2026build(deps-dev): bump repomix from 1.13.1 to 1.14.1 — reisi007/openapi-confluence-converter0 reactions
- Jul 2, 2026Bump the npm_and_yarn group across 2 directories with 8 updates — peterkc/mcp-code-review-server0 reactions
- Jul 2, 2026chore(deps-dev): bump repomix from 1.14.0 to 1.14.1 — kalindudc/cortex0 reactions
- Jun 17, 2026feat(agent-context-resolver): add repomix-style repo pack artifact adapter — fatb4f/contract.cuemod0 reactions
On Bluesky · 28
- Feb 23, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 yamadashy / repomix ⭐ 10,219 (+114) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool… — @github-trending.bsky.social12 likes and reposts · 1 reply
- Nov 29, 2024📦 yamadashy / repomix ⭐ 4,532 (+94) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into… — @github-trending.bsky.social6 likes and reposts
- Feb 11, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 yamadashy / repomix ⭐ 8,600 (+201) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool… — @github-trending-js.bsky.social4 likes and reposts
- Jan 7, 2025One of the better tools when developing in cooperation with your favorite AI in my opinion! Packs your entire repo into a .txt file that… — @barmartland.bsky.social4 likes and reposts · 1 reply
- Nov 29, 2024📦 yamadashy / repomix ⭐ 4,545 (+94) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into… — @github-trending-js.bsky.social4 likes and reposts
23 more on Bluesky
- Nov 17, 2024📦 yamadashy / repomix ⭐ 3,997 (+47) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into… — @github-trending-js.bsky.social4 likes and reposts
- Mar 12, 2025📦 yamadashy / repomix ⭐ 12,896 (+91) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository… — @github-trending-js.bsky.social3 likes and reposts
- Feb 25, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 yamadashy / repomix ⭐ 11,299 (+487) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool… — @github-trending-js.bsky.social3 likes and reposts
- Jan 25, 2025📦 yamadashy / repomix ⭐ 7,466 (+51) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into… — @github-trending-js.bsky.social3 likes and reposts
- Jan 20, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 yamadashy / repomix ⭐ 6,556 (+115) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that… — @github-trending-js.bsky.social3 likes and reposts
- Feb 7, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 yamadashy / repomix ⭐ 8,115 (+135) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that… — @github-trending-js.bsky.social2 likes and reposts
- Jan 21, 2025今日のGitHubトレンド yamadashy/repomix このリポジトリは、コードベース全体をAIが扱いやすい単一ファイルに変換するツール「Repomix」を提供します。… — @dailygithubtrends.bsky.social2 likes and reposts
- Nov 2, 2024🚀 Skyrocketing! 🚀 (200+ new stars) 📦 yamadashy / repomix ⭐ 2,949 (+455) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- May 23, 2026📦 yamadashy / repomix ⭐ 25,349 (+89) 🗒 TypeScript 📦 Repomix is a powerful tool that packs your entire repository into a single,… — @github-trending-js.bsky.social1 likes and repost
- Jul 11, 2025So that's what he meant github.com/yamadashy/re... — @olifer.org1 likes and repost · 2 replies
- Jul 10, 2025📦 yamadashy / repomix ⭐ 17,601 (+35) 🗒 TypeScript 📦 Repomix is a powerful tool that packs your entire repository into a single,… — @github-trending-js.bsky.social1 likes and repost
- Apr 22, 2025📦 yamadashy / repomix ⭐ 14,927 (+53) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository… — @github-trending-js.bsky.social1 likes and repost
- Feb 21, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 yamadashy / repomix ⭐ 9,920 (+159) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that… — @github-trending-js.bsky.social1 likes and repost
- Feb 19, 2025Came across github.com/yamadashy/re... today and man is that really cool project! Worked surprisingly well on a React app codebase with… — @ethanholz.com1 likes and repost · 1 reply
- Feb 9, 2025📦 yamadashy / repomix ⭐ 8,323 (+84) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into… — @github-trending.bsky.social1 likes and repost
- Jan 21, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 yamadashy / repomix ⭐ 6,697 (+126) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that… — @github-trending.bsky.social1 likes and repost
- Jan 19, 2025yamadashy/repomix: 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into a single, AI-friendly file.… — @latitude77.bsky.social1 likes and repost
- Jan 11, 2025📦 yamadashy / repomix ⭐ 6,157 (+42) 🗒 TypeScript 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into… — @github-trending-js.bsky.social1 likes and repost
- Dec 19, 2024TIL about Repomix: "powerful tool that packs your entire repository into a single, AI-friendly file." github.com/yamadashy/re... Thanks… — @radek.benkel.pl1 likes and repost · 1 reply
- Dec 8, 2024Another good one: github.com/yamadashy/re... — @sigmundfried.bsky.social1 likes and repost
- Nov 12, 2024If you haven't tried it yet: github.com/yamadashy/re... will can turn your repo into one file, making it super easy to feed to a chatbot… — @yperlitz.bsky.social1 likes and repost · 1 reply
- May 14, 2025First, got a baseline token count for the python-docs-samples repo. Tool: github.com/yamadashy/re... from @yamadashy.bsky.social Command:… — @kweinmeister.bsky.social0 likes and reposts · 1 reply
- Feb 20, 2025I've been using mandark's copy mode to get all the code into 1 file (actually clipboard). Harper mentions github.com/yamadashy/re... — @callmephilip.com0 likes and reposts · 1 reply
On Hacker News · 3
- Nov 2, 2024Repomix: Packs your entire repository into a single, AI-friendly file4 points
- Jul 11, 2025Repomix, a tool that packs your entire repository into a single AI-friendly file2 points
- Feb 16, 2025Repomix: Code Compression with Tree-sitter1 point
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- berserkdisruptors/contextual-commits★ 154100% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- browser/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/base.mdcCursor rule
- repomixSkill
- agent-carnetSkill
- repomix-explorerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 14 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Follow Conventional Commits exactly.
- Distinctive: line 48
Use only the types that apply.
- Distinctive: line 66
When to use: When you evaluated options.
- Distinctive: line 75
When to use: Every time you or the user considered a meaningful alternative and chose not to pursue it.
- Distinctive: line 84
When to use: When non-obvious limitations influenced the implementation.
- Distinctive: line 102
If nothing is staged: consider all unstaged modifications and untracked files as candidates.
- Distinctive: line 149
When intent changes during work, capture it on the commit where the pivot happens:
- Distinctive: line 181
Regular merges: Commit bodies preserved intact.
- Distinctive: line 182
Squash merges: All commit bodies concatenated into the squash commit body.
- Distinctive: line 183
Rebase and cherry-pick: Commit bodies preserved.
- Distinctive: line 187
The subject line is a Conventional Commit: Never break existing conventions or tooling.
- Distinctive: line 188
Action lines go in the body only: Never in the subject line.
- Distinctive: line 189
Only write action lines that carry signal: If the diff already explains it, don't repeat it.
- Very specific: line 191
Use consistent scopes within a project: If you called it auth in one commit, don't call it authentication in the next.
- Distinctive: line 195
Don't fabricate context you don't have: If you weren't part of the reasoning, don't pretend you were.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
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 entrySubject Line
Follow Conventional Commits exactly. Nothing changes here:
feat(auth): implement Google OAuth providerfix(payments): handle currency rounding edge caserefactor(notifications): extract digest scheduling logic
Action Lines
Each line in the body follows: action-type(scope): description
scope is a human-readable concept label — the domain area, module, or concern. Examples: auth, payment-flow, oauth-library, session-store, api-contracts. Use whatever is meaningful in this project's vocabulary. Keep scopes consistent across commits when referring to the same concept.
Action Types
Use only the types that apply. Most commits need 1-3 action lines. Never pad with noise.
intent(scope): ...
What the user wanted to achieve and why. Captures the human's voice, not your interpretation.
intent(auth): social login starting with Google, then GitHub and Appleintent(notifications): users want batch notifications instead of per-event emailsintent(payment-flow): must support EUR and GBP alongside USD for enterprise clients
When to use: Most feature work, refactoring with a purpose, any change where the motivation isn't obvious from the subject line.
decision(scope): ...
What approach was chosen when alternatives existed. Brief reasoning.
decision(oauth-library): passport.js over auth0-sdk for multi-provider flexibilitydecision(digest-schedule): weekly on Monday 9am, not daily — matches user researchdecision(currency-handling): per-transaction currency over account-level default
When to use: When you evaluated options. Skip for obvious choices with no real alternatives.
rejected(scope): ...
What was considered and explicitly discarded, with the reason. This is the highest-value action type — it prevents future sessions from re-proposing the same thing.
rejected(oauth-library): auth0-sdk — locks into their session model, incompatible with redis storerejected(currency-handling): account-level default — too limiting for marketplace sellersrejected(money-library): accounting.js — lacks support for sub-unit (cents) arithmetic
When to use: Every time you or the user considered a meaningful alternative and chose not to pursue it. Always include the reason.
constraint(scope): ...
Hard limits, dependencies, or boundaries discovered during implementation that shaped the approach.
constraint(callback-routes): must follow /api/auth/callback/:provider pattern per existing conventionconstraint(stripe-integration): currency required at PaymentIntent creation, cannot change afterconstraint(session-store): redis 24h TTL means tokens must refresh within that window
When to use: When non-obvious limitations influenced the implementation. Things the next person working here would need to know.
learned(scope): ...
Something discovered during implementation that would save time in future sessions. API quirks, undocumented behavior, performance characteristics.
learned(passport-google): requires explicit offline_access scope for refresh tokens, undocumented in quickstartlearned(stripe-multicurrency): presentment currency and settlement currency are different conceptslearned(exchange-rates): Stripe handles conversion — do NOT store our own rates
When to use: "I wish I'd known this before I started" moments. Library gotchas, API surprises, non-obvious behaviors.
Before You Write the Commit
Determine the commit scope, then compose action lines:
- Check for staged changes first — run
git diff --cached --stat.- If staged changes exist: these are the commit scope. Do not consider unstaged or untracked files — the user has already expressed what belongs in this commit by staging it.
- If nothing is staged: consider all unstaged modifications and untracked files as candidates. Use session context and the diff to decide what to stage and commit.
- Identify what you have session context for — changes you produced, discussed, or observed reasoning for during this conversation.
- Identify what you don't — files or changes from a prior session, another agent, or manual edits outside this conversation.
- Write action lines accordingly:
- For changes you have context for: full action lines from session knowledge.
- For changes you don't: apply the "When You Lack Conversation Context" rules below — write only what the diff evidences.
The commit message must account for ALL changes in the commit scope, not just the ones you worked on. Ignoring changes you didn't produce is worse than writing thin action lines for them.
Examples
Simple fix — no action lines needed
fix(button): correct alignment on mobile viewportThe conventional commit subject is sufficient. Don't add noise.
Moderate feature
feat(notifications): add email digest for weekly summaries
intent(notifications): users want batch notifications instead of per-event emails
decision(digest-schedule): weekly on Monday 9am — matches user research feedback
constraint(email-provider): SendGrid batch API limited to 1000 recipients per callComplex architectural change
refactor(payments): migrate from single to multi-currency support
intent(payments): enterprise customers need EUR and GBP alongside USD
intent(payment-architecture): must be backward compatible, existing USD flows unchanged
decision(currency-handling): per-transaction currency over account-level default
rejected(currency-handling): account-level default too limiting for marketplace sellers
rejected(money-library): accounting.js — lacks sub-unit arithmetic, using currency.js instead
constraint(stripe-integration): Stripe requires currency at PaymentIntent creation, cannot change after
constraint(database-migration): existing amount columns need companion currency columns, not replacement
learned(stripe-multicurrency): presentment currency vs settlement currency are different Stripe concepts
learned(exchange-rates): Stripe handles conversion, we should NOT store our own ratesMid-implementation pivot
When intent changes during work, capture it on the commit where the pivot happens:
refactor(auth): switch from session-based to JWT tokens
intent(auth): original session approach incompatible with redis cluster setup
rejected(auth-sessions): redis cluster doesn't support session stickiness needed by passport sessions
decision(auth-tokens): JWT with short expiry + refresh token pattern
learned(redis-cluster): session affinity requires sticky sessions at load balancer level — too invasiveWhen You Lack Conversation Context
Sometimes staged changes include work you didn't produce in this session — prior session output, another agent's changes, pasted code, externally generated files, or manual edits. For any change where you lack the reasoning trail:
Only write action lines for what is clearly evidenced in the diff. Do not speculate about intent or constraints you cannot observe.
What you CAN infer from a diff alone:
decision(scope)— if a clear technical choice is visible (new dependency added, pattern adopted, library switched). Example:decision(http-client): switched from axios to native fetchis visible from the diff.
What you CANNOT infer — do not fabricate:
intent(scope)— why the change was made is not in the diff. Don't restate what the diff shows.rejected(scope)— what was NOT chosen is invisible in what WAS committed.constraint(scope)— hard limits are almost never visible in code changes.learned(scope)— learnings come from the process, not the output.
A clean conventional commit subject with no action lines is always better than fabricated context.
Git Workflows
Contextual commits work with every standard git workflow. No special handling needed.
- Regular merges: Commit bodies preserved intact.
- Squash merges: All commit bodies concatenated into the squash commit body. The result is a chronological trail of typed, scoped action lines — agents parse, filter, and group these without issue.
- Rebase and cherry-pick: Commit bodies preserved.
Rules
- The subject line is a Conventional Commit. Never break existing conventions or tooling.
- Action lines go in the body only. Never in the subject line.
- Only write action lines that carry signal. If the diff already explains it, don't repeat it. If there was nothing to decide, reject, or discover, write no action lines.
- Be concise but complete. Each action line should be a single clear statement. No artificial length limits, but don't write essays either.
- Use consistent scopes within a project. If you called it
authin one commit, don't call itauthenticationin the next. - Capture the user's intent in their words. For
intentlines, reflect what the human asked for, not your implementation summary. - Always explain why for
rejectedlines. A rejection without a reason is useless — the next agent will just re-propose it. - Don't invent action lines for trivial commits. A typo fix, a dependency bump, a formatting change — the conventional commit subject is enough.
- Don't fabricate context you don't have. If you weren't part of the reasoning, don't pretend you were. See "When You Lack Conversation Context" above.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

