contextual-commit
यह क्या करती है
यह स्किल ऐसे commit संदेश लिखती है जो कोड बदलाव के पीछे का तर्क सहेजते हैं, जैसे मकसद, फ़ैसले और बाधाएँ। यह उन डेवलपरों के लिए है जो चाहते हैं कि आगे पढ़ने वाले समझ सकें कि कोड ऐसा क्यों लिखा गया।
कब इस्तेमाल करें
- ✓जब आप कोड commit कर रहे हों या कोई काम पूरा कर रहे हों।
- ✓जब आप एजेंट से बदलाव commit करने को कहें।
- ✓जब कोई बदलाव बाधाओं या समझौतों से बना हो, जो अकेला diff नहीं दिखाता।
Skill का लिंक
https://github.com/yamadashy/repomix/blob/main/.agents/skills/contextual-commit/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“ये बदलाव commit कीजिए, और दर्ज कीजिए कि हमने यह तरीका क्यों चुना और किस बाधा ने इसे तय किया।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट मानक commit की पहली पंक्ति रखता है, फिर बॉडी में टाइप किए गए एक्शन लाइन जोड़ता है जो मकसद, फ़ैसले, बाधाएँ और सीखी गई बातें समझाते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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 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 no
अक्सर पूछे जाने वाले सवाल
क्या यह commit subject का फ़ॉर्मेट बदलती है?
नहीं। subject लाइन मानक Conventional Commits फ़ॉर्मेट का पालन करती है।
बॉडी में क्या जाता है?
टाइप किए गए एक्शन लाइन, जो तर्क बताती हैं, जैसे फ़ैसले, बाधाएँ और सीख।
सिर्फ़ बदलाव क्यों न लिखें?
diff पहले से दिखाता है कि क्या बदला, जबकि बॉडी वह कारण रखती है जो वरना खो जाएगा।
जानकारी
लेखक का मूल विवरण
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.
repo: yamadashy/repomix
लोकप्रियता
- GitHub स्टार
- 29k
- रैंकिंग में स्थान
- #9762
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
repomix
29kयह आपके एजेंट को पूरे कोड प्रोजेक्ट को एक AI-अनुकूल फ़ाइल में पैक करने में मदद करती है, ताकि वह ढांचा समझ सके, पैटर्न खोज सके और टोकन गिन सके।
agent-carnet
29kयह आपके एजेंट को छोटे नोट्स सहेजने, ढूँढने और व्यवस्थित करने देती है, जो सेशन के बीच बने रहते हैं। हर नोट इस्तेमाल होने पर 30 दिन का टाइमर रीसेट करता है, और बिना इस्तेमाल के नोट ट्रैश में चले जाते हैं।
repomix-explorer
29kयह आपके एजेंट को किसी अनजान कोडबेस को समझने में मदद करती है, लोकल या दूर का, उसे पैक करके और आउटपुट पढ़कर ढांचा समझाने और पैटर्न खोजने के लिए।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।