multiline-commit-messages

作成者: prisma

Shellツールでマルチラインのgitコミットメッセージにシングルクォート文字列を使用します。ヒアドキュメントのエスケープ失敗によるコミットメッセージの文字化けを防ぎます。

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.

prismaのその他のスキル

adr-review
prisma
1つ以上のADRを新たな視点で(事前知識のないチームメンバーとして)レビューし、ナラティブや構造上の問題を特定した上で、それらを書き直します。以下の場合に使用します…
ast-visitor-pattern
prisma
凍結クラス/ビジターパターンを、複数のディスパッチサイトを持つ判別共用体に使用します。新しいバリアントセット(コマンド、IRノードなど)を作成する際に使用してください。
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
prisma-nextに対する高品質な外部コントリビューターPRを開く。ユーザーが外部コントリビューター(Prismaメンテナーではない)であり、…を提出したい場合に使用する。
create-pr
prisma
GitHub PRを作成します。タイトルにはLinearチケットのプレフィックスを付け、説明にはprisma-next向けの意思決定を軸としたナラティブ形式の記述を含めます。ユーザーがプルリクエストを作成したい場合に使用します。
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…