मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग48k · #6311

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/prisma/orm/blob/main/skills-contrib/multiline-commit-messages/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस 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