Commit Message Writer

Generates conventional commit messages from staged git diffs. Activates when the user requests a commit message and produces type(scope) subject format.

jeremylongshore 82539b1 4 files · 5.8 KB Updated

File contents

Commit Message Writer

Generate a commit message for the currently staged changes.

Instructions

  1. Read the staged diff using git diff --staged
  2. Analyze the changes to determine:
    • The type (feat, fix, docs, refactor, test, chore, ci, style)
    • The scope (affected module or component)
    • A concise subject line (under 72 characters)
  3. Output the commit message in conventional commit format

Format

type(scope): subject line

Optional body explaining the motivation for the change.

Examples

Input: A diff showing a new function added to auth.ts Output: feat(auth): add token refresh endpoint

Input: A diff fixing a typo in README.md Output: docs(readme): fix installation instructions typo

jeremylongshore/j-rig-skill-binary-eval/tree/main/packages/core/fixtures/valid commit 82539b16ec

Frequently asked questions

npx skillmds@latest add jeremylongshore/commit-message-writer