multiline-commit-messages

por prisma

Use strings com aspas simples para mensagens de commit multilinha na ferramenta Shell. Evita falhas de escape de heredoc que produzem mensagens de commit corrompidas.

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.

Mais skills de prisma

adr-review
prisma
Revise um ou mais ADRs com um olhar novo (como um membro da equipe sem contexto prévio), identifique problemas narrativos e estruturais e, em seguida, reescreva-os. Use quando o…
ast-visitor-pattern
prisma
Use o padrão frozen-class/visitor para uniões discriminadas que possuem múltiplos locais de despacho. Use ao criar um novo conjunto de variantes (comandos, nós de 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
Abra um PR de contribuidor externo de alta qualidade contra o prisma-next. Use quando o usuário for um contribuidor externo (não um mantenedor do Prisma) e quiser enviar um…
create-pr
prisma
Cria um PR do GitHub com um título prefixado pelo ticket do Linear e uma descrição narrativa orientada por decisões para o prisma-next. Use quando o usuário quiser criar um 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
Biblioteca de personas de agente — frames de viés nomeados que outras skills carregam para alterar padrões de execução. Skills nomeiam uma persona por ID (ex.: "Adote o arquiteto…
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…