multiline-commit-messages
यह क्या करती है
यह आपके एजेंट को सिखाती है कि बहु-पंक्ति commit संदेश ऐसे कैसे लिखें जिन्हें shell भरोसे से आगे पहुँचाए। यह उन डेवलपर्स के लिए है जिनका एजेंट commits बनाता है और कभी-कभी संदेश बिगड़ जाते हैं।
कब इस्तेमाल करें
- ✓जब आपका एजेंट एक से ज़्यादा पंक्तियों वाले संदेश के साथ git commit बनाता है।
- ✓जब commit संदेश में shell का बेमतलब टेक्स्ट आ गया हो।
- ✓जब आप चाहते हैं कि commit संदेश में सारांश पंक्ति और विवरण का पैराग्राफ़ हो।
Skill का लिंक
https://github.com/prisma/orm/blob/main/skills-contrib/multiline-commit-messages/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप इन बदलावों को एक छोटे सारांश और संदेश में दो पैराग्राफ़ के स्पष्टीकरण के साथ commit कर सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट संदेश को असली line breaks के साथ single-quoted string में लिखता है, command substitution के अंदर heredoc के बजाय। फिर shell उसे जैसा लिखा है वैसा git को भेजता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Multiline commit messages
The Shell tool sends commands as a single string. Heredoc syntax (<<'EOF') inside $(cat ...) is fragile and fails silently — the literal $(cat <<'EOF' ... ends up as the commit message instead of the intended text.
Rule
Never use $(cat <<'EOF' ...) or $(cat <<EOF ...) for commit messages.
Use single-quoted strings with embedded newlines:
git commit -m 'short summary line
Longer body paragraph explaining why the change exists.
Additional context if needed.'
Why heredocs fail
The Shell tool passes the command as a single string argument. When you write:
git commit -m "$(cat <<'EOF'
message
EOF
)"
The shell may not parse the heredoc correctly in this context — the EOF delimiter, newlines, and nested quoting interact unpredictably. The result is the raw $(cat <<'EOF' ... text appearing as the commit message.
Single-quoted strings with literal newlines are simple, portable, and always work.
अक्सर पूछे जाने वाले सवाल
heredoc क्यों विफल होता है?
स्किल कहती है कि shell उसे उस संदर्भ में सही ढंग से parse नहीं कर सकता, इसलिए कच्चा कमांड टेक्स्ट ही संदेश बन सकता है।
यह कहाँ लागू होता है?
स्किल एजेंट के Shell टूल के लिए लिखी गई है, जो हर कमांड को एक string के रूप में भेजता है, इसलिए वहाँ यही तरीका सबसे सुरक्षित है।
मुख्य नियम क्या है?
commit संदेशों के लिए command substitution के अंदर heredoc न लें। newlines वाली single-quoted string इस्तेमाल करें।
जानकारी
लेखक का मूल विवरण
Use single-quoted strings for multiline git commit messages in the Shell tool. Prevents heredoc escaping failures that produce garbled commit messages.
repo: prisma/orm
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #6311
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
adr-review
48kआपके एजेंट को architecture decision records को नई नज़र से जाँचना और फिर उन्हें दोबारा लिखना सिखाती है, ताकि नए पाठकों को फ़ैसला साफ़ समझ आए।
ast-visitor-pattern
48kआपके एजेंट को कई जगह संभाले जाने वाले union types के लिए कोड पैटर्न सिखाती है, ताकि नया जोड़ा गया variant compiler पकड़ ले।
markdown-no-artificial-line-wraps
48kआपके एजेंट को Markdown में पूरे पैराग्राफ़ एक ही पंक्ति में लिखने में मदद करती है, ताकि स्क्रीन पर टेक्स्ट साफ़ लिपटे और फ़ाइल के बदलाव भी साफ़ रहें।
product-direction
48kआपके एजेंट को किसी फ़ीचर अनुरोध को प्रोजेक्ट की लिखित product दिशा से मिलाने, तर्क सहित फ़ैसला देने और हर 'ना' को दर्ज करने में मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।