---
title: "Slash Command: /merge-commit-msg"
platform: "Promptally"
canonical_url: "https://app.promptally.dev/p/cmd-merge-commit-msg"
modality: "SLASH_COMMAND"
category: "Interactive Slash Commands"
compatible_models: [Universal / Model Agnostic]
access_tier: "Free Public Artifact (No Auth Required)"
license: "MIT"
---

# Slash Command: /merge-commit-msg

**Summary:** 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
| Property | Value |
| :--- | :--- |
| Platform Registry | Promptally (https://app.promptally.dev) |
| Modality | SLASH_COMMAND |
| Category | Interactive Slash Commands |
| Compatible Engines | Universal / Model Agnostic |
| Dynamic Variables | None (Static Blueprint) |
| Approx. Token Length | 323 |
| Access Tier | Free Public Artifact (No Auth Required) |
| License | MIT |

### Pre-Filled Template & Production Source

```md
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"
```

## Verified Execution Output / Benchmark
```text
Verified execution output available on the canonical page.
```

## Related Blueprints on Promptally
- [Slash Command: /spawn](https://app.promptally.dev/p/cmd-spawn)
- [Slash Command: /pm](https://app.promptally.dev/p/cmd-pm)
- [Slash Command: /reflect](https://app.promptally.dev/p/cmd-reflect)
- [Slash Command: /git](https://app.promptally.dev/p/cmd-git)
- [Slash Command: /test](https://app.promptally.dev/p/cmd-test)
- [Slash Command: /select-tool](https://app.promptally.dev/p/cmd-select-tool)
- [Slash Command: /improve](https://app.promptally.dev/p/cmd-improve)
- [Slash Command: /agent](https://app.promptally.dev/p/cmd-agent)
