Skip to content
Back to skills

Squash Commit Message

ASecurity

A squash commit message for the current branch

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added December 1, 2026
developmentbashrefactoringgitfrontendci/cddocumentation

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add enorm-labs/event-junkie --skill squash-commit-message --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Squash Commit Message?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Squash Commit Message
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/enorm-labs-squash-commit-message/badge)](https://www.skillsdirectory.com/skills/enorm-labs-squash-commit-message)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: squash-commit-message
description: "A squash commit message for the current branch"
---

# Squash Commit Message Generator

Generate a single commit message for squashing all commits on the current feature branch, following the
[Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/) specification.

## Important

Always run git commands with the pager disabled (`git --no-pager ...`) to prevent hanging on interactive output.

**Deviation from common convention**: Body lines are NOT limited to 72 characters. Lines can be as long as needed — use line breaks/wraps where it feels natural
for readability, not at a fixed column width.

## Instructions

1. **Identify the branch commits** — list all commits on the current branch that are not on `origin/main`. A worktree branch is cut from `origin/main`, and a
   local `main` is often stale:
    ```bash
    git fetch origin
    git --no-pager log --oneline --no-merges origin/main..HEAD
    ```
2. **Read every commit message** — use `git --no-pager log --format='%B' origin/main..HEAD` (or equivalent) to get the full messages including bodies, not just the
   subject lines.
3. **Analyze the combined changeset** — consider all commits together to determine the single most appropriate Conventional Commits _type_ and optional _scope_:
    - If the branch introduces a new feature a visitor to the site can see (even alongside docs, CI, refactoring), use `feat`, in a product scope
      (`frontend`, `events`, `promoters`, `venues`, `artists`, `importer`, `scraper`, `bff`, `images`, `branding`). A new CI capability is `ci`, a chart
      or cluster change `chore(deploy)` or `build`, a skill `chore(agents)` — never `feat`; `label-pr.yml` refuses it.
    - If the branch is purely a bug fix, use `fix`.
    - If no feature or fix is present, pick the most prominent type (`ci`, `docs`, `build`, `chore`, `refactor`, etc.).
    - Choose a _scope_ that reflects the primary area of change (e.g., `importer`, `bff`, `frontend`). Omit the scope if changes span the entire project
      broadly.
    - If any commit is breaking — a `!` after its type/scope or a `BREAKING CHANGE:` footer — the squash message keeps it, with a `!` and the footer
      (a MAJOR, or a minor before 1.0.0; [commit-message](../commit-message/SKILL.md)).
4. **Write the squash commit message** with this structure:
    ```
    <type>[optional scope]: <concise summary of the entire branch>

    <body: organized summary of all changes, grouped logically>
    ```
5. **Body guidelines**:
    - Group related changes under logical themes (e.g., "Feature implementation", "CI/CD", "Documentation").
    - Use bullet points (`-`) for individual items within each group.
    - Deduplicate — if multiple commits touched the same area, summarize the final state, not the incremental steps.
    - Omit intermediate fixes, typo corrections, and fixup commits — only describe the end result.
    - Include _why_ decisions were made when the commit messages contain that context.
6. **Do NOT**:
    - Simply concatenate the original commit messages.
    - Include commit hashes, dates, or author info in the output.
    - Add footers like `Refs:` or `Reviewed-by:` unless explicitly requested. `BREAKING CHANGE:` is the exception.

## Output

Return **only** the final commit message as a fenced code block — no preamble, no explanation outside the block.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.