multiline-commit-messages

por prisma

Usa cadenas entre comillas simples para mensajes de commit multilínea en la herramienta Shell. Evita fallos de escape en heredoc que producen mensajes de commit distorsionados.

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.

Más skills de prisma

adr-review
prisma
Revisar uno o más ADRs con una mirada fresca (como miembro del equipo sin contexto previo), identificar problemas narrativos y estructurales, y luego reescribirlos. Usar cuando el…
ast-visitor-pattern
prisma
Usa el patrón frozen-class/visitor para uniones discriminadas que tienen múltiples sitios de despacho. Úsalo al crear un nuevo conjunto de variantes (comandos, nodos 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
Abrir un PR de contribuidor externo de alta calidad contra prisma-next. Usar cuando el usuario es un contribuidor externo (no un mantenedor de Prisma) y desea enviar un…
create-pr
prisma
Crea un PR de GitHub con un título con prefijo de ticket de Linear y una descripción narrativa basada en decisiones para prisma-next. Úsalo cuando el usuario quiera crear un 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 personajes de agente — marcos de sesgo nombrados que otras habilidades cargan para cambiar los valores predeterminados en tiempo de ejecución. Las habilidades nombran un personaje por ID (ej. "Adoptar el arquitecto…
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…