multiline-commit-messages

Format multiline git commit messages with single-quoted strings.

47.5k|2.5k|Updated Jun 20, 2019
One-click install
npx skills add https://github.com/prisma/prisma --skill multiline-commit-messages
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: multiline-commit-messages
Source: https://github.com/prisma/prisma/tree/main/skills-contrib/multiline-commit-messages
Command: npx skills add https://github.com/prisma/prisma --skill multiline-commit-messages

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents the Shell tool from failing when processing multiline git commit messages, which often results in garbled or incorrectly formatted commit logs due to heredoc parsing issues.

Core Features & Use Cases

  • Syntax Standardization: Enforces the use of single-quoted strings for commit messages to ensure shell compatibility.
  • Error Prevention: Eliminates silent failures caused by heredoc delimiters and newline character interactions in automated shell commands.
  • Use Case: When an AI agent needs to commit a complex change with a detailed body paragraph, this skill ensures the message is passed to git exactly as intended without shell escaping errors.

Quick Start

Use the multiline-commit-messages skill to format your next git commit command with a single-quoted string containing your summary and body text.

Frequently Asked Questions about multiline-commit-messages

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do multiline git commit messages fail in shell automation?

Multiline git commit messages fail in shell automation due to heredoc parsing issues and newline character interactions. Using single-quoted string literals instead of heredoc delimiters prevents silent failures and ensures the message is passed to git exactly as intended.

How do I format a multiline git commit message in a shell command?

To format a multiline git commit message in a shell command, enclose the entire message, including the summary and body paragraphs, within single-quoted string literals. This enforces shell compatibility and prevents heredoc parsing errors.

What is the best way to automate detailed git commits with body text in AI agents?

The best way to automate detailed git commits with body text in AI agents is to standardize shell command syntax by mandating single-quoted string literals. This approach eliminates garbled logs and maintains shell command integrity for complex version control workflows.

Does using heredoc delimiters cause silent failures when committing multiline text?

Yes, using heredoc delimiters causes silent failures when committing multiline text in automated shell commands. Heredoc delimiters interact poorly with newline characters, resulting in garbled or incorrectly formatted commit logs.

When do I need single-quoted strings for git commit automation?

You need single-quoted strings for git commit automation when an AI agent requires detailed body paragraphs and structured explanations in a shell-based environment. This syntax standardization prevents shell escaping errors during version control workflows.