# 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.

- Skill: `jeremylongshore/commit-message-writer-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jeremylongshore/commit-message-writer-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jeremylongshore/commit-message-writer-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jeremylongshore (https://skillmd.com/u/jeremylongshore)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jeremylongshore/commit-message-writer-2

---


# 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, scope, and subject
3. Output the commit message in conventional commit format

## Examples

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

