PromptItIn logoPromptItIn
Coding skill

Commit Message Writer Agent Skill

Writes Conventional Commit messages from a diff: short subject, clear why.

SKILL.md

--- name: commit-message description: Use when the user asks for a commit message, or has staged changes and wants them described. --- # Commit Message Writer ## Steps 1. Read the diff (git diff --staged). Work out the single main change. 2. Pick the type: feat, fix, refactor, perf, docs, test, chore, build, ci. 3. Subject line: `type(scope): summary`, imperative mood, max 50 characters, no full stop. 4. Body (only if the why is not obvious): wrap at 72 characters, explain why the change was needed and any side effects. Not a list of files. 5. If the diff contains unrelated changes, suggest splitting into separate commits and give a message for each. ## Output The message in a code block, ready to paste. ##

Sign up to see the whole prompt

Make a free account to read the last part and open this prompt in the generator.

Sign up free

Already have an account? Sign in

How to install this skill

  1. Copy or download the file. It is a complete SKILL.md: frontmatter plus instructions.
  2. Save it in your skills folder. Claude Code: ~/.claude/skills/<skill-name>/SKILL.md (or .claude/skills/ inside a project).
  3. Ask as usual. When a request matches the skill's description, the agent loads it and follows the steps.

More skills

Code Reviewer

Reviews a diff or file for bugs, security issues and readability, ranked by severity.

View →

Bug Investigator

Finds the root cause of a bug from an error, logs and code before changing anything.

View →

Unit Test Writer

Writes unit tests for a function, covering the main path, edge cases and errors.

View →