Commit message

From danielvm-git/bigpowers · View interactive version

Commit message is an AI agent skill from the GitHub repository danielvm-git/bigpowers. Reviews working-tree changes, then drafts a Conventional Commits title/body and states the semantic-release version bump a single such commit would imply. Also notes which defensive-code categories were touched. Use when the user wants to commit recent work, prepare a Conventional Commits message, o

How to use this skill

Skill file

<!-- story: e82s02 -->

Commit Message

HARD GATE — HARD GATE — Commits must follow Conventional Commits spec (type(scope): description). Do NOT use vague messages like 'fix' or 'updates.' The message must explain the 'why,' not the 'what.'

Modes

What "last chat" means

Quick workflow

  1. Inventory — List changed paths; group by feature vs chore vs docs vs test-only.
  2. Decide commit shape — One atomic commit is ideal. If the diff mixes unrelated concerns, recommend multiple commits (each with its own type/scope) before suggesting one message.
  3. Classify for semantic release — fix → patch, feat → minor, breaking → major.
  4. Write the message — type(optional-scope)!: description (see REFERENCE.md). Use ! or a BREAKING CHANGE: footer when behavior contracts change.
  5. Note defensive-code categories touched — from CONVENTIONS.md: Rate limit | Retry with backoff | Circuit breaker | Timeout | Graceful degradation
  6. Note fix-ratio contribution — Each fix: commit counts toward metrics.commit_ratio.fix in specs/state.yaml. After release-branch, session-state recalculates the ratio automatically. A high fix rate (>30%) triggers a deploy + smoke-test suggestion.
  7. Deliver — Output:

Checklist before finalizing

When not to invent a bump

If the repo uses a custom @semantic-release/commit-analyzer preset, note that your bump is heuristic and they should match .releaserc / release.config.*. See REFERENCE.md.

Further reading

Handoff

Gate: READY -> next: release-branch

Writes: state.yaml handoff.next_skill = release-branch


Conventional Commits + semantic-style release (reference)

Message format

From Conventional Commits 1.0.0:

<type>[optional scope][optional !]: <description>

[optional body]

[optional footer(s)]

Common types (not exhaustive): feat, fix, docs, style, refactor, perf, test, build, ci, chore — as in Angular / commitlint conventions.

Advanced Specification Patterns

Reverts

If the commit reverts a previous commit, it should begin with revert:, followed by the header of the reverted commit. In the body, it should say: This reverts commit <hash>..

revert: feat(api): add user endpoint

This reverts commit 676104e.

Breaking Changes

A breaking change can be signaled by:

  1. A BREAKING CHANGE: footer (must be uppercase, at the start of the footer). This is the most compatible way to trigger a Major release in semantic-release (Angular preset).
  2. A ! after the type/scope: feat(api)!: change user response shape.

Pro-tip: For maximum compatibility with all tooling (older and newer), use BOTH the ! and the BREAKING CHANGE: footer.

Footers (Tokens & Values)

Footers follow the same Token: value pattern as Git Trailers. Common tokens:

Multi-line footers: If a footer value spans multiple lines, each subsequent line must be indented.

Squashing & History

When using gh pr merge --squash, the PR title is usually used as the commit subject.

Release Type Mapping (Default Angular Preset)

This table reflects the out-of-the-box behavior of semantic-release using the @semantic-release/commit-analyzer default (Angular) rules.

| Commit pattern | Release | Notes |

|----------------|---------|-------|

| fix: | Patch | Bug fixes |

| feat: | Minor | New features |

| perf: | Patch | Performance improvements |

| any type + BREAKING CHANGE: footer | Major | Mandatory for Major version bumps in default configs. |

| any type!: (exclamation mark) | Major | Supported by modern CC parsers, but use footer for max safety. |

| docs:, chore:, test:, ci:, refactor:, style: | None | Does not trigger a new release by default. |

Warning: While refactor: and style: improve code, they do NOT trigger a release in the default Angular preset. Use fix: if a refactor also fixes a bug, or feat: if it adds new behavior.

Custom Repositories

Squash and PR titles

Links

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.