garage44.eu/jeroen/midas

logclone: git clone https://garage44.eu/jeroen/midas.git

.. /skills/commit/SKILL.md

raw


name: commit description: Stage and create git commits using Conventional Commits / commitizen style (type(scope): subject, imperative mood, focused per-change, path-scoped, no co-author trailer). Use whenever the user wants to commit the current changes.

commit

Create one or more git commits for the current changes, following the Conventional Commits / commitizen standard.

Format

type(scope): subject

The body is where the reasoning is kept

An empty body on a large landing is a bug, not a style choice. The big feature landings are exactly the ones tempted to explain nothing, and the finding that made one work (on cartopolis: the road graph must be noded, or ordinary routes silently return NoPath) then survives nowhere in git.

Before writing the body, ask four questions. Any yes must reach the body:

  1. Did I measure something? Numbers, and how they were obtained.
  2. Did I reject something? The alternative, and the reason it lost.
  3. Did I hit a constraint from outside the codebase? Upstream policy, licence, a browser/platform limit, a format quirk.
  4. Did something bite me silently? A failure that produced a plausible wrong answer instead of an error.

Four noes → a one-line subject is the honest message. Don't pad.

Commit or note?

Ask: will this still be true after the next ten commits?

Standing constraints, external-world facts, and directions abandoned without a diff are the note's job — the last of these has no commit to attach to at all.

Rules

Steps

  1. Run git status and git diff (and git diff --staged) to see all changes.
  2. Group them into logical commits.
  3. For each group: stage its paths and commit with a compliant message. If the group is feat/fix/perf or spans 5+ files, answer the four questions above and write the body before committing.
  4. Show the resulting git log --oneline for the new commits so the user can confirm, and flag any commit that ended up bodiless despite qualifying.

If the user passed extra guidance as arguments, honor it (e.g. how to split the commits, a specific scope, or an explicit message).