multiline-commit-messages

โดย prisma

ใช้สตริงที่อยู่ในเครื่องหมายคำพูดเดี่ยวสำหรับข้อความ commit ของ git แบบหลายบรรทัดในเครื่องมือ Shell เพื่อป้องกันความล้มเหลวจากการ escape ของ heredoc ที่ทำให้ข้อความ commit เสียหาย

npx skills add https://github.com/prisma/prisma-next --skill multiline-commit-messages

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.

Skills เพิ่มเติมจาก prisma

adr-review
prisma
ตรวจสอบ ADR หนึ่งรายการขึ้นไปด้วยมุมมองใหม่ (ในฐานะสมาชิกทีมที่ไม่มีบริบทมาก่อน) ระบุปัญหาเชิงเนื้อหาและโครงสร้าง จากนั้นเขียนใหม่ ใช้เมื่อ...
ast-visitor-pattern
prisma
ใช้รูปแบบ frozen-class/visitor สำหรับ discriminated unions ที่มีหลาย dispatch sites ใช้เมื่อสร้างชุด variants ใหม่ (commands, IR nodes,…)
bumping-biome
prisma
Bumps `biome` package versions (e.g. `@biomejs/biome`) using `pnpm`, aligns `biome.jsonc` files with the new version/s across the repository and runs…
contrib-pr
prisma
เปิด PR จากผู้มีส่วนร่วมภายนอกคุณภาพสูงไปยัง prisma-next ใช้เมื่อผู้ใช้เป็นผู้มีส่วนร่วมภายนอก (ไม่ใช่ผู้ดูแล Prisma) และต้องการส่ง…
create-pr
prisma
สร้าง GitHub PR โดยใช้ชื่อที่มีคำนำหน้าตามตั๋ว Linear และคำอธิบายแบบเน้นการตัดสินใจและเล่าเรื่องสำหรับ prisma-next ใช้เมื่อผู้ใช้ต้องการสร้าง pull…
draft-release-notes
prisma
Author the committed release-notes file for a stable Prisma Next release by enumerating the merged PRs since the previous stable `v*` tag, resolving opaque…
drive-agent-personas
prisma
คลังบุคลิกของเอเจนต์ — กรอบอคติที่มีชื่อ ซึ่งสกิลอื่นโหลดมาใช้เพื่อเปลี่ยนค่าเริ่มต้นขณะทำงาน สกิลจะระบุชื่อบุคลิกด้วย ID (เช่น "นำบุคลิกของสถาปนิกมาใช้…
drive-code-review
prisma
Generate local PR/branch review artifacts for the current branch vs its base — an in-repo canonical spec (if present) or an inferred review `spec.md`, plus…