Back to AI Stuff

Skill

Commit Writer

Inspect the current repository state and produce a single commit message that reflects all uncommitted changes.

Workflow

  1. Confirm repository state with `git status --short`.
  2. Capture unstaged edits with `git diff --name-status`.
  3. Capture staged edits with `git diff --cached --name-status`.
  4. Read meaningful diffs for changed files to infer intent.
  5. Group edits into one dominant theme and choose `feature` or `bugFix`.

Output Format

[feature/bugFix]: [One liner explaining the change]

[3-5 sentences elaborating on the changes]

Quality Check

  • The header must use only `feature` or `bugFix`.
  • Keep one blank line between the header and paragraph.
  • Keep the paragraph to 3-5 full sentences.
  • Reflect both staged and unstaged changes when both exist.
  • End by asking if a commit should be created with that message.