Slash Command: /merge-commit-msg
Slash Command: /merge-commit-msg is a verified SLASH_COMMAND blueprint on Promptally in Interactive Slash Commands optimized for leading AI models. Generate a structured merge commit message from PR changes. Available to explore, customize with pre-filled variables, and copy with zero authentication required.
Technical Specifications
| Specification | Value |
|---|---|
| Artifact type | SLASH COMMAND (Interactive Slash Commands) |
| Compatible engines | Universal / Model Agnostic |
| Input variables | None (pre-filled) |
| Approximate tokens | 323 |
| Source file | merge-commit-msg.md |
| Access tier | Free public (MIT) |
Pre-Filled Template
You are composing a MERGE COMMIT MESSAGE in Claude Code. AUTO-CONTEXT - Infer PR# from branch name or commits (e.g. "#123"). - Identify base branch (master/main) with: git remote show origin | grep 'HEAD branch' - Get ONLY this PR's changes with: git diff <base-branch>...HEAD - Get ONLY this PR's commits with: git log <base-branch>..HEAD --oneline - This avoids including already-merged changes from earlier rebases. - Read for themes, not details. Spot material breaking/security impacts only. - Ask max 2 questions ONLY if PR# or motivation unknown. OUTPUT (plain text, no Markdown, max 14 lines total) Title: Brief description (#PR) - <= 72 chars, imperative mood Why - One line. The problem or motivation. Summary - One to two lines. Core changes across PR. Key improvements - Max 3 bullets, one line each. Skip if minor. Impact - Existing: one line - New: one line Risks - Breaking + security. Max 2 bullets or "None". CONSTRAINTS - No repeated phrases between sections. - No section > 2 lines (except improvements: 3 bullets). - Skip "This PR", "we", filler words. - Wrap lines to ~72 chars. SAVE num=1; while [ -e "/tmp/commit-msg-$num.txt" ]; do num=$((num+1)); done cat > "/tmp/commit-msg-$num.txt" << 'EOF' <YOUR_COMMIT_MESSAGE> EOF echo "Saved: /tmp/commit-msg-$num.txt"
How to use this slash command
- Review the pre-filled example and source files above.
- Copy the template or download
merge-commit-msg.md, then use it in your model, IDE, or workflow tool. - Compare your result with the sample output when one is provided.
Frequently Asked Questions
How do I use Slash Command: /merge-commit-msg?
Open the slash command on Promptally, review the pre-filled example, then copy the template or download merge-commit-msg.md and paste it into your model, IDE or workflow tool. Slash Command: /merge-commit-msg is a static blueprint with no dynamic variables. Copy it and use it as-is.
Is Slash Command: /merge-commit-msg free?
Yes. Slash Command: /merge-commit-msg is free to view, copy and download on Promptally without creating an account. It is published under the MIT license.
What variables does Slash Command: /merge-commit-msg need?
Slash Command: /merge-commit-msg is a static blueprint with no dynamic variables. Copy it and use it as-is.